Advisory

GHSA-g622-r636-qfqh

Also known as: CVE-2019-9039

Summary

SQL Injection in Couchbase Sync Gateway

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-02-15 01:57 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

github.com/couchbase/sync_gateway

Go · All systems

Affected

  • introduced 0, fixed 2.5.0 (semver)

Fixed versions

2.5.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences