CVE-2026-42945

HIGH EXPLOITED LAB

NGINX Plus and NGINX Open Source - Heap-based Buffer Overflow in ngx_http_rewrite_module

Title source: llm
STIX 2.1

Exploitation Summary

CVE-2026-42945 has been observed exploited in the wild (reported by VulnCheck KEV). EIP tracks 35 public exploits from researchers including DepthFirstDisclosures, friparia, Unclecheng-li.

AI-analyzed exploit summary This repository contains a functional exploit for CVE-2026-42945, a heap buffer overflow in NGINX's `ngx_http_rewrite_module` that allows unauthenticated remote code execution. The exploit leverages heap feng shui to corrupt adjacent memory structures and achieve arbitrary command execution.

Description

NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_rewrite_module module. This vulnerability exists when the rewrite directive is followed by a rewrite, if, or set directive and an unnamed Perl-Compatible Regular Expression (PCRE) capture (for example, $1, $2) with a replacement string that includes a question mark (?). An unauthenticated attacker along with conditions beyond its control can exploit this vulnerability by sending crafted HTTP requests. This may cause a heap buffer overflow in the NGINX worker process leading to a restart. Additionally, attackers can execute code on systems with Address Space Layout Randomization (ASLR) disabled or when the attacker can bypass ASLR.  Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.

Exploits (35)

nomisec WORKING POC 8 stars
by DepthFirstDisclosures · dos
https://github.com/DepthFirstDisclosures/Nginx-Rift

This repository contains a functional exploit for CVE-2026-42945, a heap buffer overflow in NGINX's `ngx_http_rewrite_module` that allows unauthenticated remote code execution. The exploit leverages heap feng shui to corrupt adjacent memory structures and achieve arbitrary command execution.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: NGINX Open Source 0.6.27 – 1.30.0, NGINX Plus R32 – R36
No auth needed
Prerequisites: NGINX server with `rewrite` and `set` directives enabled · Ability to send crafted HTTP requests to the target server
devstral-2 · analyzed May 14, 2026 Full analysis →
nomisec SCANNER 5 stars
by friparia · poc
https://github.com/friparia/NGINX_RIFT_SCAN_CVE_2026_42945

This repository contains a Python-based scanner that detects the presence of vulnerable NGINX configuration patterns associated with CVE-2026-42945 (NGINX Rift). It identifies high-risk sequences involving `rewrite` directives with `?` followed by references to unnamed PCRE captures like `$1` or `$2`.

Classification
Scanner 100%
Attack Type
Other
Complexity
Moderate
Reliability
Reliable
Target: NGINX Open Source 0.6.27 through 1.30.0, NGINX Plus R32 through R36
No auth needed
Prerequisites: Access to NGINX configuration files or ability to run `nginx -T`
devstral-2 · analyzed May 14, 2026 Full analysis →
github WORKING POC 2 stars
by Unclecheng-li · cpoc
https://github.com/Unclecheng-li/poc-lab/tree/main/CVE-2026-42945 NGINX Rift

This repository contains a functional exploit for CVE-2026-42945, a heap buffer overflow in NGINX's rewrite module. The exploit leverages a vulnerability where rewrite and set directives cause a length mismatch during URI processing, leading to remote code execution (RCE) under specific conditions.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: NGINX Open Source 0.6.27 to 1.30.0
No auth needed
Prerequisites: Target NGINX configuration with specific rewrite and set directives · ASLR disabled or bypassed
devstral-2 · analyzed May 21, 2026 Full analysis →
github SCANNER 1 stars
by hnytgl · pythonpoc
https://github.com/hnytgl/cve-2026-42945

This repository contains a static analysis tool for detecting NGINX configurations vulnerable to CVE-2026-42945, a heap buffer overflow in the `ngx_http_rewrite_module`. It scans NGINX configuration files for high-risk rewrite patterns but does not exploit the vulnerability.

Classification
Scanner 95%
Attack Type
Other
Complexity
Moderate
Reliability
Reliable
Target: NGINX Open Source and NGINX Plus with vulnerable `ngx_http_rewrite_module` configurations
No auth needed
Prerequisites: Access to NGINX configuration files or directories
devstral-2 · analyzed May 18, 2026 Full analysis →
nomisec SCANNER 1 stars
by iammerrida-source · poc
https://github.com/iammerrida-source/nginx-rift-detect

