CVE-2026-42945
Exploitation reported by one source. First attested on 2026-05-19 by GCVE · kevintel.
- Published2026-05-13
- WeaknessCWE-122 · CWE-131
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2026-05-1316:16CVE publishedNVD
- 2026-05-1915:36Listed as exploited by GCVEGCVE
- 2026-05-1915:36Exploitation first reportedGCVE
Observed activity
isMalicious corpus · updated 2026-10-23 15:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2026-42945?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2026-42945?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.x | ≥ 3.5.0, ≤ 3.7.2 | no fix published | NVD |
| 4.0 | ≥ 4.0.0, ≤ 4.0.1 | no fix published | NVD |
| 5.x | ≥ 5.0.0, ≤ 5.4.1 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.x | ≥ 4.9.0, ≤ 4.16.0 | no fix published | NVD |
| 5.x | ≥ 5.1.0, ≤ 5.8.0 | no fix published | NVD |
| 5.x | ≥ 5.9.0, ≤ 5.12.1 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.x | ≥ 4.3.0, ≤ 4.7.0 | no fix published | NVD |
| 4.8 | = 4.8.0 | no fix published | NVD |
6 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- nginxAlmaLinux:10all versions · fixed in 2:1.26.3-6.el10_2.3and 9 other packages
- nginxAlmaLinux:9all versions · fixed in 2:1.20.1-28.el9_8.2.alma.1and 9 other packages
- nginxAlmaLinux:8all versions · fixed in 1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1and 8 other packages
Vendor advisories
nginx: NGINX: Arbitrary Code Execution Vulnerability
Red Hat Security Advisory: Red Hat Update Infrastructure 5.3 Technology Preview security update
Hitachi Energy e-mesh EMS
e-mesh EMS versions 4.1.6 · e-mesh EMS versions 4.4.2 · e-mesh EMS versions 4.7.0
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.14.33 security, enhancement & bug fix update
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.16.29 security, enhancement & bug fix update
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.15.29 security, enhancement & bug fix update
24 more advisories
Fix
- Vendor fix Red Hat Product Security RHSA-2026:58981 · 2 productsPlease consult the RHUI Technology Preview Release Notes at https://access.redhat.com/articles/7141172 for instructions on how to use this image set.
- Vendor fix CISA ICSA-26-188-03 · 3 productsApply hotfix for respective e-mesh EMS versions to update NGINX to either v1.30.2 or latest
- Vendor fix Red Hat Product Security RHSA-2026:22396 · 9 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_openshift_data_foundation/4.14/html/updating_openshift_data_foundation/updating-ocs-…
- Vendor fix Red Hat Product Security RHSA-2026:22394 · 9 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_openshift_data_foundation/4.16/html/updating_openshift_data_foundation/updating-ocs-…
- Vendor fix Red Hat Product Security RHSA-2026:22393 · 9 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_openshift_data_foundation/4.15/html/updating_openshift_data_foundation/updating-ocs-…
- Vendor fix Red Hat Product Security RHSA-2026:22390 · 9 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_openshift_data_foundation/4.17/html/updating_openshift_data_foundation/updating-ocs-…
Advisories and patches
- my.f5.comMitigation · Vendor Advisory
- depthfirst.comMitigation
Detection
read 2026-10-23 18:48 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- 20 repositories, unverifiedfriparia/NGINX_RIFT_SCAN_CVE_2026_42945p3Nt3st3r-sTAr/CVE-2026-42945-POCrealityone/cve-2026-42945-scancipherspy/CVE-2026-42945-POCnanwinata/nginxrift-CVE-2026-42945 PoC-in-GitHub
Sources
- NVDCVE recordread 2026-10-23
- GCVEexploitation2026-05-19
- CISA-ADPSSVC decisionnone2026-05-13
- OpenCVESSVC decisionnone—
- CNACVSS 4.09.2read 2026-10-23
- CNACVSS 3.18.1read 2026-10-23
- CNAweakness (CWE)CWE-122, CWE-131read 2026-10-23
- FIRST EPSSEPSS score3.4 %2026-10-22
- PoC-in-GitHubproof of concept20read 2026-10-23
- OSVaffected packages—
- Microsoft MSRCadvisory—
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 4.0 vector
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Published
- 2026-05-13
- Last Modified
- 2026-09-10
- NVD status
- Modified
- MSRC Title
- NGINX ngx_http_rewrite_module vulnerability
Frequently asked questions
What is CVE-2026-42945?
Is CVE-2026-42945 actively exploited?
What is the CVSS score for CVE-2026-42945?
Running nginx? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2023-44487KEVsame product
- CVE-2021-23017same product
- CVE-2026-42055same product
- CVE-2025-23419same product
- CVE-2026-9256same productNGINX ngx_http_rewrite_module vulnerability
- CVE-2024-35200same product
- CVE-2026-42946same product
- CVE-2026-42533same productNGINX Map directive and Regex matching vulnerability