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
Published Jun 26, 2019
9.8
CRITICALCVSS 3.0
EPSS 2.74%
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.
Affected products
No data.
- 2.1.2
No data.
No Red Hat product state for this CVE.
github.com/couchbase/sync_gateway
Go
Introduced 0 Fixed 2.5.0
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/couchbase/sync_gateway | 0 | 2.5.0 |
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Table of values (14 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 2.74% (0.02741) | 85.65th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.74% (0.02741) | 84.18th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.50% (0.00498) | 76.52th | v3 (v2023.03.01) |
| Jun 19, 2024 | 0.50% (0.00498) | 76.39th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.41% (0.00415) | 73.37th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.41% (0.00415) | 70.02th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.95% (0.00954) | 36.37th | v2 (v2022.01.01) |
| Sep 2, 2022 | 0.95% (0.00954) | 34.50th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.95% (0.00954) | 32.50th | v2 (v2022.01.01) |
| Feb 4, 2022 | 12.49% (0.12492) | 89.83th | v2 (v2022.01.01) |
| Feb 3, 2022 | 4.49% (0.04486) | 75.02th | v1 |
| Jan 6, 2022 | 4.49% (0.04486) | 74.80th | v1 |
| Sep 1, 2021 | 1.04% (0.01036) | 62.47th | v1 |
| Apr 14, 2021 | 1.04% (0.01036) | 0.00th | v1 |
References (6)
- https://docs.couchbase.com/sync-gateway/2.5/release-notes.html x_refsource_CONFIRMRelease NotesVendor Advisory
- https://github.com/advisories/GHSA-g622-r636-qfqh Advisory
- https://github.com/couchbase/sync_gateway/commit/97adb5b496aa96aa70398018ea96da913ffd8d8c
- https://nvd.nist.gov/vuln/detail/CVE-2019-9039
- https://research.hisolutions.com/2019/06/n1ql-injection-in-couchbase-sync-gateway-cve-2019-9039/ x_refsource_MISCExploitThird Party Advisory
- https://www.couchbase.com/resources/security#SecurityAlerts x_refsource_MISC
| Link | Providers | Tags |
|---|---|---|
| https://docs.couchbase.com/sync-gateway/2.5/release-notes.html | x_refsource_CONFIRMRelease NotesVendor Advisory | |
| https://github.com/advisories/GHSA-g622-r636-qfqh | Advisory | |
| https://github.com/couchbase/sync_gateway/commit/97adb5b496aa96aa70398018ea96da913ffd8d8c | ||
| https://nvd.nist.gov/vuln/detail/CVE-2019-9039 | ||
| https://research.hisolutions.com/2019/06/n1ql-injection-in-couchbase-sync-gateway-cve-2019-9039/ | x_refsource_MISCExploitThird Party Advisory | |
| https://www.couchbase.com/resources/security#SecurityAlerts | x_refsource_MISC |
Change history (0)
No recorded changes yet.