Skip to main content
Vulnerability Database/CVE-2026-104584

CVE-2026-104584: reNgine OS Command Injection Vulnerability

CVE-2026-104584 is an OS command injection vulnerability in reNgine that allows attackers to execute arbitrary system commands through the custom_headers scan engine field. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-104584 Overview

CVE-2026-104584 is an OS Command Injection vulnerability in reNgine, an automated reconnaissance framework for web applications. The flaw affects reNgine versions up to and including v2.2.0, as well as the current master branch at commit de4199222cca5618f1255930ce78987e47d43a99. Attackers inject shell commands through the custom_headers field of the scan engine configuration. The vulnerable code resides in the fetch_url and dir_file_fuzz functions within web/reNgine/tasks.py. Successful exploitation grants arbitrary command execution in the context of the reNgine worker process.

Critical Impact

Authenticated users with scan engine configuration access can execute arbitrary operating system commands on the reNgine host.

Affected Products

  • reNgine versions up to and including v2.2.0
  • reNgine master branch at commit de4199222cca5618f1255930ce78987e47d43a99
  • Deployments using the fetch_url and dir_file_fuzz scan engine tasks

Discovery Timeline

  • 2026-10-13 - CVE-2026-104584 published to the National Vulnerability Database (NVD)
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-104584

Vulnerability Analysis

reNgine orchestrates reconnaissance scans by invoking external command-line tools from Python Celery tasks. The fetch_url and dir_file_fuzz functions in web/reNgine/tasks.py build shell command strings that embed scan engine configuration values. The custom_headers field accepts user-controlled HTTP header definitions intended to be passed to downstream tools such as gau, hakrawler, or ffuf. The application concatenates this value directly into a shell command without sanitization or argument isolation.

An attacker who can author or modify a scan engine configuration supplies a custom_headers value containing shell metacharacters. When reNgine launches the scan, the shell interprets those metacharacters, executing attacker-controlled commands alongside the intended binary. The commands run with the privileges of the reNgine worker container, typically providing access to scan results, API keys, and the application database.

Root Cause

The root cause is unsafe construction of shell command lines from untrusted input. The fetch_url and dir_file_fuzz functions use string interpolation to assemble commands and execute them through a shell interpreter. This maps to Improper Neutralization of Special Elements used in an OS Command [CWE-78].

Attack Vector

Exploitation requires access to the scan engine configuration interface. An authenticated attacker creates or edits a scan engine, injecting shell metacharacters such as ;, |, backticks, or $() into the custom_headers field. Triggering a scan that invokes fetch_url or dir_file_fuzz causes the injected payload to execute. Technical details and proof-of-concept artifacts are available at the GitHub PoC Repository, with the upstream project hosted at the reNgine Project.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-104584

Indicators of Compromise

  • Unexpected child processes spawned by reNgine Celery worker containers, especially shells, curl, wget, or nc.
  • Outbound network connections from the reNgine worker to unknown hosts during scan execution.
  • Scan engine configurations containing shell metacharacters (;, |, `, $()) in the custom_headers field.
  • New or modified files in the reNgine container filesystem that do not correspond to scan output directories.

Detection Strategies

  • Inspect audit logs for scan engine configuration changes and flag entries whose custom_headers values contain shell control characters.
  • Monitor process ancestry on the reNgine host for celery or python processes spawning interactive shells or networking utilities.
  • Correlate scan task execution timestamps with anomalous outbound DNS and HTTP traffic from the worker container.

Monitoring Recommendations

  • Enable container runtime telemetry on the reNgine worker and ship events to a centralized SIEM for retention.
  • Alert on execve events in the worker container that invoke /bin/sh -c with argument strings referencing header-related flags.
  • Review Django and Celery logs for task failures or stderr output that indicates shell interpretation of header values.

How to Mitigate CVE-2026-104584

Immediate Actions Required

  • Restrict scan engine configuration privileges to a minimal set of trusted administrators until a patch is applied.
  • Audit all existing scan engine configurations and remove any custom_headers entries containing shell metacharacters.
  • Isolate the reNgine deployment behind network segmentation controls that limit outbound traffic from worker containers.
  • Rotate credentials, API tokens, and secrets accessible to the reNgine worker if exploitation is suspected.

Patch Information

At the time of publication, no vendor patch is referenced in the NVD entry for CVE-2026-104584. Monitor the reNgine Project repository for upcoming releases that address the fetch_url and dir_file_fuzz command construction. Upgrade immediately once a fixed version supersedes v2.2.0.

Workarounds

  • Disable or avoid scan engines that invoke fetch_url or dir_file_fuzz until a fix is available.
  • Apply a local patch that validates custom_headers against an allowlist of RFC 7230 compliant header syntax before task dispatch.
  • Run the reNgine worker container as an unprivileged user with a read-only root filesystem to limit post-exploitation impact.
  • Enforce egress filtering on the worker container to block arbitrary outbound connections initiated by injected commands.
bash
# Configuration example - restrict worker egress and drop metacharacters at the proxy
iptables -I OUTPUT -m owner --uid-owner rengine -p tcp --dport 1:65535 -j REJECT
iptables -I OUTPUT -m owner --uid-owner rengine -p tcp --dport 80  -d trusted.scan.target -j ACCEPT
iptables -I OUTPUT -m owner --uid-owner rengine -p tcp --dport 443 -d trusted.scan.target -j ACCEPT

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.