ADVISORIES

GitHub Advisory Database

GHSA-g622-r636-qfqh

SQL Injection in Couchbase Sync Gateway

Critical CVE-2019-9039

Details

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.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/couchbase/sync_gateway
All versions before 2.5.0 (fixed in 2.5.0)

References