CVE-2026-12541: Foreman: command injection in foreman-rake database tasks (fixed in 3.19.2, 5.0.1)
Foreman patched CVE-2026-12541, a command injection in foreman-rake database tasks that can compromise the server.
Ondrej Gajdusek announced a fix for CVE-2026-12541 in Foreman, an open-source lifecycle management tool for physical and virtual servers. A user allowed to run restricted foreman-rake database tasks can trigger command execution through file-path parameters because of unsafe shell handling, which can compromise the Foreman server and its database. Affected versions include Foreman 1.5.0 through 3.19.1, with fixes in 3.19.2 and 5.0.1. The post does not report observed exploitation.
- Command injection is in foreman-rake database file-path parameters.
- An allowed user of restricted tasks can reach command execution.
- Abuse can compromise the Foreman server and its database.
- Fixes are available in Foreman 3.19.2 and 5.0.1.
- CVEs
- CVE-2026-12541
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-12541 | OS command injection in Foreman foreman-rake DB tasks | 8.2 | — |
From the original article
Posted by Ondrej Gajdusek on Oct 06 Hi, A security fix has been released in Foreman, an open-source lifecycle management tool for physical and virtual servers. CVE-2026-12541: Foreman: command injection in foreman-rake database tasks A user allowed to run restricted `foreman-rake` database tasks can cause command execution through file path parameters.
seclists.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.