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.

Published : 2019-06-26 19:15 Updated : 2019-10-10 12:12

CVSS Score More info
Score 7.5 / 10
Vendor Product Version URI
Couchbase Sync Gateway 2.1.2 cpe:/a:couchbase:sync_gateway:2.1.2
  1. Couchbase (1) Search CVE
    1. Sync Gateway (1) Search CVE
      1. 2.1.2


ID Name Description Links
CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. CVE

History of changes

Date Event
2019-09-16 18:15
2019-09-10 17:15
2019-07-01 16:58
2019-06-26 19:41