Exploit database

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:N

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.

CVE Program

Exploit source choices

32 sources
cipherspy/cve-2026-42945-poc
GH-55dcb3917e47e4a02673ea8ce36e5219GitHubUnofficial GitHub sourcePreferred

exploit for CVE-2026-42945

2026-05-144 files · 66 stars
mateusverass/ngixshell
GH-7291e417b681a39e9817141fd09e25d4GitHubUnofficial GitHub source

nginx CVE scanner + RCE exploit framework (CVE-2026-42945 + 16 others)

2026-05-1613 files · 37 stars
friparia/nginx_rift_scan_cve_2026_42945
GH-813443b9e927ab949591c44334c5a535GitHubUnofficial GitHub source

Nginx Rewrite CVE Scan(CVE-2026-42945 nginx-rift CVE-2026-9256)

2026-05-144 files · 34 stars
rheodev/cve-2026-42945
GH-87edd9c1466c8562ee679d93792f49beGitHubUnofficial GitHub source

NGINX Rift 漏洞分析与复现

2026-05-147 files · 24 stars
oseasfr/scanner_cve_2026-42945
GH-5d141710f0cafb8fbaf3a9dea9958618GitHubUnofficial GitHub source

Script Python para detecção de instâncias Nginx vulneráveis ao CVE-2026-42945 em IPs, CIDRs e ASNs.

2026-05-152 files · 18 stars
p3nt3st3r-star/cve-2026-42945-poc
GH-0e4073bd7ab4ec446fc5513028f52f3eGitHubUnofficial GitHub source

p3nt3st3r-star/cve-2026-42945-poc source repository

2026-05-148 files · 15 stars
nu0l/nginx-rift
GH-a221c1f407112912e4a16d6a74e53647GitHubUnofficial GitHub source

CVE-2026-42945 NGINX 堆溢出漏洞扫描与验证工具

2026-05-255 files · 5 stars
iammerrida-source/nginx-rift-detect
GH-b6c61ea5832edec44dd4fc297df0483dGitHubUnofficial GitHub source

Behavioral detection script for CVE-2026-42945 (NGINX Rift) — heap overflow in ngx_http_rewrite_module. No RCE, crash-based detection only.

2026-05-154 files · 4 stars
dinosn/cve-2026-42945-nginx32-lab
GH-7813be50c7420944eb23f778bb11f187GitHubUnofficial GitHub source

CVE-2026-42945 nginx 32-bit exploit lab ASLR enabled

2026-05-1616 files · 3 stars
nanwinata/nginxrift-cve-2026-42945
GH-d598870770ce754ef7ec6a4a116bd23bGitHubUnofficial GitHub source

nanwinata/nginxrift-cve-2026-42945 source repository

2026-05-142 files · 3 stars
tal7aouy/nginx-cve-2026-42945
GH-cdbe0b16ea366e886c1ac5800699fc67GitHubUnofficial GitHub source

🛡️ Script to test for NGINX CVE-2026-42945

2026-05-174 files · 2 stars
aratane/cve-2026-42945
GH-729beb12ecf2e4907f35a89510a09097GitHubUnofficial GitHub source

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

2026-07-012 files · 1 stars
chenqin231/cve-2026-42945
GH-aae410f8adb7bc4467a6675fbc1c28dcGitHubUnofficial GitHub source

CVE-2026-42945: nginx-rift vulnerability analysis and detection script

2026-05-152 files · 1 stars
f2u0a0d3/cve-2026-42945-nginx-rift-poc
GH-98eebeae074b77aa10b2f194ffa9b63cGitHubUnofficial GitHub source

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.

2026-05-2219 files · 1 stars
forxiucn/nginx-cve-2026-42945-poc
GH-b6dd3288ac75829caf44c376b6a83fb5GitHubUnofficial GitHub source

forxiucn/nginx-cve-2026-42945-poc source repository

2026-05-15674 files · 1 stars
josephfelix/cve-2026-42945-nginx-rift
GH-3fd3978895ab3d02e200dbf721f6c9c6GitHubUnofficial GitHub source

Repository for studying the CVE-2026-42945 vulnerability in nginx < 1.30

2026-05-2516 files · 1 stars
kentox493/cve-2026-42945_nginxrift
GH-8e402a94e6f94d082c194803e1461941GitHubUnofficial GitHub source

kentox493/cve-2026-42945_nginxrift source repository

2026-08-143 files · 1 stars
liaoziqi-gzfls/cve-2026-42945
GH-c394ecf8c7f1e415d52448506a0d0e87GitHubUnofficial GitHub source

CVE-2026-42945 Nginx Rift

2026-06-1014 files · 1 stars
realityone/cve-2026-42945-scan
GH-864acc9b2fe9928f36b2141549418ef5GitHubUnofficial GitHub source

Scan your NGINX configuration to determine whether it is affected by CVE-2026-42945.

2026-05-1416 files · 1 stars
redcrazyghost/cve-2026-42945
GH-b684d180dd94bbc7b641ec4c4831ec85GitHubUnofficial GitHub source

redcrazyghost/cve-2026-42945 source repository

2026-05-1927 files · 1 stars
sibersan/web-server-audit_cve-2026-42945
GH-dbd4e02fe13b010eabab45de7184be25GitHubUnofficial GitHub source

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.

2026-05-163 files · 1 stars
simota/nginx-rift-scanner
GH-40581283c9cb9d65f51a723d2b59134cGitHubUnofficial GitHub source

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.

2026-06-0410 files · 1 stars
barappteam/nginx-cve-fix
GH-7260e7f3caa3f4ef476da07fc47e446aGitHubUnofficial GitHub source

Source-built nginx 1.25.5 container with backported CVE-2026-42945 fix, OpenSSL bump, full provenance chain, and VEX attestation.

2026-05-1619 files · 0 stars
basesixtythree/b63-poc-cve-2026-42945
GH-9add6b95aba314b57bab1df3d737d960GitHubUnofficial GitHub source

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)

2026-11-0223 files · 0 stars
byezero/nginx-cve-2026-42945-check
GH-092ccb44a73372f06245bf7ba035249aGitHubUnofficial GitHub source

byezero/nginx-cve-2026-42945-check source repository

2026-05-154 files · 0 stars
chaskarvinit/nginx-rift-cve-2026-42945-lab
GH-cab239a0314a687f645a02ef55e2a81aGitHubUnofficial GitHub source

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.

2026-10-291 file · 0 stars
cveforge/cve-2026-42945
GH-96a62a31b4cb1b99c7fea5fa8227d988GitHubUnofficial GitHub source

NGINX Rift: ngx_http_rewrite_module heap buffer overflow (nginx 0.6.27-1.30.0)

2026-11-234 files · 0 stars
cynepmyx/nginx-rift-check
GH-32264e1fcf248ec1904e81a6bfbc8553GitHubUnofficial GitHub source

Detects the CVE-2026-42945 rewrite pattern in nginx configs: rewrite with ? in the replacement plus an unnamed capture consumed in the same location

2026-08-137 files · 0 stars