This repository contains a Python-based detection script for CVE-2026-42945, a heap buffer overflow in NGINX's rewrite module. The script checks for vulnerability by triggering a worker crash and does not attempt RCE.

Classification
Scanner 100%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: NGINX (0.6.27 - 1.30.0)
No auth needed
Prerequisites: network access to target NGINX server
devstral-2 · analyzed May 15, 2026 Full analysis →
nomisec WORKING POC 1 stars
by rheodev · dos
https://github.com/rheodev/CVE-2026-42945

This repository contains a functional proof-of-concept for CVE-2026-42945, a heap buffer overflow in NGINX's rewrite module. It includes a detailed analysis, Docker setup for vulnerable NGINX, and a Python script to trigger the DoS condition.

Classification
Working Poc 95%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: NGINX 0.6.27 to 1.30.0
No auth needed
Prerequisites: NGINX with specific rewrite/set configuration · URI with escapable characters
devstral-2 · analyzed May 15, 2026 Full analysis →
github WRITEUP
by webdev75950-ux · poc
https://github.com/webdev75950-ux/nginx-rce-cve-2026-42945

This repository provides a detailed technical analysis of CVE-2026-42945, a heap buffer overflow in NGINX's `ngx_http_rewrite_module` due to unpropagated flags during two-pass script processing. The writeup includes root cause analysis, exploitation mechanics, and mitigation steps, but does not contain functional exploit code.

Classification
Writeup 95%
Attack Type
Rce
Complexity
Complex
Reliability
Theoretical
Target: NGINX Open Source 0.6.27 - 1.30.0, NGINX Plus R32 - R36
No auth needed
Prerequisites: NGINX with vulnerable rewrite module enabled · Ability to send crafted HTTP requests
devstral-2 · analyzed May 23, 2026 Full analysis →
nomisec WORKING POC
by F2u0a0d3 · poc
https://github.com/F2u0a0d3/CVE-2026-42945-nginx-rift-poc

This repository contains a functional exploit for CVE-2026-42945, targeting a heap buffer overflow in NGINX's ngx_http_rewrite_module. The exploit leverages a two-pass script engine bug to achieve remote code execution (RCE) via crafted URI requests and heap spraying techniques.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: NGINX OSS 0.6.27 – 1.30.0, NGINX Plus R32 – R36
No auth needed
Prerequisites: Specific NGINX configuration with vulnerable rewrite rules · Heap and libc base addresses (ASLR bypass required) · URI-safe addresses for heap manipulation
devstral-2 · analyzed May 23, 2026 Full analysis →
github WRITEUP
by dyeat · pythonpoc
https://github.com/dyeat/cve-reproduction/tree/main/NGINX/NGINX/CVE-2026-42945

This repository provides a technical writeup for CVE-2026-42945, a heap-based buffer overflow in NGINX's rewrite module, leading to pre-auth RCE. It includes details on affected versions, CVSS scores, and references an external PoC source.

Classification
Writeup 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Theoretical
Target: NGINX Open Source (0.6.27 to 1.30.0), NGINX Plus (R32 to R36)
No auth needed
Prerequisites: NGINX server with rewrite and set directives configured
devstral-2 · analyzed May 22, 2026 Full analysis →
github WORKING POC
by XZ1r0 · pythonpoc
https://github.com/XZ1r0/cve-2026-poc-collection/tree/main/other/CVE-2026-42945-POC

This repository contains functional exploit code for CVE-2026-42945, a heap buffer overflow in NGINX's rewrite module. It includes both a reconnaissance helper and a standalone exploit capable of command execution and reverse shell establishment.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: NGINX (0.6.27 - 1.30.0, NGINX Plus R32 - R36)
No auth needed
Prerequisites: Vulnerable NGINX version · Accessible /api/ endpoint with specific rewrite configuration
devstral-2 · analyzed May 21, 2026 Full analysis →
github WRITEUP
by yusufdalbudak · shellpoc
https://github.com/yusufdalbudak/CVE-2026-42945

