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 ?alldocs? endpoint.
{
"github_reviewed": true,
"github_reviewed_at": "2021-05-17T16:33:43Z",
"nvd_published_at": null,
"severity": "CRITICAL",
"cwe_ids": [
"CWE-89"
]
}