CVE-2026-137898

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

Published Nov 27, 2026 CVSS 3.1 · 7.3 High EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A flaw in the pam_econf handler of the Linux PAM library allows a local attacker to place specially crafted environment configuration files in a world-writable directory. When a privileged command is executed from that directory, the PAM module interprets the vendor directory as a relative path, reads the malicious files, and injects the variables into the privileged process. This results in an elevation of privilege from an unprivileged user to root or another privileged user. The weakness is a path misinterpretation (CWE-427).

Affected Systems

Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat Hardened Images, Red Hat OpenShift Container Platform 4, and Red Hat OpenShift Container Platform 5. Specific version details are not provided, but all releases that ship the vulnerable pam_econf binary are potentially affected.

Risk and Exploitability

The CVSS base score of 7.3 indicates a high severity level. Exploitation requires local access to create or modify files in a world-writable directory that a privileged process will read. No publicly documented zero‑day exploits are available yet, and the EPSS score is currently not assigned, making current exploitation probability uncertain. The vulnerability is not listed in the CISA KEV catalog, but the local attack vector and the potential for privilege escalation warrant regular monitoring while awaiting an official fix.

Remediation

Vendor Workaround

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.


OpenCVE Recommended Actions

  • Configure the pam_econf module with a valid vendor directory to eliminate the relative path interpretation.
  • Ensure that any directory from which privileged commands are executed is not world‑writable and does not contain malicious environment files.
  • If a patch is not yet available, consider disabling the pam_econf module for privileged services or applying a vendor‑specific configuration change that removes the unconfigured vendor directory.

Generated by OpenCVE AI on November 27, 2026 at 20:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title Pam: linux-pam pam_econf local privilege escalation via relative "(null)" config directory from empty vendor directory handling
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
Redhat rhel Els
Weaknesses CWE-427
CPEs cpe:/a:redhat:hummingbird:1
cpe:/a:redhat:openshift:4
cpe:/a:redhat:openshift:5
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
Redhat rhel Els
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-427

    Uncontrolled Search Path Element

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 27, 2026, 7:27 PM
Reserved
Nov 27, 2026, 11:27 AM
Status
Awaiting Analysis
Published
Nov 27, 2026, 8:18 PM
Modified
Nov 27, 2026, 8:18 PM