CVE-2026-137898
published high CVSS 3.1 · 7.3Pam: linux-pam pam_econf local privilege escalation via relative "(null)" config directory from empty vendor directory handling
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | pam-mainRed Hat Hardened Images · 1.7.2-4.2.hum1 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat Enterprise Linux | 6, 7, 8, 9, 10 | pam | Unaffected | Not required | redhat |
| Red Hat | — | openshift/ose-rhel-coreos-8Red Hat OpenShift Container Platform 4 | Unaffected | Not required | redhat |
| Red Hat | — | openshift/ose-rhel-coreos-9Red Hat OpenShift Container Platform 4 | Unaffected | Not required | redhat |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Red Hat | — | openshift/ose-rhel-coreos-10Red Hat OpenShift Container Platform 5 | Unaffected | Not required | redhat |
| Red Hat | — | openshift/ose-rhel-coreos-9Red Hat OpenShift Container Platform 5 | Unaffected | Not required | redhat |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Red Hat Hardened Images | 1.7.2-4.2.hum1 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 10 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 6 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 7 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat OpenShift Container Platform 4 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat OpenShift Container Platform 4 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat OpenShift Container Platform 5 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat OpenShift Container Platform 5 | Default: unaffected | redhat · cna |
Weaknesses
1- CWE-427 Uncontrolled Search Path Element
References
4- RHSA-2026:105294 https://access.redhat.com/errata/RHSA-2026:105294
- https://access.redhat.com/security/cve/CVE-2026-137898
- RHBZ#2585412 https://bugzilla.redhat.com/show_bug.cgi?id=2585412
- https://github.com/linux-pam/linux-pam/pull/1070
Provider assertions
2redhat · cna
Pam: linux-pam pam_econf local privilege escalation via relative "(null)" config directory from empty vendor directory handling
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9e17431530a72aa57558fd4a3a8d51b4e63c6820ca2e24a3b2dfae1872882b2c
- Ingested
- 01 Dec 2026, 07:14:30 UTC
- Source record
- Official CVE record