Skip to main content

A flaw was found in Foreman. A command injection vulnerability exists in the foreman-rake errors:fetch_log task. (CVE-2026-12540)

0
High
Published: 10/01/2026 (10/01/2026, 18:32:44 UTC)
Source: GCVE Database

Description

A command injection vulnerability (CVE-2026-12540) exists in Foreman within the foreman-rake errors:fetch_log task. The request_id parameter is passed unsafely to a system command, allowing an attacker with sudo permissions to inject shell metacharacters and execute arbitrary code. This flaw affects Red Hat Satellite 6.19 on RHEL 9 and has a high CVSS score of 8.2. Red Hat has issued an official security advisory with a patch to address this vulnerability.

CVSS v3.1

Score 8.2high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Affected software

redhat/satellite
pkg:rpm/redhat/satellite
Affected versions
>=6.19 <6.19.5

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/01/2026, 19:29:36 UTC

Technical Analysis

CVE-2026-12540 is a command injection vulnerability in Foreman's foreman-rake errors:fetch_log task. The request_id parameter is used in an underlying system command (commonly grep) without proper shell neutralization, enabling an attacker with sudo privileges to inject shell metacharacters such as ;, ", or | to break out of the intended command context and execute arbitrary code. This vulnerability is part of a set of command injection and other security issues fixed in Red Hat Satellite 6.19.5 for RHEL 9. The vulnerability has a CVSS v3.1 base score of 8.2, indicating high severity with impacts on confidentiality, integrity, and availability.

Potential Impact

An attacker with sudo permissions to execute the foreman-rake errors:fetch_log task can exploit this vulnerability to execute arbitrary code on the system. This can lead to full system compromise, including unauthorized access, data modification, and service disruption. The vulnerability affects Red Hat Satellite 6.19 on RHEL 9, which is used for system provisioning and configuration management.

Mitigation Recommendations

Red Hat has released an official security update (RHSA-2026:74503) that patches this vulnerability in Red Hat Satellite 6.19 for RHEL 9. Users should apply this update promptly to remediate the issue. Prior to applying the update, ensure all previously released errata relevant to the system have been applied. No additional mitigation steps are required beyond applying the official patch.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-c5q9-9fc7-jgxp
Osv Schema Version
1.4.0
Aliases
["CVE-2026-12540"]
Database Specific Severity
HIGH
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6abeb3e4a43b0b3b89ed14e0

Added to database: 10/01/2026, 19:26:28 UTC

Last enriched: 10/01/2026, 19:29:36 UTC

Last updated: 10/02/2026, 02:45:56 UTC

Views: 9

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses