{"id":"CVE-2019-9039","published":"2019-06-26T18:55:45Z","modified":"2024-08-04T21:38:45Z","title":"In Couchbase Sync Gateway 2.1.2, an attacker with access to the Sync Gateway’s public REST API was able to issue…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02741,"percentile":0.86517,"provenance":"source"},"cwes":[],"references":[{"url":"https://docs.couchbase.com/sync-gateway/2.5/release-notes.html","tags":["x_refsource_CONFIRM"]},{"url":"https://research.hisolutions.com/2019/06/n1ql-injection-in-couchbase-sync-gateway-cve-2019-9039/","tags":["x_refsource_MISC"]},{"url":"https://www.couchbase.com/resources/security#SecurityAlerts","tags":["x_refsource_MISC"]}],"priority":{"score":17.3,"factors":[{"name":"EPSS percentile","points":17.3}]},"affected":[{"ecosystem":"Go","package":"github.com/couchbase/sync_gateway","vulnerableRanges":["<2.5.0"],"patched":["2.5.0"],"from":["GHSA-g622-r636-qfqh"],"provenance":"source"}],"summary":{"text":"The flaw is an N1QL injection in the \"_all_docs\" REST endpoint of Couchbase Sync Gateway 2.1.2, where the \"startkey\" and \"endkey\" parameters are not sanitised. An attacker with access to the public REST API can use these parameters to run additional N1QL statements to extract sensitive data, call arbitrary N1QL functions, or issue CPU-intensive nested queries that may cause resource exhaustion and denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:21Z"},"euvd":{"id":"EUVD-2022-0999","exploited":false,"provenance":"source"}}