Critical severity · published Jun 26, 2019
CVE-2019-9039
In Couchbase Sync Gateway 2.1.2, an attacker with access to the Sync Gateway’s public REST API was able to issue additional N1QL statements and extract sensitive data or call…
9.8
CVSS
2.7%
EPSS
No
On KEV
Description
In Couchbase Sync Gateway 2.1.2, an attacker with access to the Sync Gateway’s public REST API was able to issue additional N1QL statements and extract sensitive data or call arbitrary N1QL functions through the parameters "startkey" and "endkey" on the "_all_docs" endpoint. By issuing nested queries with CPU-intensive operations they may have been able to cause increased resource usage and denial of service conditions. The _all_docs endpoint is not required for Couchbase Mobile replication and external access to this REST endpoint has been blocked to mitigate this issue. This issue has been fixed in versions 2.5.0 and 2.1.3.
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.7% · higher than 86% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SG
Sync Gateway · Couchbase
2.1.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-9039
CVE.org
https://www.cve.org/CVERecord?id=CVE-2019-9039
Release Notes
https://docs.couchbase.com/sync-gateway/2.5/release-notes.html
Exploit
https://research.hisolutions.com/2019/06/n1ql-injection-in-couchbase-sync-gateway-cve-2019-9039/
www.couchbase.com
https://www.couchbase.com/resources/security#SecurityAlerts
More from Sync Gateway
9.8
CVE-2022-32563
An issue was discovered in Couchbase Sync Gateway 3.x before 3.0.2
8.1
CVE-2021-43963
An issue was discovered in Couchbase Sync Gateway 2.7.0 through 2.8.2
7.5
CVE-2020-9041
In Couchbase Server 6.0.3 and Couchbase Sync Gateway through 2.7.0, the Cluster management, views, query, and full-text search endpoints are vulnerable to the Slowloris…
7.3
CVE-2025-52490
An issue was discovered in Couchbase Sync Gateway before 3.2.6