This repository provides a defensive lab environment for analyzing CVE-2026-42945, focusing on NGINX rewrite configuration risks. It includes scripts for evidence collection, configuration analysis, and benign testing, along with detailed documentation for defensive practices.

Classification
Writeup 95%
Attack Type
Other
Complexity
Moderate
Reliability
Theoretical
Target: NGINX 1.30.0 (vulnerable) and 1.30.1 (patched)
No auth needed
Prerequisites: Docker · Docker Compose · Bash · Python
devstral-2 · analyzed May 20, 2026 Full analysis →
github WORKING POC
by gagaltotal · pythonpoc
https://github.com/gagaltotal/CVE-2026-42945-NGINX-Rift-Toolkit

This repository contains a functional exploit for CVE-2026-42945, targeting an NGINX vulnerability with ASLR disabled via heap spray technique. The exploit includes a reverse shell payload and detailed exploitation logic.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: NGINX (version not specified)
No auth needed
Prerequisites: ASLR disabled · target running vulnerable NGINX version
devstral-2 · analyzed May 20, 2026 Full analysis →
nomisec WRITEUP
by fkj-src · poc
https://github.com/fkj-src/fix_nginx_cve_2026_42945

This repository provides a detailed technical analysis and automated remediation script for CVE-2026-42945, an NGINX vulnerability involving memory corruption due to inconsistent request content length calculations in rewrite rules. The script automates detection, backup, upgrade, and rollback processes for affected systems.

Classification
Writeup 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: NGINX versions below 1.30.1/1.31.0
No auth needed
Prerequisites: NGINX installation · supported Linux distribution (Ubuntu/Debian/CentOS/RHEL/Fedora)
devstral-2 · analyzed May 19, 2026 Full analysis →
github STUB
by gagaltotal · poc
https://github.com/gagaltotal/CVE-2026-42945-NGINX-Rift-Scanner

The repository contains only a minimal README with no technical details, exploit code, or meaningful content related to CVE-2026-42945. It appears to be a placeholder or stub.

Classification
Stub 90%
Attack Type
Other
Complexity
Trivial
Reliability
Theoretical
Target: NGINX (version unspecified)
No auth needed
Prerequisites: none
devstral-2 · analyzed May 19, 2026 Full analysis →
nomisec WRITEUP
by BarAppTeam · poc
https://github.com/BarAppTeam/nginx-cve-fix

This repository provides a detailed technical analysis and remediation for CVE-2026-42945, including a backported patch, regression tests, and VEX documentation for an nginx vulnerability. It demonstrates the vulnerability through a regression test and includes build scripts for a patched nginx image.

Classification
Writeup 95%
Attack Type
Other
Complexity
Moderate
Reliability
Reliable
Target: nginx 1.25.5 with ngx_http_rewrite_module
No auth needed
Prerequisites: nginx 1.25.5 with vulnerable ngx_http_rewrite_module · Docker for building the patched image
devstral-2 · analyzed May 19, 2026 Full analysis →
nomisec WORKING POC
by RedCrazyGhost · poc
https://github.com/RedCrazyGhost/CVE-2026-42945

This repository contains a functional Go-based exploit for CVE-2026-42945, targeting nginx HTTP/2 vulnerabilities. It includes multiple modes for detection, worker crash probing, command execution, and reverse shell capabilities, with detailed usage instructions and a Docker-based testing environment.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: nginx (versions 0.6.27 – 1.30.0)
No auth needed
Prerequisites: target must expose specific endpoints (e.g., GET /api/, POST /spray) · plain HTTP access (no HTTPS/TLS support) · Docker for local lab testing
devstral-2 · analyzed May 19, 2026 Full analysis →
github WORKING POC
by imSre9 · pythonpoc
https://github.com/imSre9/CVE-2026-42945

This repository contains a functional Python-based PoC for CVE-2026-42945, a heap buffer overflow in NGINX triggered by URI encoding/decoding mismatches. The exploit demonstrates DoS by sending crafted HTTP requests with '%25' characters to exploit a vulnerability in NGINX's rewrite and set directives.

