CVE-2026-12542 Foreman: command injection in foreman-tail

Medium 5.3 Published Updated

A local attacker can execute arbitrary system commands via OS command injection in the foreman-tail utility due to unsafe eval usage.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-12542?

CVE-2026-12542 is a medium-severity command injection vulnerability in Redhat Satellite, published on 1 Oct 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-78

Which versions are affected by CVE-2026-12542?

It affects 2 products.

Products include Redhat Satellite, Theforeman Foreman.

How do I fix CVE-2026-12542?

Apply the vendor's patch.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-12542 being exploited?

There is no known exploitation of CVE-2026-12542 in the wild and no public exploit code.

All Redhat Satellite vulnerabilities

Sources

Also known as GHSA-79jg-9wx4-f5rr.

Is CVE-2026-12542 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free