CVE-2021-31158 Missing authorization in n/a

Medium 6.5 Published Updated

Attackers can bypass permission checks in Common Table Expression queries to read unauthorized data in Couchbase Server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-31158?

CVE-2021-31158 is a medium-severity missing authorization vulnerability in Couchbase Couchbase Server, published on 19 May 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-863

Which versions are affected by CVE-2021-31158?

It affects 1 product.

Products include Couchbase Couchbase Server.

How do I fix CVE-2021-31158?

No fix has been published for CVE-2021-31158 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2021-31158 being exploited?

There is no known exploitation of CVE-2021-31158 in the wild and no public exploit code.

All Couchbase Couchbase Server vulnerabilities

Sources

Also known as GHSA-j8hg-ph7r-fwmj.

Is CVE-2021-31158 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free