Classification
Working Poc 95%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: NGINX (specific version not specified)
No auth needed
Prerequisites: NGINX configured with rewrite and set directives · URI path matching specific regex patterns
devstral-2 · analyzed May 19, 2026 Full analysis →
github WORKING POC
by Renison-Gohel · pythonpoc
https://github.com/Renison-Gohel/CVE-2026-42945-NGINX-Rift

This repository contains a functional exploit for CVE-2026-42945, targeting an NGINX vulnerability (referred to as 'Rift'). The exploit leverages heap spraying and memory corruption to achieve remote code execution (RCE) by manipulating heap structures and triggering a system() call with attacker-controlled arguments.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Racy
Target: NGINX (specific version not specified, but likely a vulnerable build from 2026)
No auth needed
Prerequisites: ASLR disabled · specific NGINX configuration with vulnerable endpoint (/spray) · network access to target port (default: 19321)
devstral-2 · analyzed May 18, 2026 Full analysis →
github SCANNER
by tal7aouy · pythonpoc
https://github.com/tal7aouy/nginx-cve-2026-42945

This repository provides a defensive scanner for CVE-2026-42945 (NGINX Rift), a heap buffer overflow in the `ngx_http_rewrite_module`. The scanner checks NGINX versions, configuration patterns, and ASLR status without sending exploit payloads.

Classification
Scanner 100%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: NGINX Open Source 0.6.27 through 1.30.0, NGINX Plus
No auth needed
Prerequisites: NGINX with vulnerable version · Specific rewrite configuration using unnamed PCRE captures and '?' in replacement strings
devstral-2 · analyzed May 17, 2026 Full analysis →
nomisec WORKING POC
by MateusVerass · poc
https://github.com/MateusVerass/nGixshell

The repository contains a functional exploit framework for CVE-2026-42945, a critical heap buffer overflow in nginx's `ngx_http_rewrite_module`, enabling RCE. It includes a scanner for 53 nginx CVEs, automated fingerprinting, WAF bypass techniques, and a Docker-based vulnerable lab for testing.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: nginx (specific versions affected by CVE-2026-42945)
No auth needed
Prerequisites: Target running vulnerable nginx version · Network access to the target
devstral-2 · analyzed May 17, 2026 Full analysis →
nomisec SCANNER
by sibersan · poc
https://github.com/sibersan/web-server-audit_CVE-2026-42945

This repository contains a Python-based tool that audits nginx and Apache configurations for known CVEs, including CVE-2026-42945, by checking both version ranges and configuration patterns. It does not include exploit code but provides detailed detection logic for vulnerabilities.

Classification
Scanner 100%
Attack Type
Other
Complexity
Moderate
Reliability
Reliable
Target: nginx, Apache
No auth needed
Prerequisites: Access to the target system's configuration files and version information
devstral-2 · analyzed May 16, 2026 Full analysis →
nomisec WORKING POC
by dinosn · poc
https://github.com/dinosn/cve-2026-42945-nginx32-lab

This repository contains a functional exploit for CVE-2026-42945, targeting nginx 1.30.0 (32-bit). It includes a Docker-based lab environment, a heap out-of-bounds (OOB) write trigger, and two RCE exploitation paths: a lab-assisted known-address validator and a remote brute-force driver.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: nginx 1.30.0 (32-bit)
No auth needed
Prerequisites: Docker with Compose support · Linux/386 container support · Python 3 on the host
devstral-2 · analyzed May 16, 2026 Full analysis →
nomisec SCANNER
by byezero · poc
https://github.com/byezero/nginx-cve-2026-42945-check

This repository provides local scripts to detect Nginx, OpenResty, or Tengine instances potentially vulnerable to CVE-2026-42945, a heap-based buffer overflow in the `ngx_http_rewrite_module`. The scripts scan for risky `rewrite` patterns but do not exploit the vulnerability.

Classification
Scanner 100%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: Nginx (0.6.27-1.30.0), OpenResty, Tengine
No auth needed
Prerequisites: Local access to the target system · Administrative privileges for full configuration dump
devstral-2 · analyzed May 16, 2026 Full analysis →
nomisec WRITEUP
by soksofos · poc
https://github.com/soksofos/wazuh-nginx-cve-2026-42945-sca-lab

