# CVE-2026-42945: NGINX ngx\_http\_rewrite\_module vulnerability

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-05-13 · Modified: 2026-09-10
- Aliases: ALPINE-CVE-2026-42945, RHSA-2026:17417, RHSA-2026:17751, RHSA-2026:17752, RHSA-2026:17753, RHSA-2026:17790, RHSA-2026:17791, RHSA-2026:17792, RHSA-2026:17793, RHSA-2026:17794, RHSA-2026:18029, RHSA-2026:18041, RHSA-2026:18063, RHSA-2026:19159, RHSA-2026:19371, RHSA-2026:19372, RHSA-2026:19374, UBUNTU-CVE-2026-42945, DEBIAN-CVE-2026-42945, CGA-229c-hg58-qr38, CGA-36pq-5fh4-pm8v, CGA-3c28-mqxw-x5w6, CGA-4859-3g6g-3v9h, CGA-5cw5-68h5-34mp, CGA-5h6h-r5g6-m3rc, CGA-6q4w-h34q-gxxc, CGA-7rrv-fg72-6q59, CGA-8hgh-qgfw-pwq6, CGA-8vcf-gx7x-q624, CGA-9g86-296w-73g5, CGA-c798-q68p-v738, CGA-g32q-2vcf-6q3q, CGA-g5mv-26h7-5fmr, CGA-g6rm-97gj-h782, CGA-g9jf-27w7-fq8g, CGA-gjpp-38q2-9wvc, CGA-hh9g-7g7g-9jvc, CGA-hqx4-6c8m-m34q, CGA-jhc2-36rf-2m8q, CGA-jhf2-j9vf-jhrj, CGA-qqvh-q258-mhc2, CGA-rg4w-p8c5-h8pw, CGA-v8rr-6jf5-6h23, CGA-vvx2-j76g-wm23, CGA-vxxj-5v32-5jrj, CGA-w37v-pxjx-prcc, CGA-w4h9-6mhc-vc7g, CGA-wjf4-84mq-ghwg, CGA-wrq5-m5ww-vffr, CGA-x9fr-jgmj-54cx, CGA-xp4r-34c8-chvg, CGA-28cw-2cff-q2c4, CGA-2pm3-v3xp-8f73, CGA-36q2-493c-qqx9, CGA-3c62-9r6x-m7p2, CGA-3q29-7w4f-q9rg, CGA-44pf-v2jv-72qc, CGA-4pfq-99xp-mj9g, CGA-5jmm-995p-xw94, CGA-6h3j-62fj-vgmp, CGA-6p29-wmmc-c7pg, CGA-6rfm-7qqf-pfv4, CGA-6rmv-cgwc-hmx4, CGA-7fc5-r8v7-5w3w, CGA-7mw4-42h8-5jmw, CGA-7r45-q76r-5r87, CGA-8hpj-v6qj-vxjj, CGA-8jx7-4p3x-gmv7, CGA-98r3-m4p3-7v8j, CGA-999x-8f96-v6xg, CGA-9f89-768f-rfqr, CGA-9x9p-fw9q-7f26, CGA-c4r2-6c2j-grqm, CGA-cxgw-25p8-3297, CGA-f6gx-3gjq-wr2r, CGA-f6hv-x52j-x92h, CGA-f74h-mgm9-6m9c, CGA-ff6p-mmpm-3c55, CGA-fqc5-fr46-g296, CGA-g7v7-g6c4-ww3q, CGA-h64x-mqh5-26ff, CGA-h7fg-945r-rw4g, CGA-j5vj-ww86-m8xx, CGA-j83q-c8rx-43fc, CGA-jchf-3xr8-cqvf, CGA-mg26-6wvv-jf5h, CGA-mggp-5v87-chm7, CGA-mx5x-jr5c-m4qq, CGA-mxcv-4mc9-4mrj, CGA-p2qq-6g8f-479h, CGA-p2vw-5xgp-m3v3, CGA-p79h-5ww3-r9fg, CGA-pf62-q4w9-5fcm, CGA-pg36-g6mv-h44r, CGA-q76h-9qgj-p5j4, CGA-qrgv-623j-6mmw, CGA-qvx8-5rqw-r957, CGA-r47j-pp8c-6pfv, CGA-rcpj-jmpf-4jjf, CGA-rhqq-446f-mfwp, CGA-v776-pv33-qr44, CGA-wrff-ww4q-rpfg, CGA-ww9r-8hg4-4cq6, CGA-x3mh-36qc-fm3r, CGA-xwvm-vx89-4q3r, USN-8271-1
- Record: https://cvemate.com/vulnerability/CVE-2026-42945 · JSON: https://cvemate.com/vulnerability/CVE-2026-42945/json

