What’s Vulnerable › Vulnerabilities
CVE-2021-31158
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-05-19 · updated 2026-06-17
- Weakness: CWE-863
Description
In the Query Engine in Couchbase Server 6.5.x and 6.6.x through 6.6.1, Common Table Expression queries were not correctly checking the user's permissions, allowing read-access to resources beyond what those users were explicitly allowed to access.
Affected products
- Couchbase Server: from 6.5.0 before 6.6.2 — fixed in 6.6.2
How to fix
Upgrade to a fixed version: Couchbase Server 6.6.2. Check the vendor advisory for mitigations.
References
- https://docs.couchbase.com/server/current/release-notes/relnotes.html
- https://www.couchbase.com/resources/security#SecurityAlerts
- https://docs.couchbase.com/server/current/release-notes/relnotes.html
- https://www.couchbase.com/resources/security#SecurityAlerts
Get alerted when CVE-2021-31158 or the next vulnerability affects your stack