First published: Wed Jun 26 2019(Updated: )
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.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Couchbase Sync Gateway | =2.1.2 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2019-9039 is a vulnerability in Couchbase Sync Gateway 2.1.2 that allows an attacker to issue additional N1QL statements and extract sensitive data or call arbitrary N1QL functions.
CVE-2019-9039 affects Couchbase Sync Gateway 2.1.2 by allowing an attacker with access to the Sync Gateway's public REST API to issue additional N1QL statements and extract sensitive data or call arbitrary N1QL functions.
CVE-2019-9039 has a severity rating of 9.8 (Critical).
To fix CVE-2019-9039, upgrade to Couchbase Sync Gateway version 2.5.0 or later.
More information about CVE-2019-9039 can be found at the following references: [Link 1](https://nvd.nist.gov/vuln/detail/CVE-2019-9039), [Link 2](https://github.com/couchbase/sync_gateway/commit/97adb5b496aa96aa70398018ea96da913ffd8d8c), [Link 3](https://docs.couchbase.com/sync-gateway/2.5/release-notes.html).