Latest NGINX vulnerability: CVE-2026-42945 #

F5 published a security advisory that a high vulnerability was identified in multiple versions of NGINX products.

  • CVE-2026-42945: A heap-based buffer overflow vulnerability exists in the ngx_http_rewrite_module component of NGINX products. This vulnerability has been designated CVE-2026-42945 and has been rated High with a CVSS score of 8.1.

The following versions are affected:

  • NGINX Plus: Versions R32 through R36
  • NGINX Open Source: Versions 1.0.0 through 1.30.0
  • NGINX Open Source: Versions 0.6.27 through 0.9.7
  • NGINX Instance Manager: Versions 2.16.0 through 2.21.1
  • F5 WAF for NGINX: Versions 5.9.0 through 5.12.1
  • NGINX App Protect WAF: Versions 5.1.0 through 5.8.0
  • NGINX App Protect WAF: Versions 4.9.0 through 4.16.0
  • F5 DoS for NGINX: Version 4.8.0
  • NGINX App Protect DoS: Versions 4.3.0 through 4.7.0
  • NGINX Gateway Fabric: Versions 2.0.0 through 2.5.1
  • NGINX Gateway Fabric: Versions 1.3.0 through 1.6.2
  • NGINX Ingress Controller: Versions 5.0.0 through 5.4.1
  • NGINX Ingress Controller: Versions 4.0.0 through 4.0.1
  • NGINX Ingress Controller: Versions 3.5.0 through 3.7.2

    What is NGINX? #

    Nginx is a high-performance, open-source software used primarily as a web server and reverse proxy to efficiently handle large volumes of simultaneous connections. It is widely favored for its speed and stability, often serving as a load balancer or HTTP cache to optimize the delivery of web content.

    What is the impact? #

    A remote, unauthenticated attacker could exploit this vulnerability by sending crafted HTTP requests that trigger the vulnerable rewrite processing path, potentially allowing NGINX worker process restart (DoS). In environments where Address Space Layout Randomization (ASLR) is disabled, exploitation may also allow arbitrary code execution.

    Are updates or workarounds available? #

    Users are encouraged upgrade affected systems to the following versions:

    • NGINX Plus Rx: Upgrade to R36 P4, R32 P6 or later
    • NGINX Open Source: Upgrade to 1.31.0, 1.30.1 or later

    To mitigate the vulnerability, users are encouraged to use named captures instead of unnamed captures within rewrite rules:

    For example, the following rewrite directive uses unnamed capture groups: $1 and $2:

    rewrite ^/users/([0-9]+)/profile/(.*)$ /profile.php?id=$1&tab=$2 last;

    For this example, replacing $1 and $2 with $user_id and $section:

    rewrite ^/users/(?<user_id>[0-9]+)/profile/(?<section>.*)$ /profile.php?id=$user_id&tab=$section last;

    How to find potentially vulnerable systems with runZero #

    From the Software Inventory, use the following query to locate potentially impacted assets:

    ((vendor:="F5" OR vendor:="NGINX") AND 
      (product:="nginx plus" OR product:="nginx" OR product:="nginx ingress controller"))

    Written by runZero Team

    Great research and development is a team effort! Multiple runZero team members collaborated on this post. Go team!

    More about runZero Team
    Subscribe Now

    Get the latest news and expert insights delivered in your inbox.

    Welcome to the club! Your subscription to our newsletter is successful.

    Explore more runZero

    Product
    runZero 5.1 is here: Secure AI workflows, enhanced integrations, and expanded autonomous discovery
    runZero 5.1 takes on the heavy lifting across five key areas, enabling you to unmask and remediate exposures with less friction and more speed.
    Podcasts
    Know Your Adversary with HD Moore
    runZero CEO HD Moore breaks down the myth of air-gapped networks, the impact of AI on security, and why asset connectivity is everything.
    runZero Perspective
    BOD 26-04: A new era of prioritized remediation
    A complete breakdown of CISA's BOD 26-04 directive. Learn how the shift to SSVC, risk-based KEV prioritization, and 3-day remediation impacts your...
    runZero Perspective
    Dawn of the apex agentic adversary
    When agentic AI can weaponize exploits in seconds, visibility is everything. Stop the predator with runZero’s exposure management for the AI-attack...
    Webcasts
    runZero Hour, Ep. 33: Hacker Summer Camp: we survived the Vegas heat (and the bugs)
    In this post-Hacker Summer Camp recap, the runZero team break down the research, tools, and trends discussed at BSides Las Vegas, Black Hat and DEF...
    Podcasts
    The Internet's biggest point of failure
    Join Tod Beardsley on Secure & Scale as he explores the future of vulnerability management, CVE fragmentation, and how AI is changing security...
    Webcasts
    Mind the gaps: securing the modern IT/OT attack surface
    In this webcast, HD Moore and GigaOm Analyst Chris Ray discuss key methods for hardening OT defenses and share insights from the new OT report.
    Webcasts
    runZero Hour, Ep. 32: AI-pocalypse now? Why the 2026 DBIR is actually good news
    In this episode of runZero Hour, Tod Beardsley, Brianna Cluck, and Verizon's Alex Pinto broke down 2026 DBIR trends, AI threats, and runZero 5.0.

    See Results in Minutes

    See & secure your total attack surface. Even the unknowns & unmanageable.