---
cve: "CVE-2026-12540"
severity: "HIGH"
cvss: 8.2
epss: "1.3%"
vendor: "Red Hat"
kev: false
exploited: false
published: "2026-10-01 17:17:20"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-10-08T00:36:07+02:00"
---

# CVE-2026-12540

> 8.2 HIGH

## Beschreibung

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.

## CNA-Record (Kanon, cvelistV5)

- CNA: **redhat**
- State: PUBLISHED
- Stand: 2026-10-06 01:48:13
- CNA-CVSS: **8.2** (`CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`)

## CISA-Anreicherung (vulnrichment/ADP)

- CISA-SSVC (Coordinator, v2.0.3):
  - Exploitation: **none**
  - Automatable: **no**
  - Technical Impact: **total**

## CVSS-Vektor

```
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Lokal | good |
| AC Komplexität | Gering | bad |
| PR Privilegien | Hoch | good |
| UI Interaktion | Keine | bad |
| S Scope | Verändert | bad |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Hoch | bad |

## BSI-Hinweise (deutsch)

- [Foreman: Mehrere Schwachstellen](https://wid.cert-bund.de/portal/wid/sicherheitshinweis/WID-SEC-W-2026-3712) — _BSI-Einstufung: kritisch_
  Ein Angreifer kann mehrere Schwachstellen in Foreman ausnutzen, um beliebigen Programmcode auszuführen, Sicherheitsmaßnahmen zu umgehen, Daten zu manipulieren und vertrauliche Informationen offenzulegen.

## Referenzen

- <https://access.redhat.com/errata/RHSA-2026:74503>
- <https://access.redhat.com/errata/RHSA-2026:74504>
- <https://access.redhat.com/errata/RHSA-2026:74505>
- <https://access.redhat.com/errata/RHSA-2026:74506>
- <https://access.redhat.com/security/cve/CVE-2026-12540>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2489969>
- <http://www.openwall.com/lists/oss-security/2026/10/07/9>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/sicherheitsluecken/cve-2026-12540/) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI WID (CSAF)_
