CVE-2026-42945
NGINX ngx_http_rewrite_module vulnerability
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 3.40%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 89.6% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 13 May 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| NGINX Plus |
unaffected R37 and later affected from R36, before R36 P4 affected from R32, before R32 P6
Other versions: unknown
|
| NGINX Open Source |
unaffected 1.31.0 and later affected from 0.6.27, before 1.30.1
Other versions: unaffected
|
Is my server affected?
This CVE is in NGINX Plus of F5, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.
Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.
References
Advisories
- https://my.f5.com/manage/s/article/K000161019 my.f5.com · vendor advisory, patch
- https://access.redhat.com/security/cve/CVE-2026-42945 access.redhat.com · vdb entry
- RHBZ#2477116 bugzilla.redhat.com · issue tracking
- https://access.redhat.com/errata/RHSA-2026:17790 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:18063 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19159 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:18041 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:17791 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:17751 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:17792 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:17793 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:17752 access.redhat.com · vendor advisory
19 more
- https://access.redhat.com/errata/RHSA-2026:17794 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:17753 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:18029 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19371 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19374 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19372 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:17417 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:22396 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:22393 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:22394 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:22390 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:22388 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:22389 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:22383 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:22382 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:20442 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:20444 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:58981 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:21275 access.redhat.com · vendor advisory
Other references
- https://depthfirst.com/nginx-rift depthfirst.com
- https://github.com/DepthFirstDisclosures/Nginx-Rift github.com
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42945.json security.access.redhat.com
Source: the record CVE-2026-42945 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse