SCA: security update for github.com/couchbase/sync_gateway (GHSA-g622-r636-qfqh)

critical Tenable Self-Hosted Container Security Plugin ID 414914

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2019-9039)

See Also

https://github.com/advisories/GHSA-g622-r636-qfqh

Plugin Details

Severity: Critical

ID: 414914

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.15

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2019-9039

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2/15/2022

Vulnerability Publication Date: 6/26/2019

Reference Information

CVE: CVE-2019-9039

cwe: CWE-89