CVE-2022-32563 Couchbase Sync Gateway admin credentials not verified when using X.509 client cert authentication
Unauthenticated users can escalate privileges via Admin REST API when X.509 client-certificate authentication is configured, bypassing admin credential checks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-32563?
CVE-2022-32563 is a critical authentication bypass vulnerability in n/a, published on 10 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-295
Which versions are affected by CVE-2022-32563?
3 open source packages ship an affected version, including couchbase. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
couchbase PyPI | From 3.0.0 | 3.0.2 |
couchbase PyPI | From 3.0.0 | 3.0.2 |
couchbase PyPI | From 3.0.0 | 3.0.2 |
Products include Couchbase Sync Gateway.
How do I fix CVE-2022-32563?
Upgrade couchbase to 3.0.2 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2022-32563 being exploited?
There is no known exploitation of CVE-2022-32563 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-9266-j9v3-q4j5, PYSEC-2022-207.