CVSS v3
8.2
HIGH
EPSS Score
—
exploit probability
CISA KEV
No
known exploited
Exploitation
—
SSVC status
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.
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- Published
- 2026-10-01
- Last Modified
- 2026-10-02
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.
Is CVE-2026-12540 actively exploited?
Active exploitation of CVE-2026-12540 has not been confirmed.
What is the CVSS score for CVE-2026-12540?
CVE-2026-12540 has a CVSS v3 base score of 8.2 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.
Is CVE-2026-12540 affecting your environment?
Use isMalicious to check if any of your IPs or domains are associated with this vulnerability's IOCs.
No credit card required · 500 free checks/month · Free API key
Other 2026 vulnerabilities worth triaging
Ranked by exploit probability (EPSS).
- CVE-2026-10520KEV
- CVE-2026-24061KEV
- CVE-2026-1281KEV
- CVE-2026-1340KEVUnauthenticated Remote Code Execution via Code Injection in Ivanti Endpoint Manager Mobile
- CVE-2026-41940KEV
- CVE-2026-23760KEVSmarterTools SmarterMail < Build 9511 Authentication Bypass via Password Reset API
- CVE-2026-21643KEVSQL Injection Vulnerability in FortiClientEMS 7.4.4 Allows Unauthenticated Remote Code Execution
- CVE-2026-85706KEV