CVE-2026-42945: NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_rewrite_module module
Affects nginxSource GCVE Database
Not known to be exploited · 69% EPSS · CVSS 8.1 High · fixed in 1.4.6-1ubuntu3.9+esm6 : patch nginx as a priority.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 69.3% chance of exploitation in 30 days – higher than 99% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.4.6-1ubuntu3.9+esm6, 1.10.3-0ubuntu0.16.04.5+esm7, 1.14.0-0ubuntu1.11+esm2 +5
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 13 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSnginxpkg:deb/ubuntu/nginx?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10nginxpkg:deb/ubuntu/nginx?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSnginxpkg:deb/ubuntu/nginx?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSnginxpkg:deb/ubuntu/nginx?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSnginxpkg:deb/ubuntu/nginx?arch=source&distro=esm-infra/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSnginxpkg:deb/ubuntu/nginx?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-42945 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-42945 (opens in a new tab)
- openwall.com/lists/oss-security/2026/05/13/7 (opens in a new tab)
- depthfirst.com/research/nginx-rift-achieving-nginx-rce-via-an-18-year-old-vulnerability (opens in a new tab)
- my.f5.com/manage/s/article/K000161019 (opens in a new tab)
- nginx.org/en/security_advisories.html (opens in a new tab)
- ubuntu.com/security/notices/USN-8271-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8375-1 (opens in a new tab)