Skip to content
Noroxi
CVE-2025-8941· NVD / CVE Program· CNA redhat

Linux-pam: incomplete fix for cve-2025-6020

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.

HighCVSS 7.8 · v3.1—No exploit Fix available

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help
Published
Aug 13, 2025
Updated
Jun 17, 2026
EPSS
0.3% · 17th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

31

Monitor

Low priority for now.

CVSS
31 / 40 · 7.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.3%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · redhat
7.8
NVD has not scored this yet; the score shown is the CNA’s.

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

—

Versions reported by the vendor

Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.

  • github.com/linux-pam/linux-pam linux-pam

    • all versionsunknown
  • Red Hat cert-manager operator for Red Hat OpenShift 1.16

    • sha256:330e8b5ab4841a21f8f5f23cc7fb192197872f11639b12bf4b1e70831f636323 and laternot affected · rpm
  • Red Hat Compliance Operator 1

    • sha256:c953e9f9abf9cf25bf65bb3ffdc86ccf49b3e69a1cf3fbb47b6972e421fd6628 and laternot affected · rpm
  • Red Hat Red Hat Discovery 2

    • sha256:c85cfbcaf7888885e57596b7b8bde3894718cfc33326499b24961a66a62cf083 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support

    • 0:1.1.8-23.el7_9.2 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8

    • 0:1.3.1-38.el8_10 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support

    • 0:1.3.1-8.el8_2.2 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support

    • 0:1.3.1-14.el8_4.2 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

    • 0:1.3.1-14.el8_4.2 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support

    • 0:1.3.1-16.el8_6.3 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service

    • 0:1.3.1-16.el8_6.3 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions

    • 0:1.3.1-16.el8_6.3 and laternot affected · rpm

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:9pambefore 1.5.1-26.el9_61.5.1-26.el9_6
AlmaLinux:9pam-develbefore 1.5.1-26.el9_61.5.1-26.el9_6
AlmaLinux:9pam-docsbefore 1.5.1-26.el9_61.5.1-26.el9_6
Debian:12pamall versions—
Red Hat:enterprise_linux:8::baseospambefore 0:1.3.1-38.el8_100:1.3.1-38.el8_10
Red Hat:enterprise_linux:8::baseospam-debuginfobefore 0:1.3.1-38.el8_100:1.3.1-38.el8_10
Red Hat:enterprise_linux:8::baseospam-debugsourcebefore 0:1.3.1-38.el8_100:1.3.1-38.el8_10
Red Hat:enterprise_linux:8::baseospam-develbefore 0:1.3.1-38.el8_100:1.3.1-38.el8_10
Red Hat:enterprise_linux:9::appstreampam-debuginfobefore 0:1.5.1-26.el9_60:1.5.1-26.el9_6
Red Hat:enterprise_linux:9::appstreampam-debugsourcebefore 0:1.5.1-26.el9_60:1.5.1-26.el9_6
Red Hat:enterprise_linux:9::appstreampam-develbefore 0:1.5.1-26.el9_60:1.5.1-26.el9_6
Red Hat:enterprise_linux:9::appstreampam-docsbefore 0:1.5.1-26.el9_60:1.5.1-26.el9_6
Red Hat:enterprise_linux:9::baseospambefore 0:1.5.1-26.el9_60:1.5.1-26.el9_6
Red Hat:rhel_aus:8.2::baseospambefore 0:1.3.1-8.el8_2.20:1.3.1-8.el8_2.2
Red Hat:rhel_aus:8.2::baseospam-debuginfobefore 0:1.3.1-8.el8_2.20:1.3.1-8.el8_2.2
Red Hat:rhel_aus:8.2::baseospam-debugsourcebefore 0:1.3.1-8.el8_2.20:1.3.1-8.el8_2.2
Red Hat:rhel_aus:8.2::baseospam-develbefore 0:1.3.1-8.el8_2.20:1.3.1-8.el8_2.2
Red Hat:rhel_aus:8.4::baseospambefore 0:1.3.1-14.el8_4.20:1.3.1-14.el8_4.2
Red Hat:rhel_aus:8.4::baseospam-debuginfobefore 0:1.3.1-14.el8_4.20:1.3.1-14.el8_4.2
Red Hat:rhel_aus:8.4::baseospam-debugsourcebefore 0:1.3.1-14.el8_4.20:1.3.1-14.el8_4.2
Red Hat:rhel_aus:8.4::baseospam-develbefore 0:1.3.1-14.el8_4.20:1.3.1-14.el8_4.2
Red Hat:rhel_aus:8.6::baseospambefore 0:1.3.1-16.el8_6.30:1.3.1-16.el8_6.3
Red Hat:rhel_aus:8.6::baseospam-debuginfobefore 0:1.3.1-16.el8_6.30:1.3.1-16.el8_6.3
Red Hat:rhel_aus:8.6::baseospam-debugsourcebefore 0:1.3.1-16.el8_6.30:1.3.1-16.el8_6.3

+25

Other highest-scoring records for the same primary product.

  • CVE-2025-32911Libsoup: double free on soup_message_headers_get_content_disposition() through "soup-message-headers.c" via "params" ghashtable value
    36Monitor
  • CVE-2025-1244Emacs: shell injection vulnerability in gnu emacs via custom "man" uri scheme
    36Monitor
  • CVE-2026-54228Abrt: toctou race condition in abrt-dbus setelement allows arbitrary file writes to dump directories
    31Monitor
  • CVE-2025-32913Libsoup: null pointer dereference in soup_message_headers_get_content_disposition when "filename" parameter is present, but has no value in content-dispositio
    30Monitor
  • CVE-2025-0624Grub2: net: out-of-bounds write in grub_net_search_config_file()
    30Monitor
  • CVE-2025-48798Gimp: multiple use after free in xcf parser
    29Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:pam1.5.1-26.el9_6 · AlmaLinux:9Package registry (OSV)
almalinux:pam-devel1.5.1-26.el9_6 · AlmaLinux:9Package registry (OSV)
almalinux:pam-docs1.5.1-26.el9_6 · AlmaLinux:9Package registry (OSV)
red hat:pam0:1.3.1-38.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:pam-debuginfo0:1.3.1-38.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:pam-debugsource0:1.3.1-38.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:pam-devel0:1.3.1-38.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:pam-docs0:1.5.1-26.el9_6 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
rocky linux:pam0:1.3.1-38.el8_10 · Rocky Linux:8Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

nvd-secondary

Root cause

A user-supplied file name is joined with the allowed directory, but the result is never checked to confirm it is still inside that directory.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
const file = path.join(ROOT, req.query.name);res.sendFile(file);

Fixed

ts
const file = path.resolve(ROOT, req.query.name);if (!file.startsWith(ROOT + path.sep)) {  return res.sendStatus(400);}res.sendFile(file);

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records