CVEFinder.io

CVE-2026-12540

⚠️ high
Summary

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.

CVSS Score
8.2
High
EPSS Score
1.2
Exploit Probability
Published Date
2026-10-01
First Seen: 2026-10-04
📊 Relative Risk Intelligence

This CVE is High Risk - more severe than 79.1% of all 365,890 vulnerabilities in our database.

#76,347
Top 25% most severe
Severity Percentile
🎯 CISA SSVC Assessment Updated: Oct 6, 2026
🔍 Exploitation Status
None
No known exploits
⚙️ Automatable
NO
Requires human interaction
💥 Technical Impact
Total
Complete system compromise possible
🏆 Discovered By
This issue was discovered by Laura Pardo (Red Hat) and Toni Gornals (Red Hat).
SSVC data provided by CISA
Last Modified 2026-10-08
Source NVD 🔗
CVSS Vector 3.1 CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CWE IDs (Weakness Types)

📦 Affected Products 6

🔗 References 7

🔗 Related CVEs 6

CVE ID Severity CVSS EPSS Summary Published
CVE-2026-12423 ⚠️ high 7.5 0.4 A flaw was found in Foreman. The Red Hat Satellite /unattended/provision API endpoint is vulnerable to an authentication... 2026-10-01
CVE-2026-12541 ⚠️ high 8.2 1.2 A flaw was found in Foreman. OS command injection vulnerabilities exist in the foreman-rake db:dump and db:import_dump t... 2026-10-01
CVE-2026-12544 ⚠️ high 7.7 0.2 A flaw was found in Foreman. The foreman-rake initialization logic in /usr/share/foreman/config/settings.rb contains a v... 2026-10-01
CVE-2026-81658 🔶 medium 6.5 0.3 A flaw was found in Foreman. The template revision endpoint does not enforce object-level authorization when retrieving ... 2026-08-27
CVE-2026-5136 ⚠️ high 8.8 0.3 A flaw was found in Foreman. The Usergroup model in Foreman does not properly validate role assignments against the call... 2026-07-01
CVE-2026-5135 🔶 medium 6.5 0.2 A flaw was found in Foreman. This broken access control vulnerability allows an authenticated user with host-edit permis... 2026-07-01
These CVEs affect the same products