## Description

```text
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.
```

## Signals

- CVSS: 9.2 critical (v4.0, CVE.org) 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
- EPSS: 69.369%, percentile 99.372%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 89)

- alpine nginx (Alpine Linux): \< 1.26.3-r1 \| \< 1.28.3-r1 \| \< 1.30.1-r0
- chainguard ingress-nginx-controller-1.13 (Chainguard): \< 1.13.9-r9
- chainguard ingress-nginx-controller-1.14 (Chainguard): \< 1.14.5-r12
- chainguard ingress-nginx-controller-1.15 (Chainguard): \< 1.15.5-r1
- chainguard ingress-nginx-controller-compat-1.13 (Chainguard): \< 1.13.9-r9
- chainguard ingress-nginx-controller-compat-1.14 (Chainguard): \< 1.14.5-r12
- chainguard ingress-nginx-controller-compat-1.15 (Chainguard): \< 1.15.5-r1
- chainguard ingress-nginx-controller-fips-1.13 (Chainguard): \< 1.13.9-r9
- chainguard ingress-nginx-controller-fips-1.14 (Chainguard): \< 1.14.5-r9
- chainguard ingress-nginx-controller-fips-1.15 (Chainguard): \< 1.15.5-r1
- chainguard ingress-nginx-controller-fips-compat-1.13 (Chainguard): \< 1.13.9-r9
- chainguard ingress-nginx-controller-fips-compat-1.14 (Chainguard): \< 1.14.5-r9
- chainguard ingress-nginx-controller-fips-compat-1.15 (Chainguard): \< 1.15.5-r1
- chainguard ingress-nginx-controller-fips-iamguarded-compat-1.13 (Chainguard): \< 1.13.9-r9
- chainguard ingress-nginx-controller-fips-iamguarded-compat-1.14 (Chainguard): \< 1.14.5-r9
- chainguard ingress-nginx-controller-fips-iamguarded-compat-1.15 (Chainguard): \< 1.15.5-r1
- chainguard ingress-nginx-controller-iamguarded-compat-1.13 (Chainguard): \< 1.13.9-r9
- chainguard ingress-nginx-controller-iamguarded-compat-1.14 (Chainguard): \< 1.14.5-r12
- chainguard ingress-nginx-controller-iamguarded-compat-1.15 (Chainguard): \< 1.15.5-r1
- chainguard ingress-nginx-custom-error-pages-1.13 (Chainguard): \< 1.13.9-r9

## References (first 20 of 63)

- <https://my.f5.com/manage/s/article/K000161019>
- <https://depthfirst.com/nginx-rift>
- <https://github.com/DepthFirstDisclosures/Nginx-Rift>
- <https://access.redhat.com/security/cve/CVE-2026-42945>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2477116>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42945.json>
- <https://access.redhat.com/errata/RHSA-2026:17790>
- <https://access.redhat.com/errata/RHSA-2026:18063>
- <https://access.redhat.com/errata/RHSA-2026:19159>
- <https://access.redhat.com/errata/RHSA-2026:18041>
- <https://access.redhat.com/errata/RHSA-2026:17791>
- <https://access.redhat.com/errata/RHSA-2026:17751>
- <https://access.redhat.com/errata/RHSA-2026:17792>
- <https://access.redhat.com/errata/RHSA-2026:17793>
- <https://access.redhat.com/errata/RHSA-2026:17752>
- <https://access.redhat.com/errata/RHSA-2026:17794>
- <https://access.redhat.com/errata/RHSA-2026:17753>
- <https://access.redhat.com/errata/RHSA-2026:18029>
- <https://access.redhat.com/errata/RHSA-2026:19371>
- <https://access.redhat.com/errata/RHSA-2026:19374>

---

Data as of 2026-12-05T02:49:53.595Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
