CVE-2026-12540

HIGHCVSS 8.2/10EPSS 1.31%

Last modified

CVE-2026-12540 is a high-severity vulnerability rated 8.2/10 on the CVSS scale. A flaw was found in Foreman. A command injection vulnerability exists in the foreman-rake errors:fetch_log task. EPSS estimates a 1.31% chance of exploitation in the next 30 days.

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.

Metrics

EPSS Probability
1.31%

69.7th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
RedhatSatellite>= 6.16, < 6.16.4
RedhatSatellite>= 6.17, < 6.17.12
RedhatSatellite>= 6.19, < 6.19.5
TheforemanForemanAll versions
RedhatSatellite>= 6.18, < 6.18.10
RedhatSatellite6.0

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is CVE-2026-12540?
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.
How severe is CVE-2026-12540?
CVE-2026-12540 has a CVSS score of 8.2/10 (HIGH severity). The EPSS model estimates a 1.31% probability of exploitation in the next 30 days.
How do I fix CVE-2026-12540?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-12540?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST