# CVE-2021-31158

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-05-19 · Modified: 2024-08-03
- Record: https://cvemate.com/vulnerability/CVE-2021-31158 · JSON: https://cvemate.com/vulnerability/CVE-2021-31158/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.704%, percentile 54.728%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- couchbase couchbase\_server: ≥ 6.5.0, \< 6.6.2

## References

- <https://www.couchbase.com/resources/security#SecurityAlerts>
- <https://docs.couchbase.com/server/current/release-notes/relnotes.html>

---

Data as of 2026-12-05T14:50:58.585Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