This repository provides a detailed defensive lab for CVE-2026-42945, focusing on using Wazuh SCA to detect vulnerable NGINX configurations and unpatched versions. It includes technical analysis, remediation steps, and SCA policy deployment without containing exploit code.

Classification
Writeup 100%
Attack Type
Other
Complexity
Moderate
Reliability
Reliable
Target: NGINX ngx_http_rewrite_module
No auth needed
Prerequisites: Wazuh Manager · Wazuh Agent · NGINX server
devstral-2 · analyzed May 15, 2026 Full analysis →
nomisec WORKING POC
by jelasin · remote
https://github.com/jelasin/CVE-2026-42945

This repository contains a functional exploit for CVE-2026-42945, a heap buffer overflow in NGINX's `ngx_http_rewrite_module` that allows unauthenticated remote code execution. The exploit leverages heap feng shui to corrupt adjacent memory structures and achieve RCE via a crafted HTTP request.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: NGINX Open Source 0.6.27–1.30.0, NGINX Plus R32–R36
No auth needed
Prerequisites: NGINX server with `rewrite` and `set` directives enabled · ASLR disabled or predictable memory layout
devstral-2 · analyzed May 15, 2026 Full analysis →
nomisec SCANNER
by chenqin231 · poc
https://github.com/chenqin231/CVE-2026-42945

This repository provides a risk assessment script for CVE-2026-42945, a heap buffer overflow vulnerability in nginx's ngx_http_rewrite_module. The script checks for vulnerable versions, triggering configurations, ASLR status, and compilation hardening to determine the actual risk level.

Classification
Scanner 100%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: nginx versions 0.6.27 to 1.30.0
No auth needed
Prerequisites: nginx installed · specific rewrite and set configurations in nginx
devstral-2 · analyzed May 15, 2026 Full analysis →
nomisec WORKING POC
by forxiucn · poc
https://github.com/forxiucn/nginx-cve-2026-42945-poc

This repository contains a functional exploit for CVE-2026-42945, a heap buffer overflow in the NGINX rewrite module leading to RCE. It includes detailed technical analysis, PoC scripts, and Docker environments for testing against NGINX and OpenResty.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: NGINX 0.6.27 ~ 1.30.1, NGINX Plus R32 ~ R36, OpenResty
No auth needed
Prerequisites: ptrace permissions (root) · specific NGINX configuration with rewrite and set directives
devstral-2 · analyzed May 15, 2026 Full analysis →
nomisec SCANNER
by oseasfr · poc
https://github.com/oseasfr/Scanner_CVE_2026-42945

This repository contains a Python-based scanner for detecting Nginx instances vulnerable to CVE-2026-42945 by checking the 'Server' header in HTTP/HTTPS responses. It supports IP, CIDR, and ASN inputs, with multi-threaded scanning and DNS resolution.

Classification
Scanner 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: Nginx versions prior to 1.30.1
No auth needed
Prerequisites: Network access to target Nginx servers · Python environment with required dependencies
devstral-2 · analyzed May 15, 2026 Full analysis →
nomisec SCANNER
by oseasfr · poc
https://github.com/oseasfr/CVE_2026-42945

This repository contains a Python-based scanner for detecting Nginx instances vulnerable to CVE-2026-42945 by checking the 'Server' header in HTTP/HTTPS responses. It supports IP, CIDR, and ASN inputs, with multi-threaded scanning and DNS resolution.

Classification
Scanner 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: Nginx versions prior to 1.30.1
No auth needed
Prerequisites: Network access to target Nginx servers · Python environment with required dependencies
devstral-2 · analyzed May 15, 2026 Full analysis →
nomisec WORKING POC
by ChamsBouzaiene · remote
https://github.com/ChamsBouzaiene/ai-vuln-rediscovery-nginx-cve-2026-42945

This repository contains a functional PoC for CVE-2026-42945, a heap buffer overflow in nginx's `ngx_http_rewrite_module` due to stale script-engine state. The PoC includes a reproduction script and trigger payload that demonstrates the vulnerability in a local ASan-enabled nginx build.

