{"id":215034,"date":"2026-05-14T02:00:00","date_gmt":"2026-05-14T06:00:00","guid":{"rendered":"https:\/\/testing.news-you-need.com\/index.php\/2026\/05\/14\/18-year-old-nginx-rewrite-module-flaw-enables-unauthenticated-rce\/"},"modified":"2026-05-17T13:10:31","modified_gmt":"2026-05-17T17:10:31","slug":"18-year-old-nginx-rewrite-module-flaw-enables-unauthenticated-rce","status":"publish","type":"post","link":"https:\/\/testing.news-you-need.com\/index.php\/2026\/05\/14\/18-year-old-nginx-rewrite-module-flaw-enables-unauthenticated-rce\/","title":{"rendered":"18-Year-Old NGINX Rewrite Module Flaw Enables Unauthenticated RCE"},"content":{"rendered":"<p><a href=\"https:\/\/thehackernews.com\/2026\/05\/18-year-old-nginx-rewrite-module-flaw.html\">18-Year-Old NGINX Rewrite Module Flaw Enables Unauthenticated RCE<\/a><\/p>\n<p><a href=\"https:\/\/thehackernews.com\/2026\/05\/18-year-old-nginx-rewrite-module-flaw.html\">https:\/\/thehackernews.com\/2026\/05\/18-year-old-nginx-rewrite-module-flaw.html<\/a><\/p>\n<p>Publish Date: <a href=\"publish_date]\">2026-05-14 02:00:00<\/a><\/p>\n<p>Source Domain: <a href=\"thehackernews.com\">thehackernews.com<\/a><\/p>\n<p>Author: <a href=\"\"><\/a><\/p>\n<p> Using an unordered list, summarize the following article with between 4 and 8 key points.<br \/>\n\ue804Ravie Lakshmanan\ue802May 14, 2026Vulnerability \/ Web Server<br \/>\nCybersecurity researchers have disclosed multiple security vulnerabilities impacting NGINX Plus and NGINX Open, including a critical flaw that remained undetected for 18 years.<br \/>\nThe vulnerability, discovered by depthfirst, is a heap buffer overflow issue impacting ngx_http_rewrite_module (CVE-2026-42945, CVSS v4 score: 9.2) that could allow an attacker to achieve remote code execution or cause a denial-of-service (DoS) with crafted requests. It has been codenamed NGINX Rift.<br \/>\n&#8220;NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_rewrite_module module,&#8221; F5 said in an advisory released Wednesday. &#8220;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 (?).&#8221;<br \/>\n&#8220;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, for systems with Address Space Layout Randomization (ASLR ) disabled, code execution is possible.&#8221;<\/p>\n<p>The issue has been addressed in the following versions after responsible disclosure on April 21, 2026 &#8211;<\/p>\n<p>NGINX Plus R32 &#8211; R36 (Fixes introduced in R32 P6 and R36 P4)<br \/>\nNGINX Open Source 1.0.0 &#8211; 1.30.0 (Fixes introduced in 1.30.1 and 1.31.0)<br \/>\nNGINX Open Source 0.6.27 &#8211; 0.9.7 (No fixes planned)<br \/>\nNGINX Instance Manager 2.16.0 &#8211; 2.21.1<br \/>\nF5 WAF for NGINX 5.9.0 &#8211; 5.12.1<br \/>\nNGINX App Protect WAF 4.9.0 &#8211; 4.16.0<br \/>\nNGINX App Protect WAF 5.1.0 &#8211; 5.8.0<br \/>\nF5 DoS for NGINX 4.8.0<br \/>\nNGINX App Protect DoS 4.3.0 &#8211; 4.7.0<br \/>\nNGINX Gateway Fabric 1.3.0 &#8211; 1.6.2<br \/>\nNGINX Gateway Fabric 2.0.0 &#8211; 2.5.1<br \/>\nNGINX Ingress Controller 3.5.0 &#8211; 3.7.2<br \/>\nNGINX Ingress Controller 4.0.0 &#8211; 4.0.1<br \/>\nNGINX Ingress Controller 5.0.0 &#8211; 5.4.1<\/p>\n<p>In its own advisory, depthfirst said the vulnerability could allow a remote, unauthenticated attacker to corrupt the heap of an NGINX worker process by sending a crafted URI. What makes the vulnerability severe is that it&#8217;s reachable without authentication, can be reliably used to trigger the heap overflow, and can lead to remote code execution in the NGINX worker process.<\/p>\n<p>&#8220;An attacker who can reach a vulnerable NGINX server over HTTP can send a single request that overflows the heap in the worker process and achieves remote code execution,&#8221; depthfirst said. &#8220;There is no authentication step, no prior access requirement, and no need for an existing session.&#8221;<br \/>\n&#8220;The bytes written past the allocation are derived from the attacker\u2019s URI, so the corruption is shaped by the attacker rather than random. Repeated requests can also be used to keep workers in a crash loop and degrade availability for every site served by the instance.&#8221;<\/p>\n<p>Also patched in NGINX Plus and NGINX Open Source are three other flaws &#8211;<\/p>\n<p>CVE-2026-42946 (CVSS v4 score: 8.3) &#8211; An excessive memory allocation vulnerability in the ngx_http_scgi_module and ngx_http_uwsgi_module modules that could allow a remote, unauthenticated attacker with adversary-in-the-middle (AitM) capabilities to control responses from an upstream server to read the memory of the NGINX worker process or restart it when scgi_pass or uwsgi_pass is configured.<br \/>\nCVE-2026-40701 (CVSS v4 score: 6.3) &#8211; A use-after-free vulnerability in the ngx_http_ssl_module module that could allow a remote, unauthenticated attacker to have limited control of modification of data or restart the NGINX worker process when the ssl_verify_client directive is set to &#8220;on&#8221; or &#8220;optional,&#8221; and the ssl_ocsp directive is set to &#8220;on.&#8221;<br \/>\nCVE-2026-42934 (CVSS v4 score: 6.3) &#8211; An out-of-bounds read vulnerability in the ngx_http_charset_module module that could allow a remote, unauthenticated attacker to disclose memory contents or restart the NGINX worker process when charset, source_charset, and charset_map, and proxy_pass with disabled buffering (&#8220;off&#8221;) directives are configured.<\/p>\n<p>Users are advised to apply the latest versions for optimal protection. If immediate patching is not an option for CVE-2026-42945, users are advised to change the rewrite configuration by replacing unnamed captures with named captures in every affected rewrite directive.<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>18-Year-Old NGINX Rewrite Module Flaw Enables Unauthenticated RCE https:\/\/thehackernews.com\/2026\/05\/18-year-old-nginx-rewrite-module-flaw.html Publish Date: 2026-05-14 02:00:00 Source Domain:&#8230;<\/p>\n","protected":false},"author":1,"featured_media":215035,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhhCvxtNv7UYYMCITB2HLsBgkN83LdRXcw0wmP9gMAfXeNpmJoOJKNIaQb55b-GLDeQHx-dUBkASGDYgstnvYAE5eFuwyzMSxY804fn56OaTsGlESOab9y-kFHJ-iV5iUlWrc5j27WLduUDhW6nRSjkv5tFMKZjDbbmDdk7_NMZ3y7sipHKy7t4XuMQ9YfG\/s1600\/nn.gif","fifu_image_alt":"","footnotes":""},"categories":[15],"tags":[24,31,27],"class_list":["post-215034","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cybersecurity","tag-cybersecurity","tag-exploit","tag-vulnerability"],"_links":{"self":[{"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/215034"}],"collection":[{"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/comments?post=215034"}],"version-history":[{"count":1,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/215034\/revisions"}],"predecessor-version":[{"id":215036,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/215034\/revisions\/215036"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/media\/215035"}],"wp:attachment":[{"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/media?parent=215034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/categories?post=215034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/tags?post=215034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}