CVE Catalog

CVE-2026-12542

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.55%

44th percentile - higher than 44% of all known CVEs

Summary

A flaw was found in Foreman. The foreman-tail utility is vulnerable to OS command injection due to the unsafe use of the eval command. The script takes user-supplied arguments and incorporates them directly into a string that is then executed by eval to expand file paths. Because the input is not sanitized or quoted, a local attacker can inject shell metacharacters (e.g., ;, &, |) to execute arbitrary system commands.

Risk Assessment

A local attacker can execute arbitrary system commands, potentially leading to privilege escalation, data breach, or system takeover.

Recommendation

Update Foreman to a version that includes a fix replacing eval with safe argument handling, e.g., using File.expand_path with proper quoting or input validation.

Other vulnerabilities in Foreman

See all
Original NVD description (English source)

A flaw was found in Foreman. The foreman-tail utility is vulnerable to OS command injection due to the unsafe use of the eval command. The script takes user-supplied arguments and incorporates them directly into a string that is then executed by eval to expand file paths. Because the input is not sanitized or quoted, a local attacker can inject shell metacharacters (e.g., ;, &, |) to execute arbitrary system commands.

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