Skip to content
NewA calmer, faster ZeroHour

CVE-2026-12540: Foreman: command injection in foreman-rake errors:fetch_log (fixed in 3.19.2, 5.0.1)

oss-security ()3 · 1 read
Part of a story covered by 8 sourcesForeman patches eight access and code-execution flawsMerged summary & timeline
AI summary · grok-4.7Summaries by Vani AI

Restricted foreman-rake users can inject commands via errors:fetch_log and compromise the Foreman server.

CVE-2026-12540 is a command injection flaw in Foreman's restricted foreman-rake errors:fetch_log task. A user permitted to run that task can cause command execution through the request identifier parameter because of unsafe shell handling, which can compromise the Foreman server. Affected releases are Foreman 2.2.0 through 3.19.1 and 5.0.0, with fixes in 3.19.2 and 5.0.1. No active exploitation is stated.

Key facts
  • Restricted foreman-rake errors:fetch_log users can trigger command execution.
  • The request identifier parameter is passed through unsafe shell handling.
  • Successful injection can compromise the Foreman server.
  • Affects 2.2.0 through 3.19.1 and 5.0.0; fixed in 3.19.2 and 5.0.1.
Analyze CVE-2026-12540 with Vani AIImpact, affected versions, exploitation, mitigations and detection

Vulnerabilities mentioned

All
CVEVulnerabilityCVSSEPSSSignalsPublished
CVE-2026-12540
Command injection in Foreman foreman-rake fetch_log
8.2—

From the original article

Posted by Ondrej Gajdusek on Oct 06 Hi, A security fix has been released in Foreman, an open-source lifecycle management tool for physical and virtual servers. CVE-2026-12540: Foreman: command injection in foreman-rake errors:fetch_log A user allowed to run the restricted `foreman-rake` log task can cause command execution through its request identifier parameter.

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.