CVE-2026-12540
8.2 HIGHPublished 2026-10-01 · Updated 2026-10-07
AI risk analysis
- Summary
- The flaw allows an attacker with sudo permissions to inject shell commands, leading to the execution of arbitrary code.
- Exploitability
- Exploitation requires sudo permissions and knowledge of the specific request_id parameter. The vulnerability is moderately hard to exploit.
- Blast radius
- If exploited, the attacker could gain full control over the system, potentially leading to data loss or system compromise.
- Detection
- No reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Disable the foreman-rake errors:fetch_log task or restrict access to it to users without sudo permissions.
Analysis generated locally by qwen2.5:7b-instruct (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
A flaw was found in Foreman. A command injection vulnerability exists in the foreman-rake errors:fetch_log task. The request_id parameter is passed to an underlying system command (typically grep) without adequate shell neutralization. While the task is intended to fetch specific log entries, an attacker with sudo permissions to execute this rake task can inject shell metacharacters (such as ;, ", or |) to break out of the intended command and execute arbitrary code.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Weaknesses
CWE-78
All references
- https://access.redhat.com/errata/RHSA-2026:74503
- https://access.redhat.com/errata/RHSA-2026:74504
- https://access.redhat.com/errata/RHSA-2026:74505
- https://access.redhat.com/errata/RHSA-2026:74506
- https://access.redhat.com/security/cve/CVE-2026-12540
- https://bugzilla.redhat.com/show_bug.cgi?id=2489969
- http://www.openwall.com/lists/oss-security/2026/10/07/9
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- CRITICALCVE-2020-37282PoC
- CRITICALCVE-2025-71429PoC
- CRITICALCVE-2026-103056PoC
- HIGHCVE-2026-104085
- HIGHCVE-2026-105407
- HIGHCVE-2026-105841
- HIGHCVE-2026-106056PoC
- HIGHCVE-2026-106058PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.