Classification
Working Poc 95%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: nginx 1.30.0
No auth needed
Prerequisites: nginx 1.30.0 source code · clang with AddressSanitizer · local build environment
devstral-2 · analyzed May 15, 2026 Full analysis →
nomisec WORKING POC
by 0xBlackash · remote
https://github.com/0xBlackash/CVE-2026-42945

This repository contains a functional exploit for CVE-2026-42945, a heap buffer overflow in NGINX's `ngx_http_rewrite_module` that allows unauthenticated remote code execution. The exploit leverages heap feng shui to corrupt adjacent memory structures and achieve arbitrary command execution.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: NGINX Open Source 0.6.27 – 1.30.0, NGINX Plus R32 – R36
No auth needed
Prerequisites: NGINX server with `rewrite` and `set` directives enabled · Ability to send crafted HTTP requests to the target server
devstral-2 · analyzed May 15, 2026 Full analysis →
nomisec WORKING POC
by nanwinata · poc
https://github.com/nanwinata/nginxrift-CVE-2026-42945

This repository contains a functional exploit PoC for CVE-2026-42945, a heap-based buffer overflow in NGINX's ngx_http_rewrite_module. The exploit supports multiple methods (RCE, DoS, file write) and includes detailed technical explanations of the vulnerability and exploitation process.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Racy
Target: NGINX 0.6.27 through 1.30.0
No auth needed
Prerequisites: Python 3.x · network access to target · ASLR may reduce reliability
devstral-2 · analyzed May 14, 2026 Full analysis →
nomisec SCANNER
by realityone · poc
https://github.com/realityone/cve-2026-42945-scan

This repository contains a static scanner for NGINX configuration files that detects the rewrite/set pattern associated with CVE-2026-42945. It includes both Python and Go implementations that parse NGINX configs and identify vulnerable location blocks.

Classification
Scanner 100%
Attack Type
Other
Complexity
Moderate
Reliability
Reliable
Target: NGINX
No auth needed
Prerequisites: Access to NGINX configuration files
devstral-2 · analyzed May 14, 2026 Full analysis →
nomisec WORKING POC
by cipherspy · remote
https://github.com/cipherspy/CVE-2026-42945-POC

This repository contains a functional exploit for CVE-2026-42945, a heap buffer overflow in NGINX's rewrite module. The exploit includes scripts for reconnaissance, command execution, and reverse shell establishment, targeting vulnerable NGINX versions.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: NGINX (0.6.27 - 1.30.0, NGINX Plus R32 - R36)
No auth needed
Prerequisites: Vulnerable NGINX version · Access to target endpoint
devstral-2 · analyzed May 14, 2026 Full analysis →
nomisec WORKING POC
by p3Nt3st3r-sTAr · poc
https://github.com/p3Nt3st3r-sTAr/CVE-2026-42945-POC

This repository contains a functional exploit for CVE-2026-42945, a heap buffer overflow in NGINX's `ngx_http_rewrite_module` that allows unauthenticated remote code execution. The exploit leverages heap feng shui to corrupt adjacent memory structures and achieve arbitrary command execution.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: NGINX Open Source 0.6.27 – 1.30.0, NGINX Plus R32 – R36
No auth needed
Prerequisites: NGINX server with vulnerable version · Access to the target server's HTTP port
devstral-2 · analyzed May 14, 2026 Full analysis →

References (3)

Core 3
Core References
Vendor Advisory vendor-advisory patch
https://my.f5.com/manage/s/article/K000161019

Scores

CVSS v3 8.1
EPSS 0.0086
EPSS Percentile 75.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Lab Environment

COMMUNITY SUSPICIOUS
Community Lab
docker pull cve-2026-42945-nginx32-lab:latest
docker pull nginx-rift:1.30.0
docker pull nginx-rift:1.30.1
+32 more repos

Details

VulnCheck KEV 2026-05-16
CWE
CWE-122
Status published
Products (5)
F5/NGINX Open Source 0.6.27 - 1.30.1
F5/NGINX Open Source 1.31.0
F5/NGINX Plus R32 - R32 P6
F5/NGINX Plus R36 - R36 P4
F5/NGINX Plus R37
Published May 13, 2026
Tracked Since May 13, 2026