Pam: linux-pam pam_econf local privilege escalation via relative "(null)" config directory from empty vendor directory handling
- State
- Published
- Severity
- 7.3 High
- Published
- Nov 27, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 27, 2026
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.
| Product | Versions |
|---|---|
| Red Hat Enterprise Linux 10 Red Hat | |
| Red Hat Enterprise Linux 6 Red Hat | |
| Red Hat Enterprise Linux 7 Red Hat | |
| Red Hat Enterprise Linux 8 Red Hat | |
| Red Hat Enterprise Linux 9 Red Hat | |
| Red Hat Hardened Images Red Hat | |
| Red Hat OpenShift Container Platform 4 Red Hat | |
| Red Hat OpenShift Container Platform 4 Red Hat | |
| Red Hat OpenShift Container Platform 5 Red Hat | |
| Red Hat OpenShift Container Platform 5 Red Hat |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.3 High | redhat |
Weaknesses
- CWE-427 Uncontrolled Search Path Element
References
- https://access.redhat.com/security/cve/CVE-2026-137898Vulnerability Database
- RHBZ#2585412Issue Tracker
- https://github.com/linux-pam/linux-pam/pull/1070
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.