How Log4Shell, React2Shell, PHP2Shell and Node2Shell Enable Remote Code Execution

· Original article ↗

Summary

An explainer compares Log4Shell, React2Shell, PHP2Shell and Node2Shell, detailing their code-execution flaws, exposure paths, affected components, fixes and risks from bundled dependencies.

Key points

  • Log4Shell exploited Log4j JNDI lookups, while React2Shell used insecure deserialization of React Flight payloads to reach Node.js functions; neither required attacker authentication.
  • PHP2Shell (CVE-2026-109618 and CVE-2026-109619) involves use-after-free bugs in PHP request handling. The article identifies session upload progress, enabled by default, as one confirmed path.
  • Node2Shell (CVE-2026-111497) is an out-of-bounds write in Brotli. Researchers reported code execution in both client and server directions, but their exploit did not work on every attempt; crashes or memory leaks were described as more likely in practice.
  • Brotli is bundled in multiple runtimes and platforms, and some frameworks decode compressed request bodies automatically, potentially exposing systems through dependencies teams did not select directly.
  • The article lists fixes for PHP, Node.js, Bun, React and other Brotli-using projects, while noting that SUSE and standard Red Hat Enterprise Linux repositories did not yet have a fix at the time of writing.
  • The article says AI-assisted research helped turn a long-standing PHP bug into working code execution and argues that automated analysis may accelerate vulnerability discovery.

Article Details

Vulnerability Types
  • Remote code execution
  • Use-after-free
  • Out-of-bounds write
  • Insecure deserialization
  • JNDI lookup injection
Severity
CVSS 9.2 for PHP2Shell and Node2Shell; CVSS 10.0 for Log4Shell and React2Shell.
Affected Versions
  • Node.js 24.22.0 (researchers achieved code execution)
  • React 19 default setups
Exploitation Status
active
Exploit Availability
unknown
Patch Status
partial
Workarounds
  • Use Aikido’s patched PHP images when an upstream PHP fix is unavailable.
  • Use Aikido’s patched Node.js or Ubuntu images for the Brotli flaw when a vendor fix is unavailable.

MITRE ATT&CK

CVE

People

Products

Related Articles