CVE-2024-7700 Foreman: command injection in "host init config" template via "install packages" field on foreman
Attackers with privileges can inject commands into host registration scripts, leading to unauthorized code execution when users run the generated configuration.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-7700?
CVE-2024-7700 is a medium-severity command injection vulnerability in Theforeman Foreman, published on 12 Aug 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
A command injection flaw was found in the "Host Init Config" template in the Foreman application via the "Install Packages" field on the "Register Host" page. This flaw allows an attacker with the necessary privileges to inject arbitrary commands into the configuration, potentially allowing unauthorized command execution during host registration. Although this issue requires user interaction to execute injected commands, it poses a significant risk if an unsuspecting user runs the generated registration script.
Weakness: CWE-77
Which versions are affected by CVE-2024-7700?
It affects 1 product.
Products include Theforeman Foreman.
How do I fix CVE-2024-7700?
No fix has been published for CVE-2024-7700 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-7700 being exploited?
There is no known exploitation of CVE-2024-7700 in the wild and no public exploit code.
Other vulnerabilities in Theforeman Foreman
Sources
Also known as GHSA-vgwc-ppmj-vcrg.