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.
Conclusion & alert: CVE-2021-31158 is rated Moderate Risk (43.4/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.70%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.17% | 0.70% | +0.54% |
| 2 | 2025-03-30 | 0.35% | 0.17% | -0.18% |
| 3 | 2025-03-29 | — | 0.35% | — |
Full EPSS history (9 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.5 | 3.1 | MEDIUM |
|
2.8 | 3.6 | [email protected] |
| 4.0 | 2.0 | MEDIUM |
|
8.0 | 2.9 | [email protected] |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| couchbase | couchbase_server | >= 6.5.0, < 6.6.2 | cpe:2.3:a:couchbase:couchbase_server:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://docs.couchbase.com/server/current/release-notes/relnotes.html | Release Notes Vendor Advisory |
| https://www.couchbase.com/resources/security#SecurityAlerts | Vendor Advisory |