9.8

CVE-2019-9039: couchbase sync_gateway SQL Injection

CVSS: 9.8v3.0CriticalModified
AliasesGHSA-g622-r636-qfqh
Published 26-06-2019Last modified 04-08-2024

Vulnerability summary

CVE-2019-9039 is a critical (CVSS 9.8) SQL Injection vulnerability in couchbase sync_gateway. EPSS estimates a 2.74% chance of exploitation in the next 30 days, higher than 85.9% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.0 (NVD)
EPSS score
2.74%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Timeline

  1. 26-06-2019
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

3 scores · 2 sources · 2 versions

EPSS trend

Probability

2.74%

Chance of exploitation in the next 30 days

Percentile

86%

Versus all other CVEs

30-day change

0.00 pp

From 2.74% on 19-09-2026

19-09-202619-10-2026
EPSS score
2.74%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (research.hisolutions.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Couchbase1 product
Github.com/couchbase1 product
  • sync_gateway< 2.5.0

2 vendors · 2 products

References

6 links