CWE-271Class

Privilege Dropping / Lowering Errors

Incomplete in the CWE catalog · 12 CVEs mapped

12
CVEs mapped
7.4
Median CVSS
What it is

The product does not drop privileges before passing control of a resource to an actor that does not have those privileges.

Recent examples
9.4cvss
CVE-2026-44477

CloudNativePG: Metrics exporter allows privilege escalation to PostgreSQL superuser and OS RCE

CloudNativePG is a platform designed to manage PostgreSQL databases within Kubernetes environments. Prior to 1.29.1 and 1.28.3, the CloudNativePG metrics exporter opens its PostgreSQL connection as the postgres superuser via the pod-local Unix socket, then demotes the session with SET ROLE pg_monitor. SET ROLE changes only current_user; session_user remains postgres. Any SQL expression evaluated inside the scrape session can invoke RESET ROLE to recover real superuser privileges, then use COPY ... TO PROGRAM to spawn an OS-level subprocess as the postgres user inside the primary pod. The READ ONLY transaction flag does not block this; it gates writes to database state, not external processes. This vulnerability is fixed in 1.29.1 and 1.28.3.

CRITICALno explanation yet
0%
epss
7.4cvss
CVE-2026-35535

CVE-2026-35535 - HIGH Severity Vulnerability

In Sudo through 1.9.17p2 before 3e474c2, a failure of a setuid, setgid, or setgroups call, during a privilege drop before running the mailer, is not a fatal error and can lead to privilege escalation.

HIGHno explanation yet
0%
epss
5.8cvss
CVE-2026-25704

Incomplete privilege drop for com.system76.CosmicGreeter.GetUserData

A Privilege Dropping / Lowering Errors/Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in  cosmic-greeter can allow an attacker to regain privileges that should have been dropped and abuse them in the racy checking logic. This issue affects cosmic-greeter before https://github.Com/pop-os/cosmic-greeter/pull/426.

MEDIUMno explanation yet
0%
epss
The record
Technical detail
CWE ID
CWE-271
Abstraction
Class
Structure
Simple
Status
Incomplete