CVE Catalog

CVE-2026-12540

HighCVSS 8.2
Published: Translated: NVD NIST

Summary

A command injection vulnerability exists in Foreman's foreman-rake errors:fetch_log task. The request_id parameter is passed to an underlying system command (typically grep) without adequate shell neutralization.

Risk Assessment

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.

Recommendation

Update Foreman to a patched version and restrict sudo permissions for the errors:fetch_log task.

Other vulnerabilities in Foreman

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS