cve.bz

CVE-2026-12542 OS Command Injection

7.8 highEPSS 0.6%Fix available

High (7.8). EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in Foreman. The foreman-tail utility is vulnerable to OS command injection due to the unsafe use of the eval command. The script takes user-supplied arguments and incorporates them directly into a string that is then executed by eval to expand file paths. Because the input is not sanitized or quoted, a local attacker can inject shell metacharacters (e.g., ;, &, |) to execute arbitrary system commands.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 47th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-12542 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-12542?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-12542?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-12542 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-12542

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-12542](https://cve.bz/cve/badge/CVE-2026-12542.svg)](https://cve.bz/cve/CVE-2026-12542)

HTML:

<a href="https://cve.bz/cve/CVE-2026-12542"><img src="https://cve.bz/cve/badge/CVE-2026-12542.svg" alt="CVE-2026-12542"></a>

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Satellite 6.16 for RHEL 80:3.12.0.23-1.el8sat
Red Hat Satellite 6.16 for RHEL 90:3.12.0.23-1.el9sat
Red Hat Satellite 6.17 for RHEL 90:3.14.0.22-1.el9sat
Red Hat Satellite 6.18 for RHEL 90:3.16.0.25-1.el9sat
Red Hat Satellite 6.19 for RHEL 90:3.18.0.14-1.el9sat

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Successful exploitation of this issue allows a local attacker to escape restricted shells and execute arbitrary commands on the Satellite server. Consequently, the attacker could access sensitive information that could lead to remote code execution (RCE) and lateral movement across the managed infrastructure.

Red Hat's mitigation

Red 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.

ProductPackageStateAdvisory
Red Hat Satellite 6.16 for RHEL 8foreman-0:3.12.0.23-1.el8satFixed 2026-10-01RHSA-2026:74506
Red Hat Satellite 6.16 for RHEL 9foreman-0:3.12.0.23-1.el9satFixed 2026-10-01RHSA-2026:74506
Red Hat Satellite 6.17 for RHEL 9foreman-0:3.14.0.22-1.el9satFixed 2026-10-01RHSA-2026:74505
Red Hat Satellite 6.18 for RHEL 9foreman-0:3.16.0.25-1.el9satFixed 2026-10-01RHSA-2026:74504
Red Hat Satellite 6.19 for RHEL 9foreman-0:3.18.0.14-1.el9satFixed 2026-10-01RHSA-2026:74503
Red Hat Satellite 6satellite:el8/foremanAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-12542.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON