GitHub Advisoryadvisory · Go
GHSA-g622-r636-qfqh SQL Injection in Couchbase Sync Gateway
CRITICAL
Official page ↗
- Aliases
- CVE-2019-9039
- Ecosystem
- Go
- Packages
- github.com/couchbase/sync_gateway
- Severity
- Critical
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-89
- Reviewed
- 2021-05-17
Affected packages
• Go github.com/couchbase/sync_gateway: < 2.5.0 → fixed in 2.5.0
Description
The Couchbase Sync Gateway 2.1.2 in combination with a Couchbase Server is affected by a previously undisclosed N1QL-injection vulnerability in the REST API. An attacker with access to the public REST API can insert additional N1QL statements through the parameters ?startkey? and ?endkey? of the ?_all_docs? endpoint.
Related
Alias · CVE (1)
- 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… vulnerability
Weakness · CWE (1)
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-9039 advisory
- https://github.com/couchbase/sync_gateway/commit/97adb5b496aa96aa70398018ea96da913ffd8d8c web
- https://docs.couchbase.com/sync-gateway/2.5/release-notes.html web
- https://research.hisolutions.com/2019/06/n1ql-injection-in-couchbase-sync-gateway-cve-2019-9039 web
- https://www.couchbase.com/resources/security#SecurityAlerts web