Red Hat Enterprise Linux 7
Pam-config: lpe from unprivileged to allow_active in pam
A Local Privilege Escalation (LPE) vulnerability has been discovered in pam-config within Linux Pluggable Authentication Modules (PAM). This flaw allows an unprivileged local attacker (for example, a user logged in via SSH) to obtain the elevated privileges normally reserved for a physically present, "allow_active" user. The highest risk is that the attacker can then perform all allow_active yes Polkit actions, which are typically restricted to console users, potentially gaining unauthorized control over system configurations, services, or other sensitive operations.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.1.8-24.71.1
Fixed in 1.1.8-24.71.1
Mitigation
Upgrade the affected product to 1.1.8-24.71.1 or later.
Workaround
Currently, there is no mitigation available for this vulnerability.
Timeline
Days relative to CVE publicationFirst public PoC 20 days before publication; not in CISA KEV. First PoC: iamgithubber/CVE-2025-6018-19-exploit (created 3 Jul 2025, found by us: backfilled).
PoC repositories
Found on GitHub.12 PoCs · 2 pending · 5 informational · 1 not a PoC · 2 suspicious or fake
PoCs 12
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| mistrust999/PAM-UDisks-PrivEsc-Metasploit | 27 Jun 2025 −26 d | 3 | PoC older repo: PoC date unknown, not used for the first PoC |
| mistrustt/PAM-UDisks-PrivEsc-Metasploit | 27 Jun 2025 −26 d | 3 | PoC older repo: PoC date unknown, not used for the first PoC |
| iamgithubber/CVE-2025-6018-19-exploit | 3 Jul 2025 −20 d | 1 | PoC |
| dreysanox/CVE-2025-6018_Poc | 3 Jul 2025 −20 d | 6 | PoC |
| muyuanlove/CVE-2025-6018-CVE-2025-6019-Privilege-Escalation-Exploit | 9 Feb 2026 +201 d | 12 | PoC |
| 0rionCollector/Exploit-Chain-CVE-2025-6018-6019 | 9 Feb 2026 +201 d | 4 | PoC |
| Goultarde/CVE-2025-6018_CVE-2025-6019_autopwn | 10 Feb 2026 +202 d | 4 | PoC |
| matesz44/CVE-2025-6018-19 | 11 Feb 2026 +202 d | 0 | PoC via PoC Index |
| DesertDemons/CVE-2025-6018-6019 | 12 Feb 2026 +204 d | 5 | PoC |
| MaxKappa/opensuse-leap-privesc-exploit | 14 Feb 2026 +206 d | 0 | PoC via PoC Index |
| iOxsec/CVE-2025-6018-CVE-2025-6019-Privilege-Escalation-Exploit | 22 Feb 2026 +214 d | 0 | PoC |
| e1arth/CVE-2025-6018 | 2 Mar 2026 +222 d | 0 | PoC |
Pending 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| B1ack4sh/Blackash-CVE-2025-6018 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| ibrahmsql/CVE-2025-6018 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 5
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| euxem/Analyse-faille-de-s-curit-CVE-2025-6018-CVE-2025-6019 | 30 Nov 2025 +130 d | 0 | Informational · write-up |
| AzureADTrent/CVE-2025-6018-and-CVE-2025-6019-Privilege-Escalation | 9 Feb 2026 +201 d | 1 | Informational · write-up |
| localh0ste/CVE-2025-6018-and-CVE-2025-6019 | 13 Feb 2026 +205 d | 1 | Informational · write-up |
| V0idW1re/HTB-Pterodactyl-Writeup | 8 Apr 2026 +259 d | 0 | Informational · write-up
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| karimelsheikh1/HTB-Pterodactyl-Writeup | 24 Apr 2026 +274 d | 0 | Informational · write-up
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Not a PoC 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| symphony2colour/CVE-2025-6019-udisks-lpe-no-image | 10 Feb 2026 +202 d | 1 | Not a PoC · unrelated |
Suspicious or fake 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| MichaelVenturella/CVE-2025-6018-6019-PoC | 9 Feb 2026 +201 d | 16 | Fake |
| m0r4a/CVE-2026-6018-9-Local-Privilege-Escalation-Chain | 23 Apr 2026 +274 d | 1 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Linux PAM Environment - Variable Injection Local Privilege Escalation | 28 Jul 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 12 PoC reposGET /exploit.img
- Ports
- 8000
- Seen in
- 1 repo: iamgithubber/CVE-2025-6018-19-exploit
- Evidence
- iamgithubber/CVE-2025-6018-19-exploit/victem.sh:14
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/exploit\.img(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8000] (msg:"GG PoC-Monitor CVE-2025-6018 Red Hat Red Hat Enterprise Linux 7 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/exploit.img"; reference:url,poc.griffinguard.io/cve/CVE-2025-6018; classtype:web-application-attack; sid:9796460; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Red Hat Red Hat Enterprise Linux 7 exploit attempt (CVE-2025-6018)
id: gg-pocmon-cve-2025-6018-9796460
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-6018. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-6018
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/exploit.img'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.6018