← Back to search

CVE-2026-12540

8.2 HIGH

Published 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.
rcesudocommand-injection

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

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.