Vulnerability · Published Jun 17, 2025 · Assigned by redhat

CVE-2025-6020Linux-pam: linux-pam directory traversal

High 7.8

In plain English

A high-severity path traversal in linux-pam. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.5%top 59.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10pam1.6.1-8.el10ALSA-2025:20181
AlmaLinux:8pam1.3.1-38.el8_10ALSA-2025:14557
AlmaLinux:8pam1.3.1-37.el8_10ALSA-2025:10027
AlmaLinux:9pam1.5.1-26.el9_6ALSA-2025:15099
AlmaLinux:9pam1.5.1-25.el9_6ALSA-2025:9526
AlmaLinux:10pam-devel1.6.1-8.el10ALSA-2025:20181
AlmaLinux:8pam-devel1.3.1-37.el8_10ALSA-2025:10027
AlmaLinux:8pam-devel1.3.1-38.el8_10ALSA-2025:14557
AlmaLinux:9pam-devel1.5.1-26.el9_6ALSA-2025:15099
AlmaLinux:9pam-devel1.5.1-25.el9_6ALSA-2025:9526
AlmaLinux:9pam-docs1.5.1-26.el9_6ALSA-2025:15099
AlmaLinux:9pam-docs1.5.1-25.el9_6ALSA-2025:9526
AlmaLinux:10pam-libs1.6.1-8.el10ALSA-2025:20181
Debian:12pam1.5.2-6+deb12u2DEBIAN-CVE-2025-6020
Debian:13pam1.7.0-5DEBIAN-CVE-2025-6020
Debian:14pam1.7.0-5DEBIAN-CVE-2025-6020
Rocky Linux:10pam0:1.6.1-8.el10RLSA-2025:20181
Rocky Linux:8pam0:1.3.1-37.el8_10RLSA-2025:10027
Rocky Linux:8pam0:1.3.1-38.el8_10RLSA-2025:14557
Rocky Linux:9pam0:1.5.1-26.el9_6RLSA-2025:15099
Rocky Linux:9pam0:1.5.1-25.el9_6RLSA-2025:9526
Ubuntu:22.04:LTSpam1.4.0-11ubuntu2.6UBUNTU-CVE-2025-6020
Ubuntu:22.04:LTSpam1.4.0-11ubuntu2.6USN-7580-1
Ubuntu:24.04:LTSpam1.5.3-5ubuntu5.4USN-7580-1
Ubuntu:24.04:LTSpam1.5.3-5ubuntu5.4UBUNTU-CVE-2025-6020
Ubuntu:25.10pam1.5.3-7ubuntu6UBUNTU-CVE-2025-6020

Affected products (as reported)

VendorProductVersions
linux-pam 0 – before 1.7.1
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support see references
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support see references
Red Hat Red Hat Web Terminal 1.11 on RHEL 9 see references
Red Hat Red Hat Web Terminal 1.11 on RHEL 9 see references
Red Hat Red Hat Web Terminal 1.12 on RHEL 9 see references
Red Hat RHEL-8 based Middleware Containers see references
Red Hat RHEL-8 based Middleware Containers see references
Red Hat RHEL-8 based Middleware Containers see references
Red Hat RHEL-8 based Middleware Containers see references
Red Hat RHEL-8 based Middleware Containers see references
Red Hat RHEL-8 based Middleware Containers see references
Red Hat RHEL-8 based Middleware Containers see references

Weakness: CWE-22 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References