SQL Injection in Couchbase Sync Gateway

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 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.

Vulnerability class: SQL Injection

Published · last modified .

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS: 0.027 (85.6th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 86th percentile — 85.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2019-9039: held from 0.027 to 0.027.

EPSS over last 30 days · oldest: 0.027 · newest: 0.027 · change: 0.000

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2019-9039?
CVE-2019-9039 is a critical-severity vulnerability in Couchbase Sync Gateway, classified under SQL Injection. CVSS score: 9.8/10. Published 2019-06-26.
How severe is CVE-2019-9039?
Critical severity. CVSS v3 base score is 9.8 out of 10.