CVE-2024-7700: Foreman: command injection in "host init config" template via "install packages" field on foreman
Vulnerability summary
CVE-2024-7700 is a medium (CVSS 6.5) Command Injection vulnerability in theforeman foreman. EPSS estimates a 0.78% chance of exploitation in the next 30 days, higher than 55.5% of scored vulnerabilities.
Timeline
- 12-08-2024PublishedVulnerability first disclosed.
- 20-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST6.5MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.78%
Chance of exploitation in the next 30 days
Percentile
56%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.78% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Theforeman1 product
- foremanna
1 vendor · 1 product
References
2 links- access.redhat.com/security/cve/CVE-2024-7700VDB EntryX Refsource REDHATThird Party AdvisoryVendor Advisory