---
id: CVE-2026-12542
title: A flaw was found in Foreman
summary: >-
  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 exe…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'
cwe:
  - CWE-78
vendor: redhat
product: satellite
affected:
  - 'satellite >= 6.16, < 6.16.4'
  - 'satellite >= 6.17, < 6.17.12'
  - 'satellite >= 6.19, < 6.19.5'
  - 'foreman >= 1.5.0, <= 3.19.1'
  - foreman = 5.0.0
  - 'satellite >= 6.18, < 6.18.10'
  - satellite = 6.0
patched:
  - satellite 6.18.10
published: '2026-10-01'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T13:19:24.893'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-12542'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:74503'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:74504'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:74505'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:74506'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2026-12542'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2489971'
    label: secalert@redhat.com
  - url: 'http://www.openwall.com/lists/oss-security/2026/10/07/7'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12542.json
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-12542'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-12542'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00563
epssPercentile: 0.46953
ingestedAt: '2026-10-01T18:55:42.369Z'
---

## Overview

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.

## Affected

- `satellite >= 6.16, < 6.16.4`
- `satellite >= 6.17, < 6.17.12`
- `satellite >= 6.19, < 6.19.5`
- `foreman >= 1.5.0, <= 3.19.1`
- `foreman = 5.0.0`
- `satellite >= 6.18, < 6.18.10`
- `satellite = 6.0`

## Remediation

Upgrade past the affected range:

- `satellite 6.18.10`

## Vendor advisories

- **RHSA-2026:74506** · Red Hat · fixed in: Red Hat Satellite 6.16 for RHEL 8, Red Hat Satellite 6.16 for RHEL 9 · released 2026-10-01 · [advisory](https://access.redhat.com/errata/RHSA-2026:74506)
- **RHSA-2026:74504** · Red Hat · fixed in: Red Hat Satellite 6.18 for RHEL 9 · released 2026-10-01 · [advisory](https://access.redhat.com/errata/RHSA-2026:74504)
- **RHSA-2026:74503** · Red Hat · fixed in: Red Hat Satellite 6.19 for RHEL 9 · released 2026-10-01 · [advisory](https://access.redhat.com/errata/RHSA-2026:74503)
- **Red Hat VEX** · Moderate · affected: Red Hat Satellite 6 · no fix planned: Red Hat Satellite 6 · updated 2026-10-02 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12542.json)
- **RHSA-2026:74505** · Red Hat · fixed in: Red Hat Satellite 6.17 for RHEL 9 · released 2026-10-01 · [advisory](https://access.redhat.com/errata/RHSA-2026:74505)
