CVE-2025-6020
Linux-pam: linux-pam directory traversal
Check your servers for CVE-2025-6020
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-6020 affects pam, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.49%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 43.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 17 Jun 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
linux-pam
package
linux-pam |
affected before 1.7.1
Other versions: unaffected
|
|
Red Hat Enterprise Linux 10
package
pam |
unaffected 0:1.6.1-8.el10 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 10.0 Extended Update Support
package
pam |
unaffected 0:1.6.1-8.el10_0 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 7 Extended Lifecycle Support
package
pam |
unaffected 0:1.1.8-23.el7_9.1 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8
package
pam |
unaffected 0:1.3.1-37.el8_10 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8
package
pam |
unaffected 0:1.3.1-38.el8_10 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.2 Advanced Update Support
package
pam |
unaffected 0:1.3.1-8.el8_2.1 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
package
pam |
unaffected 0:1.3.1-14.el8_4.1 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
package
pam |
unaffected 0:1.3.1-16.el8_6.2 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.6 Telecommunications Update Service
package
pam |
unaffected 0:1.3.1-16.el8_6.2 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
package
pam |
unaffected 0:1.3.1-16.el8_6.2 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.8 Telecommunications Update Service
package
pam |
unaffected 0:1.3.1-26.el8_8.1 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
package
pam |
unaffected 0:1.3.1-26.el8_8.1 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
pam |
unaffected 0:1.5.1-26.el9_6 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
pam |
unaffected 0:1.5.1-25.el9_6 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
pam |
unaffected 0:1.5.1-26.el9_6 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
pam |
unaffected 0:1.5.1-25.el9_6 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
package
pam |
unaffected 0:1.5.1-9.el9_0.2 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
package
pam |
unaffected 0:1.5.1-15.el9_2.1 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.4 Extended Update Support
package
pam |
unaffected 0:1.5.1-24.el9_4 and later
Other versions: affected
|
|
Red Hat Web Terminal 1.11 on RHEL 9
package
web-terminal/web-terminal-rhel9-operator |
unaffected 1.11-19 and later
Other versions: affected
|
|
Red Hat Web Terminal 1.11 on RHEL 9
package
web-terminal/web-terminal-tooling-rhel9 |
unaffected 1.11-8 and later
Other versions: affected
|
|
Red Hat Web Terminal 1.12 on RHEL 9
package
web-terminal/web-terminal-tooling-rhel9 |
unaffected 1.12-4 and later
Other versions: affected
|
|
RHEL-8 based Middleware Containers
package
rhpam-7/rhpam-businesscentral-monitoring-rhel8 |
unaffected 7.13.5-4.1752066672 and later
Other versions: affected
|
|
RHEL-8 based Middleware Containers
package
rhpam-7/rhpam-businesscentral-rhel8 |
unaffected 7.13.5-4.1752065732 and later
Other versions: affected
|
|
RHEL-8 based Middleware Containers
package
rhpam-7/rhpam-controller-rhel8 |
unaffected 7.13.5-4.1752065732 and later
Other versions: affected
|
|
RHEL-8 based Middleware Containers
package
rhpam-7/rhpam-dashbuilder-rhel8 |
unaffected 7.13.5-3.1752065737 and later
Other versions: affected
|
|
RHEL-8 based Middleware Containers
package
rhpam-7/rhpam-kieserver-rhel8 |
unaffected 7.13.5-4.1752065731 and later
Other versions: affected
|
|
RHEL-8 based Middleware Containers
package
rhpam-7/rhpam-operator-bundle |
unaffected 7.13.5-25 and later
Other versions: affected
|
|
RHEL-8 based Middleware Containers
package
rhpam-7/rhpam-process-migration-rhel8 |
unaffected 7.13.5-4.1752065736 and later
Other versions: affected
|
|
RHEL-8 based Middleware Containers
package
rhpam-7/rhpam-rhel8-operator |
unaffected 7.13.5-2.1752065733 and later
Other versions: affected
|
|
RHEL-8 based Middleware Containers
package
rhpam-7/rhpam-smartrouter-rhel8 |
unaffected 7.13.5-4.1752065755 and later
Other versions: affected
|
|
RHOSS-1.36-RHEL-8
package
openshift-serverless-1/logic-data-index-ephemeral-rhel8 |
unaffected 1.36.0-11 and later
Other versions: affected
|
|
RHOSS-1.36-RHEL-8
package
openshift-serverless-1/logic-data-index-postgresql-rhel8 |
unaffected 1.36.0-11 and later
Other versions: affected
|
|
RHOSS-1.36-RHEL-8
package
openshift-serverless-1/logic-db-migrator-tool-rhel8 |
unaffected 1.36.0-11 and later
Other versions: affected
|
|
RHOSS-1.36-RHEL-8
package
openshift-serverless-1/logic-jobs-service-ephemeral-rhel8 |
unaffected 1.36.0-10 and later
Other versions: affected
|
|
RHOSS-1.36-RHEL-8
package
openshift-serverless-1/logic-jobs-service-postgresql-rhel8 |
unaffected 1.36.0-10 and later
Other versions: affected
|
|
RHOSS-1.36-RHEL-8
package
openshift-serverless-1/logic-kn-workflow-cli-artifacts-rhel8 |
unaffected 1.36.0-4 and later
Other versions: affected
|
|
RHOSS-1.36-RHEL-8
package
openshift-serverless-1/logic-management-console-rhel8 |
unaffected 1.36.0-9 and later
Other versions: affected
|
|
RHOSS-1.36-RHEL-8
package
openshift-serverless-1/logic-operator-bundle |
unaffected 1.36.0-12 and later
Other versions: affected
|
|
RHOSS-1.36-RHEL-8
package
openshift-serverless-1/logic-rhel8-operator |
unaffected 1.36.0-18 and later
Other versions: affected
|
|
RHOSS-1.36-RHEL-8
package
openshift-serverless-1/logic-swf-builder-rhel8 |
unaffected 1.36.0-11 and later
Other versions: affected
|
|
RHOSS-1.36-RHEL-8
package
openshift-serverless-1/logic-swf-devmode-rhel8 |
unaffected 1.36.0-7 and later
Other versions: affected
|
|
cert-manager operator for Red Hat OpenShift 1.16
package
cert-manager/jetstack-cert-manager-rhel9 |
unaffected v1.16.5-1760515757 and later
Other versions: affected
|
|
OpenShift Compliance Operator 1
package
compliance/openshift-compliance-openscap-rhel8 |
unaffected 1.8.0 and later
Other versions: affected
|
|
Red Hat Discovery 2
package
discovery/discovery-server-rhel9 |
unaffected 2.0.0-1752592913 and later
Other versions: affected
|
|
Red Hat Discovery 2
package
discovery/discovery-server-rhel9 |
unaffected 2.2.1-1758555934 and later
Other versions: affected
|
|
Red Hat Insights proxy 1.5
package
insights-proxy/insights-proxy-container-rhel9 |
unaffected 1.5.7-1759331989 and later
Other versions: affected
|
|
Red Hat OpenShift distributed tracing 3.6.0
package
rhosdt/opentelemetry-collector-rhel8 |
unaffected rhosdt-3.6-1752046452 and later
Other versions: affected
|
|
Red Hat OpenShift distributed tracing 3.6.0
package
rhosdt/opentelemetry-rhel8-operator |
unaffected rhosdt-3.6-1752046437 and later
Other versions: affected
|
|
Red Hat OpenShift distributed tracing 3.6.0
package
rhosdt/opentelemetry-target-allocator-rhel8 |
unaffected rhosdt-3.6-1752046439 and later
Other versions: affected
|
|
Red Hat OpenShift distributed tracing 3.6.0
package
rhosdt/tempo-gateway-opa-rhel8 |
unaffected rhosdt-3.6-1752070865 and later
Other versions: affected
|
|
Red Hat OpenShift distributed tracing 3.6.0
package
rhosdt/tempo-gateway-rhel8 |
unaffected rhosdt-3.6-1752070873 and later
Other versions: affected
|
|
Red Hat OpenShift distributed tracing 3.6.0
package
rhosdt/tempo-jaeger-query-rhel8 |
unaffected rhosdt-3.6-1751993590 and later
Other versions: affected
|
|
Red Hat OpenShift distributed tracing 3.6.0
package
rhosdt/tempo-query-rhel8 |
unaffected rhosdt-3.6-1752070827 and later
Other versions: affected
|
|
Red Hat OpenShift distributed tracing 3.6.0
package
rhosdt/tempo-rhel8 |
unaffected rhosdt-3.6-1752070833 and later
Other versions: affected
|
|
Red Hat OpenShift distributed tracing 3.6.0
package
rhosdt/tempo-rhel8-operator |
unaffected rhosdt-3.6-1752070866 and later
Other versions: affected
|
|
Red Hat OpenShift sandboxed containers 1.10
package
openshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9 |
unaffected 1.10.2-1757422110 and later
Other versions: affected
|
|
Red Hat OpenShift sandboxed containers 1.10
package
openshift-sandboxed-containers/osc-monitor-rhel9 |
unaffected 1.10.2-1757421804 and later
Other versions: affected
|
|
Red Hat OpenShift sandboxed containers 1.10
package
openshift-sandboxed-containers/osc-podvm-builder-rhel9 |
unaffected 1.10.2-1757421879 and later
Other versions: affected
|
|
Red Hat OpenShift sandboxed containers 1.10
package
openshift-sandboxed-containers/osc-podvm-payload-rhel9 |
unaffected 1.10.2-1757422401 and later
Other versions: affected
|
Is my server affected?
Find the installed version of pam and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i pam
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-6020 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-6020RHEL, Rocky, Alma, Fedora
rpm -q pam
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-6020Alpine
apk list --installed | grep -i pamWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-6020
trivy image --scanners vuln IMAGE | grep CVE-2025-6020
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- RHSA-2025:10024 access.redhat.com · vendor advisory
- RHSA-2025:10027 access.redhat.com · vendor advisory
- RHSA-2025:10180 access.redhat.com · vendor advisory
- RHSA-2025:10354 access.redhat.com · vendor advisory
- RHSA-2025:10357 access.redhat.com · vendor advisory
- RHSA-2025:10358 access.redhat.com · vendor advisory
- RHSA-2025:10359 access.redhat.com · vendor advisory
- RHSA-2025:10361 access.redhat.com · vendor advisory
- RHSA-2025:10362 access.redhat.com · vendor advisory
- RHSA-2025:10735 access.redhat.com · vendor advisory
- RHSA-2025:10823 access.redhat.com · vendor advisory
- RHSA-2025:11386 access.redhat.com · vendor advisory
16 more
- RHSA-2025:11487 access.redhat.com · vendor advisory
- RHSA-2025:14557 access.redhat.com · vendor advisory
- RHSA-2025:15099 access.redhat.com · vendor advisory
- RHSA-2025:15709 access.redhat.com · vendor advisory
- RHSA-2025:15827 access.redhat.com · vendor advisory
- RHSA-2025:15828 access.redhat.com · vendor advisory
- RHSA-2025:16524 access.redhat.com · vendor advisory
- RHSA-2025:17181 access.redhat.com · vendor advisory
- RHSA-2025:18219 access.redhat.com · vendor advisory
- RHSA-2025:20181 access.redhat.com · vendor advisory
- RHSA-2025:21885 access.redhat.com · vendor advisory
- RHSA-2025:22019 access.redhat.com · vendor advisory
- RHSA-2025:9526 access.redhat.com · vendor advisory
- RHSA-2026:0934 access.redhat.com · vendor advisory
- https://access.redhat.com/security/cve/CVE-2025-6020 access.redhat.com · vdb entry
- RHBZ#2372512 bugzilla.redhat.com · issue tracking
Other references
- https://github.com/linux-pam/linux-pam/security/advisories/GHSA-f9p8-gjr4-j9gx github.com
- http://www.openwall.com/lists/oss-security/2025/06/17/1 openwall.com
- https://lists.debian.org/debian-lts-announce/2025/09/msg00021.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-577017.html cert-portal.siemens.com
Source: the record CVE-2025-6020 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse