← Back to search

CVE-2026-12541

8.2 HIGH

Published 2026-10-01 · Updated 2026-10-07

AI risk analysis

Summary
The flaw allows OS command injection through the foreman-rake db:dump and db:import_dump tasks, enabling attackers to execute arbitrary shell commands with the permissions of the application.
Exploitability
Exploitation requires the ability to execute foreman-rake tasks, which may be possible via restricted sudo configurations. The vulnerability is relatively easy to exploit given the necessary permissions.
Blast radius
If exploited, the impact could be severe, as it allows full control over the system through the execution of arbitrary commands with the application's privileges.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Disable the affected foreman-rake db:dump and db:import_dump tasks until a patch is available, or upgrade to the latest version of Foreman that addresses this issue.
rceos-command-injectionforemanpatch-required

Analysis generated locally by qwen2.5:7b-instruct (no data left the box). AI-assisted — verify against primary sources before acting.

NVD description

A flaw was found in Foreman. OS command injection vulnerabilities exist in the foreman-rake db:dump and db:import_dump tasks. The application fails to properly sanitize user-supplied input in the destination parameter (during backups) and the file parameter (during imports) before passing them to a Ruby system() call for execution. An attacker with permissions to execute foreman-rake (e.g., via a restricted sudo configuration) can append malicious shell commands to the provided file paths.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Weaknesses

CWE-78

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.