Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-6020: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

0
High
VulnerabilityCVE-2025-6020cvecve-2025-6020
Published: Tue Jun 17 2025 (06/17/2025, 12:44:08 UTC)
Source: CVE Database V5

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/27/2026, 20:17:50 UTC

Technical Analysis

CVE-2025-6020 is a path traversal vulnerability in the pam_namespace module of linux-pam. The module improperly restricts pathname usage, allowing local attackers to leverage symlink attacks and race conditions to escalate privileges to root. The vulnerability is rated high severity with a CVSS 3.1 score of 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). Red Hat has released security advisories RHSA-2025:10024 and RHSA-2025:10027 providing updated pam packages for Red Hat Enterprise Linux 8 and 9.4 Extended Update Support to fix this issue. The advisories include detailed package updates and instructions for remediation. No public exploits have been reported.

Potential Impact

Successful exploitation allows a local user with limited privileges to escalate to root privileges by exploiting symlink attacks and race conditions in the pam_namespace module. This compromises system confidentiality, integrity, and availability. The CVSS score of 7.8 reflects the high impact on the affected systems. There are no known exploits in the wild currently, but the vulnerability poses a significant risk if left unpatched.

Mitigation Recommendations

Red Hat has released official security updates for linux-pam that address CVE-2025-6020. Users of Red Hat Enterprise Linux 8 and 9.4 Extended Update Support should apply the updated pam packages as detailed in Red Hat advisories RHSA-2025:10024 and RHSA-2025:10027. The advisories provide package names, versions, and SHA-256 checksums for verification. Applying these updates is the recommended and effective mitigation. Patch status is confirmed as officially fixed by Red Hat. No additional mitigation steps are indicated by the vendor.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
redhat
Date Reserved
2025-06-11T22:38:25.643Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/errata/RHSA-2025:10024","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:10027","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:10180","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:10354","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:10357","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:10358","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:10359","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:10361","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:10362","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:10735","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:10823","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:11386","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:11487","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:14557","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:15099","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:15709","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:15827","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:15828","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:16524","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:17181","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:18219","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:20181","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:21885","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:22019","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:9526","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:0934","vendor":"Red Hat"},{"url":"https://access.redhat.com/security/cve/CVE-2025-6020","vendor":"Red Hat"}]

Threat ID: 685167e3a8c921274385b7a9

Added to database: 6/17/2025, 1:04:35 PM

Last enriched: 4/27/2026, 8:17:50 PM

Last updated: 5/9/2026, 6:08:48 AM

Views: 104

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses