cve.bz

CVE-2025-8941 Path traversal

7.8 highEPSS 0.3%Fix available

High (7.8). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in linux-pam. The pam_namespace module may improperly handle user-controlled paths, allowing local users to exploit symlink attacks and race conditions to elevate their privileges to root. This CVE provides a "complete" fix for CVE-2025-6020.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 22nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-08-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support: fixed in 0:1.1.8-23.el7_9.2
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:1.3.1-38.el8_10
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support: fixed in 0:1.3.1-8.el8_2.2
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: fixed in 0:1.3.1-14.el8_4.2
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On: fixed in 0:1.3.1-14.el8_4.2
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: fixed in 0:1.3.1-16.el8_6.3
  • Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service: fixed in 0:1.3.1-16.el8_6.3
  • Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions: fixed in 0:1.3.1-16.el8_6.3
  • Red Hat, AlmaLinux, Rocky Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2025-8941 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-8941?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-8941?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-8941 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 7 Extended Lifecycle Support0:1.1.8-23.el7_9.2
Red Hat Enterprise Linux 80:1.3.1-38.el8_10
Red Hat Enterprise Linux 8.2 Advanced Update Support0:1.3.1-8.el8_2.2
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:1.3.1-14.el8_4.2
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On0:1.3.1-14.el8_4.2
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:1.3.1-16.el8_6.3
Red Hat Enterprise Linux 8.6 Telecommunications Update Service0:1.3.1-16.el8_6.3
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions0:1.3.1-16.el8_6.3
Red Hat Enterprise Linux 8.8 Telecommunications Update Service0:1.3.1-26.el8_8.2
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions0:1.3.1-26.el8_8.2
Red Hat Enterprise Linux 90:1.5.1-26.el9_6
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions0:1.5.1-9.el9_0.3
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:1.5.1-15.el9_2.2
Red Hat Enterprise Linux 9.4 Extended Update Support0:1.5.1-24.el9_4.1
Red Hat Web Terminal 1.11 on RHEL 91.11-19
Red Hat Web Terminal 1.11 on RHEL 91.11-8
Red Hat Web Terminal 1.12 on RHEL 91.12-4
Red Hat cert-manager operator for Red Hat OpenShift 1.16sha256:330e8b5ab4841a21f8f5f23cc7fb192197872f11639b12bf4b1e70831
Red Hat Compliance Operator 1sha256:c953e9f9abf9cf25bf65bb3ffdc86ccf49b3e69a1cf3fbb47b6972e42
Red Hat Discovery 2sha256:c85cfbcaf7888885e57596b7b8bde3894718cfc33326499b24961a66a
Red Hat Insights proxy 1.5sha256:4ca38b33efec0d2dd17a8fd822a7c18281810676ceabb0c1db90953cb
Red Hat OpenShift sandboxed containers 1.1sha256:24722900db1425bf0c27f6ad6f3fb7d79ff9ebc433bdab58423fa71ba
Red Hat OpenShift sandboxed containers 1.1sha256:f5e1602d72177d77f1b879c76e6f6cfbc2979c136c06ca9f03ea97ffb
Red Hat OpenShift sandboxed containers 1.1sha256:cead623ceda4048cabaa81c371ed2a8143f5c5514276fca1d71685bd9
Red Hat OpenShift sandboxed containers 1.1sha256:59fb1f7f1653361d94f7d48b42d8fe19ed3263c1c78654837c11f2135

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14pamno fix listedDEBIAN-CVE-2025-8941
Red Hatenterprise_linux:8::baseospam, pam-devel, pam-debuginfo and 1 more0:1.3.1-38.el8_10RHSA-2025:14557
Red Hatenterprise_linux:9::appstreampam-docs, pam-devel, pam-debuginfo and 1 more0:1.5.1-26.el9_6RHSA-2025:15099
Red Hatenterprise_linux:9::baseospam, pam-debuginfo, pam-debugsource0:1.5.1-26.el9_6RHSA-2025:15099
Red Hatrhel_aus:8.2::baseospam, pam-devel, pam-debuginfo and 1 more0:1.3.1-8.el8_2.2RHSA-2025:15107
Red Hatrhel_aus:8.4::baseos, rhel_eus_long_life:8.4::baseospam, pam-devel, pam-debuginfo and 1 more0:1.3.1-14.el8_4.2RHSA-2025:15104
Red Hatrhel_aus:8.6::baseos, rhel_e4s:8.6::baseos, rhel_tus:8.6::baseospam, pam-devel, pam-debuginfo and 1 more0:1.3.1-16.el8_6.3RHSA-2025:15105
Red Hatrhel_e4s:8.8::baseos, rhel_tus:8.8::baseospam, pam-devel, pam-debuginfo and 1 more0:1.3.1-26.el8_8.2RHSA-2025:15103
Red Hatrhel_e4s:9.0::appstreampam-docs, pam-devel, pam-debuginfo and 1 more0:1.5.1-9.el9_0.3RHSA-2025:15100
Red Hatrhel_e4s:9.0::baseospam, pam-debuginfo, pam-debugsource0:1.5.1-9.el9_0.3RHSA-2025:15100
Red Hatrhel_e4s:9.2::appstreampam-docs, pam-devel, pam-debuginfo and 1 more0:1.5.1-15.el9_2.2RHSA-2025:15101
Red Hatrhel_e4s:9.2::baseospam, pam-debuginfo, pam-debugsource0:1.5.1-15.el9_2.2RHSA-2025:15101
Red Hatrhel_els:7pam, pam-devel, pam-debuginfo0:1.1.8-23.el7_9.2RHSA-2025:15106
2 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8pam, pam-devel1.3.1-38.el8_10ALSA-2025:14557
AlmaLinux9pam, pam-docs, pam-devel1.5.1-26.el9_6ALSA-2025:15099
Rocky Linux8pam0:1.3.1-38.el8_10RLSA-2025:14557
Rocky Linux9pam0:1.5.1-26.el9_6RLSA-2025:15099

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability in pam_namespace is rated Important because it allows a local, unprivileged user to escalate privileges to root by exploiting symlink attacks or race conditions in polyinstantiated directories under their control. Successful exploitation requires only the ability to create and manipulate filesystem paths in such directories, without the need for special capabilities or kernel-level vulnerabilities. In multi-user environments—such as shared systems, terminal servers, or certain container deployments, an unprotected or misconfigured pam_namespace configuration can serve as a single point of compromise. Privilege escalation flaws of this nature may also be chained with other vulnerabilities to maintain persistence or evade detection, further increasing the overall impact.

