LiveActive security incident?Get immediate response
CVE Record

CVE-2021-31158: In the Query Engine in Couchbase Server 6.5.x and 6.6.x through 6.6.1, Common Table Expression queries were...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This issue let some Couchbase Server users read data they were not explicitly permitted to access when using Common Table Expression queries. It is a confidentiality and authorization problem, not evidence of remote takeover from the supplied sources.

Executive priority

Treat as a targeted confidentiality risk for affected Couchbase deployments. Prioritize if sensitive data is stored in Couchbase or many users have query access.

Technical view

CVE-2021-31158 affects the Couchbase Server Query Engine in 6.5.x and 6.6.x through 6.6.1. CTE queries did not correctly enforce user permissions, allowing reads beyond assigned access. No CVSS, CWE, exploit details, or fixed version is provided in the supplied bundle.

Likely exposure

Exposure is likely limited to organizations running Couchbase Server 6.5.x or 6.6.x through 6.6.1 with users able to issue Query Engine CTE queries.

Exploitation context

The supplied sources do not show CISA KEV listing or active exploitation. Abuse would require some level of legitimate query access, based on the description.

Researcher notes

Evidence is sparse: no CVSS, CWE, exploit status, or explicit fixed version appears in the provided bundle. Analysis should stay anchored to the authorization bypass in CTE permission checks.

Mitigation direction

  • Inventory Couchbase Server versions and identify 6.5.x or 6.6.x through 6.6.1 deployments.
  • Check Couchbase security alerts and release notes for the vendor-confirmed fixed release.
  • Apply vendor-recommended upgrades or mitigations once confirmed from Couchbase guidance.
  • Limit Query Engine access to trusted users while remediation is being assessed.

Validation and detection

  • Confirm whether any production or non-production systems run the affected Couchbase versions.
  • Review which users or roles can issue Query Engine Common Table Expression queries.
  • Verify least-privilege role assignments for buckets, scopes, collections, and query access.
  • Use authorized testing to confirm restricted users cannot read unauthorized resources.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2021-31158 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.