exploit for CVE-2026-42945
Vulnerability
CVE-2026-42945
NGINX ngx_http_rewrite_module vulnerability
Vulnerability details
- Score
- 9.2
- Severity
- critical
CVSS 4.0 · f5
Vector string
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NDescription
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.
CVE ProgramExploit source choices
32 sourcesnginx CVE scanner + RCE exploit framework (CVE-2026-42945 + 16 others)
Nginx Rewrite CVE Scan(CVE-2026-42945 nginx-rift CVE-2026-9256)
NGINX Rift 漏洞分析与复现
Script Python para detecção de instâncias Nginx vulneráveis ao CVE-2026-42945 em IPs, CIDRs e ASNs.
p3nt3st3r-star/cve-2026-42945-poc source repository
CVE-2026-42945 NGINX 堆溢出漏洞扫描与验证工具
CVE-2026-42945 - NGINX Rift Toolkit
Behavioral detection script for CVE-2026-42945 (NGINX Rift) — heap overflow in ngx_http_rewrite_module. No RCE, crash-based detection only.
CVE-2026-42945 nginx 32-bit exploit lab ASLR enabled
nanwinata/nginxrift-cve-2026-42945 source repository
CVE-2026-42945
🛡️ Script to test for NGINX CVE-2026-42945
A flaw was found in NGINX, specifically within the ngx_http_rewrite_module. An unauthenticated attacker can exploit this vulnerability by sending crafted HTTP requests under specific rewrite configurations. This can lead to a heap buffer overflow in the NGINX worker process, which may result in arbitrary code execution
CVE-2026-42945: nginx-rift vulnerability analysis and detection script
PoC for CVE-2026-42945 (nginx Rift) — heap buffer overflow in ngx_http_rewrite_module. Includes detect/probe/exploit modes, dual-fixture Docker lab, empirical address discovery, OOB-verified offset sweep. Original disclosure by depthfirst.
forxiucn/nginx-cve-2026-42945-poc source repository
Repository for studying the CVE-2026-42945 vulnerability in nginx < 1.30
kentox493/cve-2026-42945_nginxrift source repository
CVE-2026-42945 Nginx Rift
Scan your NGINX configuration to determine whether it is affected by CVE-2026-42945.
redcrazyghost/cve-2026-42945 source repository
renison-gohel/cve-2026-42945-nginx-rift source repository
Trigger-aware web server CVE audit for nginx and Apache. Goes beyond version matching by checking whether the vulnerable code path is actually reachable in your configuration. Classifies findings as Active / Latent / Unverified. Single-file Python 3.5+, no dependencies.
Detect-only scanner for CVE-2026-42945 (NGINX Rift), a heap overflow in ngx_http_rewrite_module. Version detection + nginx.conf pattern analysis. Python 3 stdlib-only, no network calls.
Source-built nginx 1.25.5 container with backported CVE-2026-42945 fix, OpenSSL bump, full provenance chain, and VEX attestation.
PoC and verification material for CVE-2026-42945 (CWE-122 heap overflow in ngx_http_rewrite_module -> attacker-shaped cleanup hijack -> system() RCE in the ASLR-off worker; patched-twin negative + 5/5 reliability captured in the shipped lab)
byezero/nginx-cve-2026-42945-check source repository
chamsbouzaiene/ai-vuln-rediscovery-nginx-cve-2026-42945 source repository
Interactive NGINX CVE-2026-42945 educational simulation built with HTML, CSS, and JavaScript. Features vulnerable and patched modes, synthetic request inspection, memory visualization, event logging, and security recommendations. No real exploit execution.
NGINX Rift: ngx_http_rewrite_module heap buffer overflow (nginx 0.6.27-1.30.0)
Detects the CVE-2026-42945 rewrite pattern in nginx configs: rewrite with ? in the replacement plus an unnamed capture consumed in the same location