CVE Catalog

CVE-2026-12541

HighCVSS 8.2
Published: Translated: NVD NIST

Summary

OS command injection vulnerabilities exist in Foreman's foreman-rake db:dump and db:import_dump tasks. The application fails to properly sanitize the destination parameter (during backups) and the file parameter (during imports) before passing them to a Ruby system() call.

Risk Assessment

An attacker with permissions to execute foreman-rake (e.g., via a restricted sudo configuration) can append malicious shell commands to file paths, leading to arbitrary code execution.

Recommendation

Update Foreman to a patched version and review and restrict sudo permissions for foreman-rake tasks.

Other vulnerabilities in Foreman

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS