
Proof-of-concept for CVE-2026-104584, an OS command injection in reNgine's custom_headers scan configuration that allows arbitrary command execution as root.
ReNgine is vulnerable to OS Command Injection via the custom_headers scan engine configuration field in web/reNgine/tasks.py (fetch_url and dir_file_fuzz functions). Custom headers are formatted into shell commands via string concatenation without sanitization or character stripping, allowing attackers to escape quotes and execute arbitrary OS commands as root inside the celery worker container.
custom_headers: ['X-Poc: 1" ; touch /tmp/RENGINE_PWNED_POC ; echo "']
When the scan stage triggers, the injected shell metacharacters escape the -H flag quoting and execute arbitrary commands.