# CVE-2024-7700: Foreman: command injection in "host init config" template via "install packages" field on foreman

- Severity: Medium 6.5 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Published: 2024-08-12T16:48:54.120Z
- Modified: 2026-11-26T20:45:11.376Z
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- foreman: no versions given
- theforeman foreman: no versions given

## Every score

- redhat: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://access.redhat.com/security/cve/CVE-2024-7700> (third-party-advisory, vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2304090> (issue-tracking, third-party-advisory)

## Sources

- CVE List: [CVE-2024-7700](https://www.cve.org/CVERecord?id=CVE-2024-7700), CVE Terms of Use, modified 2026-11-26
- NVD: [CVE-2024-7700](https://nvd.nist.gov/vuln/detail/CVE-2024-7700), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-7700 · Whole record: https://cve.day/CVE-2024-7700.json · Rebuilt by cve.day 2026-11-26T20:57:08.089Z
