CVE-2026-12540
HIGH 8.2CVSS 3.1Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter
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.
- Published
- 1 Oct 2026
- Last modified
- 26 Nov 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Analyzed
- Weakness
- CWE-78
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| CVE List | redhat | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: total |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | satellitecpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:* |
>= 6.16, < 6.16.4 | 6.16.4 |
| NVD | redhat | satellitecpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:* |
>= 6.17, < 6.17.12 | 6.17.12 |
| NVD | redhat | satellitecpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:* |
>= 6.19, < 6.19.5 | 6.19.5 |
| NVD | theforeman | foremancpe:2.3:a:theforeman:foreman:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | redhat | satellitecpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:* |
>= 6.18, < 6.18.10 | 6.18.10 |
| NVD | redhat | satellitecpe:2.3:a:redhat:satellite:6.0:*:*:*:*:*:*:* |
= 6.0 | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | foremancpe:/a:redhat:satellite:6.16::el8 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | foremancpe:/a:redhat:satellite:6.16::el8 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | foremancpe:/a:redhat:satellite:6.17::el9 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | foremancpe:/a:redhat:satellite:6.18::el9 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | foremancpe:/a:redhat:satellite:6.19::el9 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | satellite:el8/foremancpe:/a:redhat:satellite:6 |
all versions |
References
- https://access.redhat.com/errata/RHSA-2026:74503 · Vendor Advisory, vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:74504 · Vendor Advisory, vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:74505 · Vendor Advisory, vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:74506 · Vendor Advisory, vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-12540 · Vendor Advisory, vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2489969 · Issue Tracking, Mitigation, Vendor Advisory, issue-tracking, x_refsource_REDHAT
- http://www.openwall.com/lists/oss-security/2026/10/07/9 · Third Party Advisory
History
- 26 Nov 2026 16:16 UTC · NVD: updated (other details)
- 26 Nov 2026 14:16 UTC · CVE List: first stored (published 1 Oct 2026)
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 1 Oct 2026)