CVE-2019-9039: couchbase sync_gateway SQL Injection
Vulnerability summary
CVE-2019-9039 is a critical (CVSS 9.8) SQL Injection vulnerability in couchbase sync_gateway. EPSS estimates a 2.74% chance of exploitation in the next 30 days, higher than 85.9% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 26-06-2019PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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 metrics
3 scores · 2 sources · 2 versions- OSV · GoEcosystem advisory · calculated9.8CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.74%
Chance of exploitation in the next 30 days
Percentile
86%
Versus all other CVEs
30-day change
0.00 pp
From 2.74% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (research.hisolutions.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Couchbase1 product
- sync_gateway2.1.2
Github.com/couchbase1 product
- sync_gateway< 2.5.0
2 vendors · 2 products
References
6 links- docs.couchbase.com/sync-gateway/2.5/release-notes.htmlX Refsource CONFIRMWEBRelease NotesVendor Advisory
- research.hisolutions.com/2019/06/n1ql-injection-in-couchbase-sync-gateway-cve-2019-9039/X Refsource MISCExploitThird Party Advisory