# CVE-2019-9039

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2019-06-26 · Modified: 2024-08-04
- Aliases: GHSA-g622-r636-qfqh
- Record: https://cvemate.com/vulnerability/CVE-2019-9039 · JSON: https://cvemate.com/vulnerability/CVE-2019-9039/json

## Description

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

## Signals

- CVSS: 9.8 critical (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.741%, percentile 86.658%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- couchbase sync\_gateway: 2.1.2
- github.com/couchbase sync\_gateway (Go): \< 2.5.0

## References

- <https://docs.couchbase.com/sync-gateway/2.5/release-notes.html>
- <https://research.hisolutions.com/2019/06/n1ql-injection-in-couchbase-sync-gateway-cve-2019-9039/>
- <https://www.couchbase.com/resources/security#SecurityAlerts>
- <https://nvd.nist.gov/vuln/detail/CVE-2019-9039>
- <https://github.com/couchbase/sync_gateway/commit/97adb5b496aa96aa70398018ea96da913ffd8d8c>
- <https://research.hisolutions.com/2019/06/n1ql-injection-in-couchbase-sync-gateway-cve-2019-9039>

---

Data as of 2026-12-05T14:50:41.734Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
