{"answers":{"affected":"2 open source packages ship an affected version, including nginx and nginx-gateway. It affects 7 products.","exploited":"There is no known exploitation of CVE-2026-42945 in the wild and no public exploit code.","fix":"Upgrade nginx to 1.30.1 or later.","what":"CVE-2026-42945 is a critical memory corruption vulnerability in F5 NGINX Open Source, published on 13 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-42945 and fix it if it is affected.\n\nWhat it is: CVE-2026-42945 is a critical memory corruption vulnerability in F5 NGINX Open Source, published on 13 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-42945 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- nginx (Bitnami): affected from 0.6.27; fixed in 1.30.1\n- nginx-gateway (Bitnami): affected from 0.6.27; fixed in 1.30.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-42945/ (Markdown: https://insights.sbomify.com/CVE-2026-42945/index.md)","id":"CVE-2026-42945","markdown":"https://insights.sbomify.com/CVE-2026-42945/index.md","name":"CVE-2026-42945","record":{"aliases":["ALPINE-CVE-2026-42945","ALSA-2026:18029","ALSA-2026:18041","ALSA-2026:18063","ALSA-2026:19159","ALSA-2026:19371","ALSA-2026:19372","ALSA-2026:19374","AZL-86856","BELL-CVE-2026-42945","BIT-nginx-2026-42945","BIT-nginx-gateway-2026-42945","CLSA-2026-1778843906","CLSA-2026-1778869454","CLSA-2026-1778888948","CLSA-2026-1778895590","CLSA-2026-1779126256","CLSA-2026-1779126860","CLSA-2026-1779217566","CLSA-2026-1779282813","CLSA-2026-1779367740","CLSA-2026-1779892646","CLSA-2026-1779892931","CLSA-2026-1779893017","DEBIAN-CVE-2026-42945","ECHO-c2cf-7660-2dc1","GHSA-gcgv-v5gf-c543","MINI-6q62-v8ph-5pj9","MINI-8rrq-3hgp-23g8","MINI-mgf8-8cm6-897r","MINI-mxgx-2m37-rwq3","MINI-vr9c-7mcr-hff2","OESA-2026-2405","OESA-2026-2406","OESA-2026-2407","OESA-2026-2408","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","RLSA-2026:18029","RLSA-2026:18041","RLSA-2026:18063","RLSA-2026:19159","RLSA-2026:19371","RLSA-2026:19372","RLSA-2026:19374","ROOT-OS-ALPINE-315-CVE-2026-42945","ROOT-OS-ALPINE-320-CVE-2026-42945","UBUNTU-CVE-2026-42945"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["denial_of_service","code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"NGINX web server","requires_auth":"none","summary":"Unauthenticated attackers can trigger a heap buffer overflow in NGINX via crafted requests, causing service restarts or remote code execution if ASLR is bypassed.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"f5","cpe":[{"product":"dos","vendor":"f5"},{"product":"nginx_gateway_fabric","vendor":"f5"},{"product":"nginx_ingress_controller","vendor":"f5"},{"product":"nginx_instance_manager","vendor":"f5"},{"product":"nginx_open_source","vendor":"f5"},{"product":"nginx_plus","vendor":"f5"},{"product":"waf","vendor":"f5"}],"cvss":{"score":9.2,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-131","name":"Incorrect Calculation of Buffer Size"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"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.","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","Bitnami","Red Hat:enterprise_linux:10.1","Red Hat:enterprise_linux:10.2","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::crb","Red Hat:enterprise_linux_eus:10.0","Red Hat:hummingbird:1","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_eus:9.4::crb","Red Hat:rhel_eus:9.6::appstream","Red Hat:rhel_eus:9.6::crb","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9"],"exploits":{"exploitdb":0,"first_seen":"2026-05-14","github_poc":47,"max_poc_stars":63,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-05-14T11:38:08Z","kind":"github_poc","ref":"https://github.com/cipherspy/CVE-2026-42945-POC","stars":63,"title":"exploit for CVE-2026-42945"},{"date":"2026-05-14T04:40:47Z","kind":"github_poc","ref":"https://github.com/friparia/NGINX_RIFT_SCAN_CVE_2026_42945","stars":34,"title":"Nginx Rewrite CVE Scan(CVE-2026-42945 nginx-rift  CVE-2026-9256)"},{"date":"2026-05-16T14:25:39Z","kind":"github_poc","ref":"https://github.com/MateusVerass/nGixshell","stars":27,"title":"nginx CVE scanner + RCE exploit framework (CVE-2026-42945 + 16 others)"},{"date":"2026-05-14T13:20:06Z","kind":"github_poc","ref":"https://github.com/rheodev/CVE-2026-42945","stars":24,"title":"NGINX Rift 漏洞分析与复现"},{"date":"2026-05-15T00:16:39Z","kind":"github_poc","ref":"https://github.com/oseasfr/Scanner_CVE_2026-42945","stars":19,"title":"Script Python para detecção de instâncias Nginx vulneráveis ao CVE-2026-42945 em IPs, CIDRs e ASNs."},{"date":"2026-05-14T06:12:17Z","kind":"github_poc","ref":"https://github.com/p3Nt3st3r-sTAr/CVE-2026-42945-POC","stars":15,"title":null},{"date":"2026-05-25T09:02:49Z","kind":"github_poc","ref":"https://github.com/nu0l/NGINX-Rift","stars":5,"title":"CVE-2026-42945 NGINX 堆溢出漏洞扫描与验证工具"},{"date":"2026-05-15T07:29:53Z","kind":"github_poc","ref":"https://github.com/iammerrida-source/nginx-rift-detect","stars":4,"title":"Behavioral detection script for CVE-2026-42945 (NGINX Rift) — heap overflow in ngx_http_rewrite_module. No RCE, crash-based detection only."}],"tier":"poc_unverified"},"has_fix":true,"headline":"NGINX ngx_http_rewrite_module vulnerability","id":"CVE-2026-42945","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":315,"n_references":1,"next":{"headline":"NGINX ngx_http_scgi_module and ngx_http_uwsgi_module vulnerability","id":"CVE-2026-42946"},"packages":[{"ecosystem":"Bitnami","fixed":["1.30.1"],"introduced":["0.6.27"],"last_affected":[],"package":"nginx","purl":"pkg:bitnami/nginx","source":"BIT-nginx-2026-42945"},{"ecosystem":"Bitnami","fixed":["1.30.1"],"introduced":["0.6.27"],"last_affected":[],"package":"nginx-gateway","purl":"pkg:bitnami/nginx-gateway","source":"BIT-nginx-gateway-2026-42945"},{"ecosystem":"AlmaLinux:10","fixed":["2:1.26.3-6.el10_2.3"],"introduced":["0"],"last_affected":[],"package":"nginx","purl":"pkg:rpm/almalinux/nginx","source":"ALSA-2026:19159"},{"ecosystem":"AlmaLinux:10","fixed":["2:1.26.3-2.el10_1.2"],"introduced":["0"],"last_affected":[],"package":"nginx-all-modules","purl":"pkg:rpm/almalinux/nginx-all-modules","source":"ALSA-2026:18063"},{"ecosystem":"AlmaLinux:10","fixed":["2:1.26.3-6.el10_2.3"],"introduced":["0"],"last_affected":[],"package":"nginx-all-modules","purl":"pkg:rpm/almalinux/nginx-all-modules","source":"ALSA-2026:19159"},{"ecosystem":"AlmaLinux:10","fixed":["2:1.26.3-6.el10_2.3"],"introduced":["0"],"last_affected":[],"package":"nginx-core","purl":"pkg:rpm/almalinux/nginx-core","source":"ALSA-2026:19159"},{"ecosystem":"AlmaLinux:10","fixed":["2:1.26.3-2.el10_1.2"],"introduced":["0"],"last_affected":[],"package":"nginx-filesystem","purl":"pkg:rpm/almalinux/nginx-filesystem","source":"ALSA-2026:18063"},{"ecosystem":"AlmaLinux:10","fixed":["2:1.26.3-6.el10_2.3"],"introduced":["0"],"last_affected":[],"package":"nginx-filesystem","purl":"pkg:rpm/almalinux/nginx-filesystem","source":"ALSA-2026:19159"},{"ecosystem":"AlmaLinux:10","fixed":["2:1.26.3-6.el10_2.3"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-devel","purl":"pkg:rpm/almalinux/nginx-mod-devel","source":"ALSA-2026:19159"},{"ecosystem":"AlmaLinux:10","fixed":["2:1.26.3-6.el10_2.3"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-http-image-filter","purl":"pkg:rpm/almalinux/nginx-mod-http-image-filter","source":"ALSA-2026:19159"},{"ecosystem":"AlmaLinux:10","fixed":["2:1.26.3-6.el10_2.3"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-http-perl","purl":"pkg:rpm/almalinux/nginx-mod-http-perl","source":"ALSA-2026:19159"},{"ecosystem":"AlmaLinux:10","fixed":["2:1.26.3-6.el10_2.3"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-http-xslt-filter","purl":"pkg:rpm/almalinux/nginx-mod-http-xslt-filter","source":"ALSA-2026:19159"},{"ecosystem":"AlmaLinux:10","fixed":["2:1.26.3-6.el10_2.3"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-mail","purl":"pkg:rpm/almalinux/nginx-mod-mail","source":"ALSA-2026:19159"},{"ecosystem":"AlmaLinux:10","fixed":["2:1.26.3-6.el10_2.3"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-stream","purl":"pkg:rpm/almalinux/nginx-mod-stream","source":"ALSA-2026:19159"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx","purl":"pkg:rpm/almalinux/nginx","source":"ALSA-2026:18041"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-all-modules","purl":"pkg:rpm/almalinux/nginx-all-modules","source":"ALSA-2026:18041"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-filesystem","purl":"pkg:rpm/almalinux/nginx-filesystem","source":"ALSA-2026:18041"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-devel","purl":"pkg:rpm/almalinux/nginx-mod-devel","source":"ALSA-2026:18041"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-http-image-filter","purl":"pkg:rpm/almalinux/nginx-mod-http-image-filter","source":"ALSA-2026:18041"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-http-perl","purl":"pkg:rpm/almalinux/nginx-mod-http-perl","source":"ALSA-2026:18041"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-http-xslt-filter","purl":"pkg:rpm/almalinux/nginx-mod-http-xslt-filter","source":"ALSA-2026:18041"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-mail","purl":"pkg:rpm/almalinux/nginx-mod-mail","source":"ALSA-2026:18041"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.24.0-3.module_el8.10.0+4182+ca797750.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-stream","purl":"pkg:rpm/almalinux/nginx-mod-stream","source":"ALSA-2026:18041"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.20.1-24.el9_7.3.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx","purl":"pkg:rpm/almalinux/nginx","source":"ALSA-2026:18029"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.20.1-28.el9_8.2.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx","purl":"pkg:rpm/almalinux/nginx","source":"ALSA-2026:19374"},{"ecosystem":"AlmaLinux:9","fixed":["1:1.24.0-7.module_el9.8.0+246+ef96a02d.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-all-modules","purl":"pkg:rpm/almalinux/nginx-all-modules","source":"ALSA-2026:19371"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.20.1-24.el9_7.3.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-all-modules","purl":"pkg:rpm/almalinux/nginx-all-modules","source":"ALSA-2026:18029"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.20.1-28.el9_8.2.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-all-modules","purl":"pkg:rpm/almalinux/nginx-all-modules","source":"ALSA-2026:19374"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.26.3-9.module_el9.8.0+247+aa936373"],"introduced":["0"],"last_affected":[],"package":"nginx-all-modules","purl":"pkg:rpm/almalinux/nginx-all-modules","source":"ALSA-2026:19372"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.20.1-24.el9_7.3.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-core","purl":"pkg:rpm/almalinux/nginx-core","source":"ALSA-2026:18029"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.20.1-28.el9_8.2.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-core","purl":"pkg:rpm/almalinux/nginx-core","source":"ALSA-2026:19374"},{"ecosystem":"AlmaLinux:9","fixed":["1:1.24.0-7.module_el9.8.0+246+ef96a02d.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-filesystem","purl":"pkg:rpm/almalinux/nginx-filesystem","source":"ALSA-2026:19371"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.20.1-24.el9_7.3.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-filesystem","purl":"pkg:rpm/almalinux/nginx-filesystem","source":"ALSA-2026:18029"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.20.1-28.el9_8.2.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-filesystem","purl":"pkg:rpm/almalinux/nginx-filesystem","source":"ALSA-2026:19374"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.26.3-9.module_el9.8.0+247+aa936373"],"introduced":["0"],"last_affected":[],"package":"nginx-filesystem","purl":"pkg:rpm/almalinux/nginx-filesystem","source":"ALSA-2026:19372"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.20.1-24.el9_7.3.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-devel","purl":"pkg:rpm/almalinux/nginx-mod-devel","source":"ALSA-2026:18029"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.20.1-28.el9_8.2.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-devel","purl":"pkg:rpm/almalinux/nginx-mod-devel","source":"ALSA-2026:19374"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.20.1-24.el9_7.3.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-http-image-filter","purl":"pkg:rpm/almalinux/nginx-mod-http-image-filter","source":"ALSA-2026:18029"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.20.1-28.el9_8.2.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-http-image-filter","purl":"pkg:rpm/almalinux/nginx-mod-http-image-filter","source":"ALSA-2026:19374"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.20.1-24.el9_7.3.alma.1"],"introduced":["0"],"last_affected":[],"package":"nginx-mod-http-perl","purl":"pkg:rpm/almalinux/nginx-mod-http-perl","source":"ALSA-2026:18029"}],"prev":{"headline":"Heap overflow with multiple NSID, COOKIE, PADDING EDNS options","id":"CVE-2026-42944"},"products":["NGINX Open Source","NGINX Plus"],"published":"2026-05-13","related":[{"cvss_score":9.2,"headline":"NGINX ngx_http_proxy_v2_module and ngx_http_grpc_module vulnerability","id":"CVE-2026-42055","kev_date_added":null,"published":"2026-06-17"},{"cvss_score":8.3,"headline":"NGINX ngx_http_scgi_module and ngx_http_uwsgi_module vulnerability","id":"CVE-2026-42946","kev_date_added":null,"published":"2026-05-13"},{"cvss_score":6.9,"headline":"NGINX ngx_quic_module vulnerability","id":"CVE-2026-40460","kev_date_added":null,"published":"2026-05-13"},{"cvss_score":6.3,"headline":"NGINX ngx_http_charset_module vulnerability","id":"CVE-2026-48142","kev_date_added":null,"published":"2026-06-17"},{"cvss_score":6.3,"headline":"NGINX ngx_http_ssl_module vulnerability","id":"CVE-2026-40701","kev_date_added":null,"published":"2026-05-13"},{"cvss_score":6.3,"headline":"NGINX ngx_http_charset_module vulnerability","id":"CVE-2026-42934","kev_date_added":null,"published":"2026-05-13"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-10","vendors":["F5"]},"summary":"Unauthenticated attackers can trigger a heap buffer overflow in NGINX via crafted requests, causing service restarts or remote code execution if ASLR is bypassed.","url":"https://insights.sbomify.com/CVE-2026-42945/"}