Skip to content

Couchbase Sync Gateway admin credentials not verified when using X.509 client cert authentication

Critical severity GitHub Reviewed Published Jun 11, 2022 to the GitHub Advisory Database • Updated May 4, 2024

Package

pip couchbase (pip)

Affected versions

>= 3.0.0, < 3.0.2

Patched versions

3.0.2

Description

An issue was discovered in Couchbase Sync Gateway 3.x before 3.0.2. Admin credentials are not verified when using X.509 client-certificate authentication from Sync Gateway to Couchbase Server. When Sync Gateway is configured to authenticate with Couchbase Server using X.509 client certificates, the admin credentials provided to the Admin REST API are ignored, resulting in privilege escalation for unauthenticated users. The Public REST API is not impacted by this issue. A workaround is to replace X.509 certificate based authentication with Username and Password authentication inside the bootstrap configuration.

References

Published by the National Vulnerability Database Jun 10, 2022
Published to the GitHub Advisory Database Jun 11, 2022
Reviewed Apr 24, 2024
Last updated May 4, 2024

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2022-32563

GHSA ID

GHSA-9266-j9v3-q4j5

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.