SecurityContext

CVE-2026-12542: Foreman - Command Injection

  • Cve: CVE-2026-12542
  • Name: Foreman - Command Injection
  • Description: 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.
  • Impact: Local attackers can execute arbitrary system commands, potentially leading to full system compromise.
  • Remediation: Update to the latest version with eval usage fixed or apply patches to sanitize input.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00563
  • Epss percentile: 0.4773
  • Assignee: [email protected]
  • Published at: 2026-10-01T18:17:15Z
  • Age in days: 53
  • Modified at: 2026-11-09T17:17:28Z
  • Patch available: yes
  • References total: 7
  • Products total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-12542
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-78Improper Neutralization of Special Elements used in an OS Command

References

Same in every row:

  • Source: nvd
UrlTags
http://www.openwall.com/lists/oss-security/2026/10/07/7Mailing List, Patch, Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:74503Vendor Advisory
https://access.redhat.com/errata/RHSA-2026:74504Vendor Advisory
https://access.redhat.com/errata/RHSA-2026:74505Vendor Advisory
https://access.redhat.com/errata/RHSA-2026:74506Vendor Advisory
https://access.redhat.com/security/cve/CVE-2026-12542Vendor Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2489971Issue Tracking, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
theforeman:foreman= 5.0.0; >= 1.5.0, <= 3.19.1nonvd/v1/products/theforeman/foreman
redhat:satellite>= 6.19, < 6.19.5; >= 6.18, < 6.18.10; >= 6.17, < 6.17.12; >= 6.16, < 6.16.4; = 6.0nonvd/v1/products/redhat/satellite

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 33
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports