NGINX CVE-2026-42533: Critical Buffer Overflow Enables RCE

Step by step
How the attack unfolded
Click a phase for details – or let the animation play through.
PHASE 1/5 · Reconnaissance

The attacker scans the internet for vulnerable NGINX servers with an exploitable configuration.

T1595 – Active Scanning T1592 – Gather Victim Host Information
  • Target: NGINX versions 0.9.6 to 1.31.2 (since 2011-03-21)
  • Around 5.7M internet-facing NGINX servers on vulnerable versions
  • Vulnerable only with map directive using regex and capture variables ($1, $2)
  • 31.5% global web server market share (W3Techs, July 2026)
PHASE 2/5 · Initial Access

A single crafted, unauthenticated HTTP request triggers vulnerability CVE-2026-42533.

T1190 – Exploit Public-Facing Application
  • CVE-2026-42533, CVSS 9.2 (critical), heap buffer overflow
  • Fully unauthenticated, no login, purely over the internet
  • Flaw in script engine between LEN and VALUE pass
  • Public PoC since 2026-07-28 (DepthFirstDisclosures)
PHASE 3/5 · Defense Evasion

An information leak exposes internal memory addresses, bypassing the ASLR protection.

T1211 – Exploitation for Defense Evasion
  • Oversized allocated buffer leaks internal pointers
  • ASLR bypass in a single GET request – without disabled ASLR
  • Tested on Ubuntu 24.04 with ASLR enabled
  • Named-capture variable clobbering and cross-directive triggering
PHASE 4/5 · Execution

Chaining the info leak with the heap overflow achieves arbitrary code execution on the server.

T1203 – Exploitation for Client Execution
  • Reliable unauthenticated remote code execution (RCE)
  • Reliability 10 out of 10 per discoverer Stan Shaw
  • PoC achieves command execution via libc system()
  • At least 13 independent call sites across 9 source files affected
PHASE 5/5 · Impact

The server is either crashed or fully taken over by the attacker.

T1499 – Endpoint Denial of Service T1496 – Resource Hijacking
  • Denial-of-service through crashing worker processes
  • Full server takeover in the RCE case
  • Over 5.3M companies use NGINX
  • Only complete fix is upgrading to 1.30.4 / 1.31.3
Short & clear answers
Frequently asked questions about this incident
Am I affected by CVE-2026-42533?
All NGINX versions from 0.9.6 up to and including 1.31.2 are affected. However, only installations that use map directives with regular expressions combined with capture variables like $1 or $2 are directly exploitable. Check your version with nginx -v and scan your configuration using Stan Shaw's free config scanner (github.com/0xCyberstan/CVE-2026-42533-Config-Scanner).
What do I need to do right now to protect myself?
Update NGINX immediately to 1.30.4 (stable) or 1.31.3 (mainline); for NGINX Plus, update to 37.0.3.1 or R36 P7. According to the discoverer, the update is the only complete fix. If you run NGINX through a managed hosting provider, ask them about their patch status.
How dangerous is this vulnerability really?
The vulnerability has a CVSS score of 9.2 out of 10 (critical) and allows an attacker to crash your web server or execute their own malicious code (remote code execution) over the internet without any login. The discoverer demonstrated reliable unauthenticated RCE on Ubuntu 24.04 – even with the ASLR protection mechanism enabled. A full public exploit (PoC) has also been available since July 28, 2026.
What can I do if I can't update immediately?
As a temporary measure, you can replace numbered regex captures ($1, $2) in map directives with named captures ((?P<name>...)) and use them only within the same block. However, according to Stan Shaw, this only closes the main attack path – a narrower attack path remains open. Only the update provides complete protection.
Has this vulnerability already been exploited?
As of the research date (August 2, 2026), there is no confirmed active exploitation in the wild and no entry in the CISA KEV catalog. However, a full proof-of-concept exploit has been publicly available since July 28, 2026, which significantly increases the risk of exploitation. Monitor your NGINX worker processes for unusual restarts and your logs for unusually long URIs or headers.
More security news
You might also be interested in
Critical Elementor Pro Flaw: Attackers Can Fully Take Over WordPress Sites
A file upload bug in Elementor Pro up to 4.2.1 allows RCE without login. Version 4.2.2 fixes the flaw – update now!
Pods Plugin: Critical Flaw Enables Admin Takeover, No Login
A critical flaw in the WordPress plugin Pods lets attackers overwrite admin passwords without login. Over 100,000 sites are affected.
miniOrange SAML SSO: Critical Bypass Turns Attackers Into Admins
Two critical auth bypasses in the miniOrange SAML SSO plugin allow forged SAML assertions—up to full WordPress admin access.