p PatchFirst

CVE-2026-12540

CVE-2026-12540 · Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter

CVSS 8.2 · High · EPSS 1.7%

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • RHSA-2026:74505 · Red Hat satellite 6.17 el9, Red Hat satellite capsule 6.17 el9, Red Hat satellite utils 6.17 el9 ·
  • RHSA-2026:74506 · Red Hat satellite 6.16 el8, Red Hat satellite 6.16 el9, Red Hat satellite capsule 6.16 el8, Red Hat satellite capsule 6.16 el9, Red Hat satellite utils 6.16 el8, Red Hat satellite utils 6.16 el9 ·
  • RHSA-2026:74503 · Red Hat satellite 6.19 el9, Red Hat satellite capsule 6.19 el9, Red Hat satellite utils 6.19 el9 ·
  • RHSA-2026:74504 · Red Hat satellite 6.18 el9, Red Hat satellite capsule 6.18 el9, Red Hat satellite utils 6.18 el9 ·

Affected products and versions

Original sources

Check your server →