Skip to main content
Public proof of conceptFix available

CVE-2025-6020

Linux-pam: linux-pam directory traversal

A public proof of concept exists; no exploitation attested.

  • Published2025-06-17
  • WeaknessCWE-22

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2025-06-1712:44CVE publishedCNA
  2. 2025-06-1713:15CVE publishedNVD
  3. 2026-11-1110:16First public proof of conceptPoC-in-GitHub

Versions per branch

Products declared by the CNA59 products

As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

53 more products in the CVE record.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-11-06

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • libpam0gTuxCare:Ubuntu:18.04all versions · fixed in 1.1.8-3.6ubuntu2.18.04.6+tuxcare.els2and 6 other packages
  • libpam0gTuxCare:Ubuntu:18.04all versions · fixed in 1.1.8-3.6ubuntu2.18.04.6+tuxcare.els3and 6 other packages
  • libpam0gTuxCare:Ubuntu:16.04all versions · fixed in 1.1.8-3.2ubuntu2.3+tuxcare.els3and 6 other packages
  • pamUbuntu:Pro:20.04:LTSall versions · no fixed version listed
  • pamUbuntu:Pro:18.04:LTSall versions · no fixed version listed
  • pamUbuntu:Pro:16.04:LTSall versions · no fixed version listed
  • pamUbuntu:Pro:14.04:LTSall versions · no fixed version listed
  • pamUbuntu:25.10all versions · fixed in 1.5.3-7ubuntu6

84 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-6020 Red Hat Product Security492 products fixed

    linux-pam: Linux-pam directory Traversal

  • ICSA-26-134-16 CISA11 known affected

    Siemens Ruggedcom Rox

    RUGGEDCOM ROX MX5000 · RUGGEDCOM ROX MX5000RE · RUGGEDCOM ROX RX1400 · +8 more

  • SSA-577017 Siemens ProductCERT11 known affected

    SSA-577017: Multiple Vulnerabilities in Ruggedcom Rox Before 2.17.1

    RUGGEDCOM ROX MX5000 · RUGGEDCOM ROX MX5000RE · RUGGEDCOM ROX RX1400 · +8 more

  • RHSA-2026:0934 Red Hat Product Security30 products fixed

    Red Hat Security Advisory: Release of OpenShift Serverless Logic 1.36.0 security update & enhancements

  • RHSA-2025:22019 Red Hat Product Security37 products fixed

    Red Hat Security Advisory: pam security update

  • RHSA-2025:21885 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Compliance Operator bug fix and enhancement update

23 more advisories

Full record on NVD

Fix

  1. Vendor fix CISA ICSA-26-134-16 · 11 productsUpdate to V2.17.1 or later version
  2. Vendor fix Siemens ProductCERT SSA-577017 · 11 productsUpdate to V2.17.1 or later version
  3. Vendor fix Red Hat Product Security RHSA-2026:0934 · 30 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2025:22019 · 37 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  5. Vendor fix Red Hat Product Security RHSA-2025:21885 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.openshift.com/container-platform/latest/updating/updating_a_cluster/updating-cluster-cli.html
  6. Vendor fix Red Hat Product Security RHSA-2025:18219 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. The steps to apply the upgraded images are different depending on the installation plan approval policy you used when installing the cert-manager Operator for Red Hat OpenShift. - If t…

Detection

read 2026-11-11 10:17 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVE recordread 2026-11-06
  • CISA-ADPSSVC decisionnone2025-06-17
  • CNACVSS 3.17.82026-11-06
  • CNAweakness (CWE)CWE-222026-11-06
  • FIRST EPSSEPSS score0.5 %2026-11-18
  • PoC-in-GitHubproof of concept1known since 2026-11-11
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2025-06-17
Last Modified
2026-11-06
NVD status
Deferred

Frequently asked questions

What is CVE-2025-6020?

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.

Is CVE-2025-6020 actively exploited?

Active exploitation of CVE-2025-6020 has not been confirmed. Its EPSS score was 0.5% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-6020?

CVE-2025-6020 has a CVSS v3 base score of 7.8 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running linux-pam? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record