Red Hat's mitigation

Disable the `pam_namespace` module if it is not essential for your environment, or carefully review and configure it to avoid operating on any directories or paths that can be influenced or controlled by unprivileged users, such as user home directories or world-writable locations like `/tmp`.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7 Extended Lifecycle Supportpam-0:1.1.8-23.el7_9.2Fixed 2025-09-03RHSA-2025:15106
Red Hat Enterprise Linux 8pam-0:1.3.1-38.el8_10Fixed 2025-08-26RHSA-2025:14557
Red Hat Enterprise Linux 8.2 Advanced Update Supportpam-0:1.3.1-8.el8_2.2Fixed 2025-09-03RHSA-2025:15107
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpam-0:1.3.1-14.el8_4.2Fixed 2025-09-03RHSA-2025:15104
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onpam-0:1.3.1-14.el8_4.2Fixed 2025-09-03RHSA-2025:15104
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpam-0:1.3.1-16.el8_6.3Fixed 2025-09-03RHSA-2025:15105
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicepam-0:1.3.1-16.el8_6.3Fixed 2025-09-03RHSA-2025:15105
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionspam-0:1.3.1-16.el8_6.3Fixed 2025-09-03RHSA-2025:15105
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicepam-0:1.3.1-26.el8_8.2Fixed 2025-09-03RHSA-2025:15103
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionspam-0:1.3.1-26.el8_8.2Fixed 2025-09-03RHSA-2025:15103
Red Hat Enterprise Linux 9pam-0:1.5.1-26.el9_6Fixed 2025-09-03RHSA-2025:15099
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionspam-0:1.5.1-9.el9_0.3Fixed 2025-09-03RHSA-2025:15100
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionspam-0:1.5.1-15.el9_2.2Fixed 2025-09-03RHSA-2025:15101
Red Hat Enterprise Linux 9.4 Extended Update Supportpam-0:1.5.1-24.el9_4.1Fixed 2025-09-03RHSA-2025:15102
Red Hat Web Terminal 1.11 on RHEL 9web-terminal/web-terminal-rhel9-operator:1.11-19Fixed 2025-09-15RHSA-2025:15828
Red Hat Web Terminal 1.11 on RHEL 9web-terminal/web-terminal-tooling-rhel9:1.11-8Fixed 2025-09-15RHSA-2025:15828
Red Hat Web Terminal 1.12 on RHEL 9web-terminal/web-terminal-tooling-rhel9:1.12-4Fixed 2025-09-15RHSA-2025:15827
RHOSS-1.36-RHEL-8openshift-serverless-1/logic-data-index-ephemeral-rhel8:1.36.0-11Fixed 2026-01-22RHSA-2026:0934
RHOSS-1.36-RHEL-8openshift-serverless-1/logic-data-index-postgresql-rhel8:1.36.0-11Fixed 2026-01-22RHSA-2026:0934
RHOSS-1.36-RHEL-8openshift-serverless-1/logic-db-migrator-tool-rhel8:1.36.0-11Fixed 2026-01-22RHSA-2026:0934
16 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-8941.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON