CVE-2026-137898

Pam: linux-pam pam_econf local privilege escalation via relative "(null)" config directory from empty vendor directory handling

High published · updated

7.3
CVSS score out of 10 · NVD (redhat.com)

Description

A flaw was found in pam. When built with libeconf and an unconfigured vendor directory, the pam_econf configuration handler misinterprets the search path, causing it to look for configuration files in a relative directory within the current working directory. A local attacker can exploit this by placing crafted environment configuration files in a world-writable location. If an administrator executes a privileged command from that directory, the malicious variables are loaded into the privileged process, resulting in local privilege escalation.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
red hat enterprise linux 10 red hat —— CVE.org
red hat enterprise linux 6 red hat —— CVE.org
red hat enterprise linux 7 red hat —— CVE.org
red hat enterprise linux 8 red hat —— CVE.org
red hat enterprise linux 9 red hat —— CVE.org
red hat hardened images red hat —— CVE.org
red hat openshift container platform 4 red hat —— CVE.org
red hat openshift container platform 5 red hat —— CVE.org

References