Live threats

All CVEs / Couchbase

CVE-2019-9039Couchbase Sync Gateway

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
2.7%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
Jun 26, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sync Gateway.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/couchbase/sync_gateway < 2.5.0 2.5.0 go get github.com/couchbase/sync_gateway@v2.5.0

Per OSV / GitHub Advisories (GHSA-g622-r636-qfqh). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
couchbasesync_gateway2.1.2

Official sources

References

Links published by the sources. Open them with care.