GitHub Advisoryadvisory · Go

GHSA-g622-r636-qfqh SQL Injection in Couchbase Sync Gateway

CRITICAL Published 2022-02-15 Modified 2021-05-17 Official page ↗
Aliases
CVE-2019-9039
Ecosystem
Go
Packages
github.com/couchbase/sync_gateway
Severity
Critical
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-89
Reviewed
2021-05-17

Affected packages

• Go github.com/couchbase/sync_gateway: < 2.5.0 → fixed in 2.5.0

Description

The Couchbase Sync Gateway 2.1.2 in combination with a Couchbase Server is affected by a previously undisclosed N1QL-injection vulnerability in the REST API. An attacker with access to the public REST API can insert additional N1QL statements through the parameters ?startkey? and ?endkey? of the ?_all_docs? endpoint.

Related

Alias · CVE (1)

  • CVE-2019-9039 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… vulnerability

Weakness · CWE (1)

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness

References