Skip to main content
No exploitation reportedFix available

CVE-2026-12540

Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter

No exploitation reported by the sources we read.

  • Published2026-10-01
  • Fixed in6.19.5 · 6.18.10 · 6.17.12 · 6.16.4
  • WeaknessCWE-78

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-10-0116:22CVE publishedCNA

Versions per branch

NVD
Redhat satelliteversion to verify
BranchAffectedFixed in
6.19≥ 6.19, < 6.19.56.19.5
6.18≥ 6.18, < 6.18.106.18.10
6.17≥ 6.17, < 6.17.126.17.12
6.16≥ 6.16, < 6.16.46.16.4
6.0= 6.0no fix published
Theforeman foreman
BranchAffectedFixed in
—all versionsno fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA6 products

As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-10-02

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Vendor advisories

  • CVE-2026-12540 Red Hat Product Security65 products fixed · 17 known affected

    foreman: command injection in foreman-rake errors:fetch_log via request_id parameter

    foreman-cli (satellite:el8) as a component of Red Hat Satellite 6 · foreman-compute (satellite:el8) as a component of Red Hat Satellite 6 · foreman-debug (satellite:el8) as a component of Red Hat Satellite 6 · +14 more

  • RHSA-2026:74506 Red Hat Product Security32 products fixed

    Red Hat Security Advisory: Satellite 6.16.14 Async Update

  • RHSA-2026:74505 Red Hat Product Security16 products fixed

    Red Hat Security Advisory: Satellite 6.17.12 Async Update

  • RHSA-2026:74504 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Satellite 6.18.10 Async Update

  • RHSA-2026:74503 Red Hat Product Security15 products fixed

    Red Hat Security Advisory: Satellite 6.19.5 Async Update

Full record on NVD

Fix

  1. Update Redhat satellite to 6.19.5 · 6.18.10 · 6.17.12 · 6.16.4
  2. Vendor fix Red Hat Product Security RHSA-2026:74506 · 42 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_satellite/6.16/html/updating_red_hat_satellite/index Release Notes: Pro…
  3. Vendor fix Red Hat Product Security RHSA-2026:74505 · 21 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2026:74504 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  5. Vendor fix Red Hat Product Security RHSA-2026:74503 · 20 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_satellite/6.19/html/updating_red_hat_satellite/index
  6. Workaround from the vendor Red Hat Product Security RHSA-2026:74506 · 134 productsRed Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.
  7. No fix available, says the vendor Red Hat Product Security CVE-2026-12540 · 17 productsAffected

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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-08
NVD status
Analyzed
GitHub Advisory
GHSA-c5q9-9fc7-jgxp

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. Its EPSS score was 1.2% on 2026-11-15, the estimated probability of exploitation in the next 30 days.

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.

Running foreman? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record