CVE-2026-12540 Foreman - Command Injection

Foreman contains a command injection caused by inadequate shell neutralization of the request_id parameter in the foreman-rake errors:fetch_log task, letting attackers with sudo permissions execute arbitrary code.

CVSS base score 8.2 /10
High
CISA KEV
Not listed
Public exploit
None known
Authentication
Required
EPSS
1.20% chance of exploitation in 30 days
View the NVD record ↗

Details

Type
Command Injection
Impact
Remote Code Execution
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Published
1 October 2026
Updated
15 October 2026
Weakness
CWE-78

Vendor fix

Update to the latest version with the fix or apply patches that properly sanitize input.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

References

← All CVEs