cve.bz

CVE-2025-6020 Path traversal

7.8 highEPSS 0.5%Fix available

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

On this page
A flaw was found in linux-pam. The module pam_namespace may use access user-controlled paths without proper protection, allowing local users to elevate their privileges to root via multiple symlink attacks and race conditions.

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.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 43rd 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-06-17. 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 10: fixed in 0:1.6.1-8.el10
  • Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support: fixed in 0:1.6.1-8.el10_0
  • Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support: fixed in 0:1.1.8-23.el7_9.1
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:1.3.1-37.el8_10
  • 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.1
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: fixed in 0:1.3.1-14.el8_4.1
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: fixed in 0:1.3.1-16.el8_6.2
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Azure Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2025-6020 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-6020?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-6020?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-6020 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 100:1.6.1-8.el10
Red Hat Enterprise Linux 10.0 Extended Update Support0:1.6.1-8.el10_0
Red Hat Enterprise Linux 7 Extended Lifecycle Support0:1.1.8-23.el7_9.1
Red Hat Enterprise Linux 80:1.3.1-37.el8_10
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.1
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:1.3.1-14.el8_4.1
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:1.3.1-16.el8_6.2
Red Hat Enterprise Linux 8.6 Telecommunications Update Service0:1.3.1-16.el8_6.2
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions0:1.3.1-16.el8_6.2
Red Hat Enterprise Linux 8.8 Telecommunications Update Service0:1.3.1-26.el8_8.1
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions0:1.3.1-26.el8_8.1
Red Hat Enterprise Linux 90:1.5.1-26.el9_6
Red Hat Enterprise Linux 90:1.5.1-25.el9_6
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions0:1.5.1-9.el9_0.2
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:1.5.1-15.el9_2.1
Red Hat Enterprise Linux 9.4 Extended Update Support0:1.5.1-24.el9_4
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 RHEL-8 based Middleware Containers7.13.5-4.1752066672
Red Hat RHEL-8 based Middleware Containers7.13.5-4.1752065732
Red Hat RHEL-8 based Middleware Containers7.13.5-3.1752065737
Red Hat RHEL-8 based Middleware Containers7.13.5-4.1752065731
Red Hat RHEL-8 based Middleware Containers7.13.5-25
Red Hat RHEL-8 based Middleware Containers7.13.5-4.1752065736
Red Hat RHEL-8 based Middleware Containers7.13.5-2.1752065733
Red Hat RHEL-8 based Middleware Containers7.13.5-4.1752065755
Red Hat RHOSS-1.36-RHEL-81.36.0-11
Red Hat RHOSS-1.36-RHEL-81.36.0-10
Red Hat RHOSS-1.36-RHEL-81.36.0-4
Red Hat RHOSS-1.36-RHEL-81.36.0-9
Red Hat RHOSS-1.36-RHEL-81.36.0-12
Red Hat RHOSS-1.36-RHEL-81.36.0-18
Red Hat RHOSS-1.36-RHEL-81.36.0-7
Red Hat cert-manager operator for Red Hat OpenShift 1.16v1.16.5-1760515757
Red Hat OpenShift Compliance Operator 11.8.0
Red Hat Discovery 22.0.0-1752592913
Red Hat Discovery 22.2.1-1758555934
Red Hat Insights proxy 1.51.5.7-1759331989
Red Hat OpenShift distributed tracing 3.6.0rhosdt-3.6-1752046452
Red Hat OpenShift distributed tracing 3.6.0rhosdt-3.6-1752046437
Red Hat OpenShift distributed tracing 3.6.0rhosdt-3.6-1752046439
Red Hat OpenShift distributed tracing 3.6.0rhosdt-3.6-1752070865
Red Hat OpenShift distributed tracing 3.6.0rhosdt-3.6-1752070873
Red Hat OpenShift distributed tracing 3.6.0rhosdt-3.6-1751993590
Red Hat OpenShift distributed tracing 3.6.0rhosdt-3.6-1752070827
Red Hat OpenShift distributed tracing 3.6.0rhosdt-3.6-1752070833
Red Hat OpenShift distributed tracing 3.6.0rhosdt-3.6-1752070866
Red Hat OpenShift sandboxed containers 1.101.10.2-1757422110
Red Hat OpenShift sandboxed containers 1.101.10.2-1757421804
Red Hat OpenShift sandboxed containers 1.101.10.2-1757421879
Red Hat OpenShift sandboxed containers 1.101.10.2-1757422401

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11pam1.4.0-9+deb11u2DLA-4306-1
Debian12pamno fix listedDEBIAN-CVE-2025-6020
Debian13, 14pam1.7.0-5DEBIAN-CVE-2025-6020
Ubuntu22.04:LTSpam1.4.0-11ubuntu2.6UBUNTU-CVE-2025-6020 USN-7580-1
Ubuntu24.04:LTSpam1.5.3-5ubuntu5.4UBUNTU-CVE-2025-6020 USN-7580-1
Ubuntu25.10pam1.5.3-7ubuntu6UBUNTU-CVE-2025-6020
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTS and 1 morepamno fix listedUBUNTU-CVE-2025-6020
Red Hatenterprise_linux:8::baseospam, pam-devel, pam-debuginfo and 1 more0:1.3.1-37.el8_10RHSA-2025:10027
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-25.el9_6RHSA-2025:9526
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-25.el9_6RHSA-2025:9526
Red Hatenterprise_linux:9::baseospam, pam-debuginfo, pam-debugsource0:1.5.1-26.el9_6RHSA-2025:15099
Red Hatenterprise_linux:10.1pam, pam-libs, pam-devel and 3 more0:1.6.1-8.el10RHSA-2025:20181
Red Hatenterprise_linux_eus:10.0pam, pam-libs, pam-devel and 3 more0:1.6.1-8.el10_0RHSA-2025:22019
Red Hatrhel_aus:8.2::baseospam, pam-devel, pam-debuginfo and 1 more0:1.3.1-8.el8_2.1RHSA-2025:10362
Red Hatrhel_aus:8.4::baseospam, pam-devel, pam-debuginfo and 1 more0:1.3.1-14.el8_4.1RHSA-2025:10361
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.2RHSA-2025:10359
Red Hatrhel_e4s:8.8::baseos, rhel_tus:8.8::baseospam, pam-devel, pam-debuginfo and 1 more0:1.3.1-26.el8_8.1RHSA-2025:10358
7 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 20 morepam1.3.0-150000.6.83.1SUSE-SU-2025:02013-1
SUSELinux Micro 6.0pam1.6.0-5.1SUSE-SU-2025:20427-1
SUSELinux Micro 6.1pam1.6.1-slfo.1.1_3.1SUSE-SU-2025:20441-1
openSUSELeap 15.6pam1.3.0-150000.6.83.1SUSE-SU-2025:02013-1
openSUSETumbleweedpam1.7.1-1.1openSUSE-SU-2025:15256-1
AlmaLinux8pam, pam-devel1.3.1-37.el8_10ALSA-2025:10027
AlmaLinux8pam, pam-devel1.3.1-38.el8_10ALSA-2025:14557
AlmaLinux9pam, pam-docs, pam-devel1.5.1-25.el9_6ALSA-2025:9526
AlmaLinux9pam, pam-docs, pam-devel1.5.1-26.el9_6ALSA-2025:15099
AlmaLinux10pam, pam-libs, pam-devel1.6.1-8.el10ALSA-2025:20181
Rocky Linux8pam0:1.3.1-37.el8_10RLSA-2025:10027
Rocky Linux8pam0:1.3.1-38.el8_10RLSA-2025:14557
Rocky Linux9pam0:1.5.1-25.el9_6RLSA-2025:9526
Rocky Linux9pam0:1.5.1-26.el9_6RLSA-2025:15099
Rocky Linux10pam0:1.6.1-8.el10RLSA-2025:20181
Azure Linux2pam1.5.1-8AZL-64113
Azure Linux3pam1.5.3-5AZL-64142

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

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability in pam_namespace marked as Important rather than Moderate due to its direct impact on privilege boundaries and the ease of exploitation in common configurations. By leveraging symlink attacks or race conditions in polyinstantiated directories under their control, unprivileged local users can escalate to root, compromising the entire system. Since pam_namespace is often used in multi-user environments (e.g., shared systems, terminal servers, containers), a misconfigured or partially protected setup becomes a single point of failure. The attack does not require special capabilities or kernel-level exploits—just timing and control over certain paths—making it both reliable and low-barrier. Moreover, privilege escalation flaws like this can be chained with other vulnerabilities to persist or evade detection, further amplifying the risk.

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 10pam-0:1.6.1-8.el10Fixed 2025-11-11RHSA-2025:20181
Red Hat Enterprise Linux 10.0 Extended Update Supportpam-0:1.6.1-8.el10_0Fixed 2025-11-25RHSA-2025:22019
Red Hat Enterprise Linux 7 Extended Lifecycle Supportpam-0:1.1.8-23.el7_9.1Fixed 2025-07-07RHSA-2025:10357
Red Hat Enterprise Linux 8pam-0:1.3.1-37.el8_10Fixed 2025-07-01RHSA-2025:10027
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.1Fixed 2025-07-07RHSA-2025:10362
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpam-0:1.3.1-14.el8_4.1Fixed 2025-07-07RHSA-2025:10361
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpam-0:1.3.1-16.el8_6.2Fixed 2025-07-07RHSA-2025:10359
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicepam-0:1.3.1-16.el8_6.2Fixed 2025-07-07RHSA-2025:10359
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionspam-0:1.3.1-16.el8_6.2Fixed 2025-07-07RHSA-2025:10359
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicepam-0:1.3.1-26.el8_8.1Fixed 2025-07-07RHSA-2025:10358
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionspam-0:1.3.1-26.el8_8.1Fixed 2025-07-07RHSA-2025:10358
Red Hat Enterprise Linux 9pam-0:1.5.1-26.el9_6Fixed 2025-09-03RHSA-2025:15099
Red Hat Enterprise Linux 9pam-0:1.5.1-25.el9_6Fixed 2025-06-24RHSA-2025:9526
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionspam-0:1.5.1-9.el9_0.2Fixed 2025-07-07RHSA-2025:10354
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionspam-0:1.5.1-15.el9_2.1Fixed 2025-07-02RHSA-2025:10180
Red Hat Enterprise Linux 9.4 Extended Update Supportpam-0:1.5.1-24.el9_4Fixed 2025-07-01RHSA-2025:10024
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
38 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-6020.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-134-16Siemens Ruggedcom Rox2026-05-12Critical ManufacturingRUGGEDCOM ROX MX5000, RUGGEDCOM ROX MX5000RE, RUGGEDCOM ROX RX1400 and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

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