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-2026-42945
Score 8.1 from GitHub Security Advisory (severity: CRITICAL) published 2026-05-13. the CNA's CVSS baseline 8.1; sources differ by 0.0.
- High exploitation likelihood — EPSS 61%
A fix is available — apply it.
- CVSS v3
- 8.1
- EG Score
- 8.1(medium)
- EPSS
- 99.1%
- KEV
- Not listed
Published
May 13, 2026
Last Modified
July 2, 2026
Advisory Details (1)
Auto-updated May 13, 2026Vendor Advisories for CVE-2026-42945(20)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:22396Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.14.33 security, enhancement & bug fix update
- RHSA-2026:22394Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.16.29 security, enhancement & bug fix update
- RHSA-2026:22393Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.15.29 security, enhancement & bug fix update
- RHSA-2026:22390Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.17.27 security, enhancement & bug fix update
- RHSA-2026:22389Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.19.18 security, enhancement & bug fix update
- RHSA-2026:22388Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.18.23 security, enhancement & bug fix update
- RHSA-2026:22383Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.20.13 security, enhancement & bug fix update
- RHSA-2026:22382Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.21.6 security, enhancement & bug fix update
- +12 more
Patch Availability(29)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(8)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2026:17417CRITICAL2026-05-13
RHSA-2026:17417 — Critical
- Red HatRHSA-2026:17751CRITICAL2026-05-13
RHSA-2026:17751 — Critical
- Red HatRHSA-2026:17752CRITICAL2026-05-13
RHSA-2026:17752 — Critical
- Red HatRHSA-2026:17753CRITICAL2026-05-13
RHSA-2026:17753 — Critical
- Red HatRHSA-2026:17790CRITICAL2026-05-13
RHSA-2026:17790 — Critical
- Red HatRHSA-2026:17791CRITICAL2026-05-13
RHSA-2026:17791 — Critical
- Red HatRHSA-2026:17793CRITICAL2026-05-13
RHSA-2026:17793 — Critical
- Red HatRHSA-2026:17794CRITICAL2026-05-13
RHSA-2026:17794 — Critical
Data Freshness Timeline
(refreshed 5× in last 7d / 71× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 178 total refreshes for this CVE.
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-08 15:16 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-29 22:58 UTCEG score recompute
- 2026-06-29 22:58 UTCVendor advisory
- 2026-06-29 22:58 UTCGHSA enrichment
- 2026-06-28 11:31 UTCEG score recompute
- 2026-06-28 11:31 UTCVendor advisory
- 2026-06-28 11:31 UTCGHSA enrichment
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-27 23:33 UTCEG score recompute
- 2026-06-27 23:33 UTCVendor advisory
- 2026-06-27 23:33 UTCGHSA enrichment
- 2026-06-27 08:12 UTCEG score recompute
- 2026-06-27 08:12 UTCVendor advisory
- 2026-06-27 08:12 UTCGHSA enrichment
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-26 20:32 UTCEG score recompute
- 2026-06-26 20:32 UTCVendor advisory
- 2026-06-26 20:32 UTCGHSA enrichment
- 2026-06-25 19:41 UTCEG score recompute
Show 75 moreShow fewer
- 2026-06-25 19:41 UTCVendor advisory
- 2026-06-25 19:41 UTCGHSA enrichment
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-17 14:34 UTCEG score recompute
- 2026-06-17 14:34 UTCVendor advisory
- 2026-06-17 14:34 UTCGHSA enrichment
- 2026-06-16 22:33 UTCEG score recompute
- 2026-06-16 22:33 UTCVendor advisory
- 2026-06-16 22:33 UTCGHSA enrichment
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-16 00:57 UTCEG score recompute
- 2026-06-16 00:57 UTCVendor advisory
- 2026-06-16 00:56 UTCGHSA enrichment
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-14 22:53 UTCEG score recompute
- 2026-06-14 22:53 UTCVendor advisory
- 2026-06-14 22:53 UTCGHSA enrichment
- 2026-06-14 11:20 UTCEG score recompute
- 2026-06-14 11:20 UTCVendor advisory
- 2026-06-14 11:20 UTCGHSA enrichment
- 2026-06-13 23:47 UTCEG score recompute
- 2026-06-13 23:47 UTCVendor advisory
- 2026-06-13 23:47 UTCGHSA enrichment
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-13 07:00 UTCEG score recompute
- 2026-06-13 07:00 UTCVendor advisory
- 2026-06-13 07:00 UTCGHSA enrichment
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 19:26 UTCEG score recompute
- 2026-06-12 19:26 UTCVendor advisory
- 2026-06-12 19:26 UTCGHSA enrichment
- 2026-06-12 07:50 UTCEG score recompute
- 2026-06-12 07:50 UTCVendor advisory
- 2026-06-12 07:49 UTCGHSA enrichment
- 2026-06-11 20:17 UTCEG score recompute
- 2026-06-11 20:17 UTCVendor advisory
- 2026-06-11 20:17 UTCGHSA enrichment
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-11 08:45 UTCEG score recompute
- 2026-06-11 08:45 UTCVendor advisory
- 2026-06-11 08:44 UTCGHSA enrichment
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 21:12 UTCEG score recompute
- 2026-06-10 21:12 UTCVendor advisory
- 2026-06-10 21:12 UTCGHSA enrichment
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 09:39 UTCEG score recompute
- 2026-06-10 09:39 UTCVendor advisory
- 2026-06-10 09:39 UTCGHSA enrichment
- 2026-06-09 22:07 UTCEG score recompute
- 2026-06-09 22:07 UTCVendor advisory
- 2026-06-09 22:07 UTCGHSA enrichment
- 2026-06-09 10:29 UTCEG score recompute
- 2026-06-09 10:29 UTCVendor advisory
- 2026-06-09 10:29 UTCGHSA enrichment
- 2026-06-08 22:57 UTCEG score recompute
- 2026-06-08 22:57 UTCVendor advisory
- 2026-06-08 22:57 UTCGHSA enrichment
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 11:24 UTCEG score recompute
- 2026-06-08 11:24 UTCVendor advisory
Publicly available exploits
(10 references)Working exploit code is in the public domain (10 GitHub PoCs). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCbamov970/CVE-2026-42945-Nginx-RCE-bypass-ASLRFirst seen May 25, 2026
CVE-2026-42945 turns a 17-year-old NGINX rewrite bug into remote code execution — even with ASLR on, by chaining the heap overflow with live worker memory read through a common file-read flaw.
Open source ↗ - GitHub PoCnu0l/NGINX-RiftFirst seen May 25, 2026
CVE-2026-42945 NGINX 堆溢出漏洞扫描与验证工具
Open source ↗ - GitHub PoCMateusVerass/nGixshellFirst seen May 16, 2026
nginx CVE scanner + RCE exploit framework (CVE-2026-42945 + 16 others)
Open source ↗ - Open source ↗GitHub PoCjelasin/CVE-2026-42945First seen May 15, 2026
- GitHub PoCoseasfr/Scanner_CVE_2026-42945First seen May 15, 2026
Script Python para detecção de instâncias Nginx vulneráveis ao CVE-2026-42945 em IPs, CIDRs e ASNs.
Open source ↗ - GitHub PoCiammerrida-source/nginx-rift-detectFirst seen May 15, 2026
Behavioral detection script for CVE-2026-42945 (NGINX Rift) — heap overflow in ngx_http_rewrite_module. No RCE, crash-based detection only.
Open source ↗ - GitHub PoCrheodev/CVE-2026-42945First seen May 14, 2026
NGINX Rift 漏洞分析与复现
Open source ↗ - GitHub PoCcipherspy/CVE-2026-42945-POCFirst seen May 14, 2026
exploit for CVE-2026-42945
Open source ↗ - Open source ↗GitHub PoCnanwinata/nginxrift-CVE-2026-42945First seen May 14, 2026
- GitHub PoCfriparia/NGINX_RIFT_SCAN_CVE_2026_42945First seen May 14, 2026
Nginx Rewrite CVE Scan(CVE-2026-42945 nginx-rift CVE-2026-9256)
Open source ↗
Frequently asked(5)
What is CVE-2026-42945?
When was CVE-2026-42945 disclosed?
Is CVE-2026-42945 actively exploited?
What is the CVSS score of CVE-2026-42945?
How do I remediate CVE-2026-42945?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-42945
Is Your Infrastructure Affected by CVE-2026-42945?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.