NGINX ngx_http_rewrite_module vulnerability
CVE-2026-42945Published 13 May 2026, 14:12 UTC
Real-world risk
4.3/ 10Medium
Schedule in the normal cycle
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.2
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from f5)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| NGINX Open SourceCommon | >= 0.6.27, < 1.30.1 | 1.30.1 |
| NGINX PlusCommon | >= R36, < R36 P4; >= R32, < R32 P6 | — |
What to do
Update to a fixed version: 1.30.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
EPSS 69.4% chance of exploitation in 30 days (percentile 99), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T3: Public proof of concept0.950
- 10 × impact 1 × prerequisites 0.45 × threat 0.954.275
- Rounded to one decimal between 0.1 and 104.3
Exploitation and evidence timeline
- 13 May 2026 Published
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Risk 4.3 (cvss fallback)
Weakness
CWE-122
References
- https://my.f5.com/manage/s/article/K000161019patch, vendor-advisory
- https://depthfirst.com/nginx-rift
- https://github.com/DepthFirstDisclosures/Nginx-Rift
- https://access.redhat.com/security/cve/CVE-2026-42945redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2477116issue-tracking, redhat
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42945.jsonx-sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:17790redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:18063redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19159redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:18041redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17791redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17751redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17792redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17793redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17752redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17794redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17753redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:18029redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19371redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19374redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19372redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17417redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:22396redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:22393redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:22394redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:22390redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:22388redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:22389redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:22383redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:22382redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:20442redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:20444redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:58981redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:21275redhat, vendor-advisory
- CVE-2026-42945 on CVE.org