CVE-2021-38140 Privilege escalation in n/a

Critical 9.8 Published Updated

A privilege escalation vulnerability in the PostgreSQL set_user extension allows attackers to regain original privileges after switching users.

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

What is CVE-2021-38140?

CVE-2021-38140 is a critical vulnerability in n/a, published on 10 Aug 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The set_user extension module before 2.0.1 for PostgreSQL allows a potential privilege escalation using RESET SESSION AUTHORIZATION after set_user().

Weakness: CWE-269

Which versions are affected by CVE-2021-38140?

It affects 1 product.

Products include Set User Project Set User.

How do I fix CVE-2021-38140?

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

Is CVE-2021-38140 being exploited?

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

Sources

Also known as GHSA-4fj7-2258-8pjp.

Is CVE-2021-38140 in your software?

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

Check your SBOMs for free