Security mailing lists by PureSourceCode

CVE-2019-9039

CRITICAL 9.8CVSS 3.0

SQL Injection in Couchbase Sync Gateway

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.

Published
26 Jun 2019
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-89
Also known as
GHSA-g622-r636-qfqh
Sources
NVDJSONOSV GHSA-g622-r636-qfqhJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.0 CRITICAL 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.0 CRITICAL 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD couchbase sync_gateway
cpe:2.3:a:couchbase:sync_gateway:2.1.2:*:*:*:*:*:*:*
= 2.1.2
OSV Go github.com/couchbase/sync_gateway < 2.5.0 2.5.0

References

History

  • 25 Nov 2026 20:22 UTC · NVD: first stored (published 26 Jun 2019)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 15 Feb 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.