{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:f5:nginx_ingress_controller:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "3.5.0"
              },
              {
                "last_affected": "3.7.2"
              },
              {
                "introduced": "4.0.0"
              },
              {
                "last_affected": "4.0.1"
              },
              {
                "introduced": "5.0.0"
              },
              {
                "last_affected": "5.4.1"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "33971b8ff54bc55785a7b38c07a21e03bda25080"
            },
            {
              "last_affected": "561824f3077b7615c2fa764bd6d8e7a47e184857"
            },
            {
              "introduced": "81bae7d0360fdf277b2d3e355d02e410ee211ef8"
            },
            {
              "last_affected": "43349033e28d0b6aa38773ff840deba079654a4f"
            },
            {
              "introduced": "8dfabca757830d0821e86206c2db83044e6696f0"
            },
            {
              "last_affected": "10b86a55601fda37765e2164d3af35df4ed453bd"
            }
          ],
          "repo": "https://github.com/nginx/kubernetes-ingress",
          "type": "GIT"
        }
      ]
    },
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:f5:nginx_open_source:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0.6.27"
              },
              {
                "last_affected": "1.30.0"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "44186f69a3c7792cd9f62018f4e1429614a121ef"
            },
            {
              "last_affected": "6e14e954aaacce9a433d9b07b4653809c7594ab8"
            }
          ],
          "repo": "https://github.com/nginx/nginx",
          "type": "GIT"
        }
      ]
    },
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:f5:nginx_gateway_fabric:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "1.3.0"
              },
              {
                "last_affected": "1.6.2"
              },
              {
                "introduced": "2.0.0"
              },
              {
                "last_affected": "2.5.1"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "3a372747333fb1db372af7cf0b18ed7eef7c91f7"
            },
            {
              "last_affected": "532db6a20b2912fe397211eef9f8d564d46a4bdd"
            },
            {
              "introduced": "7dad8b31e3f0c3eadce36fed8c276e83e6583d24"
            },
            {
              "last_affected": "2dacf30b4b9c29f855a9b81ff7079c472ea83661"
            }
          ],
          "repo": "https://github.com/nginx/nginx-gateway-fabric",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "unresolved_ranges": [
      {
        "cpes": [
          "cpe:2.3:a:f5:dos:*:*:*:*:*:nginx:*:*"
        ],
        "extracted_events": [
          {
            "introduced": "4.3.0"
          },
          {
            "last_affected": "4.7.0"
          }
        ],
        "source": "CPE_RANGE",
        "vendor_product": "f5:dos"
      },
      {
        "cpes": [
          "cpe:2.3:a:f5:nginx_instance_manager:*:*:*:*:*:*:*:*"
        ],
        "extracted_events": [
          {
            "introduced": "2.16.0"
          },
          {
            "last_affected": "2.21.1"
          }
        ],
        "source": "CPE_RANGE",
        "vendor_product": "f5:nginx_instance_manager"
      },
      {
        "cpes": [
          "cpe:2.3:a:f5:nginx_plus:*:*:*:*:*:*:*:*"
        ],
        "extracted_events": [
          {
            "introduced": "r32"
          },
          {
            "last_affected": "r36"
          }
        ],
        "source": "CPE_RANGE",
        "vendor_product": "f5:nginx_plus"
      },
      {
        "cpes": [
          "cpe:2.3:a:f5:waf:*:*:*:*:*:nginx:*:*"
        ],
        "extracted_events": [
          {
            "introduced": "4.9.0"
          },
          {
            "last_affected": "4.16.0"
          },
          {
            "introduced": "5.1.0"
          },
          {
            "last_affected": "5.8.0"
          },
          {
            "introduced": "5.9.0"
          },
          {
            "last_affected": "5.12.1"
          }
        ],
        "source": "CPE_RANGE",
        "vendor_product": "f5:waf"
      },
      {
        "cpes": [
          "cpe:2.3:a:f5:dos:4.8.0:*:*:*:*:nginx:*:*"
        ],
        "extracted_events": [
          {
            "introduced": "4.8.0"
          },
          {
            "last_affected": "4.8.0"
          }
        ],
        "source": "CPE_STRING",
        "vendor_product": "f5:dos"
      }
    ]
  },
  "details": "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.",
  "id": "CVE-2026-42945",
  "modified": "2026-07-08T05:38:42.980139399Z",
  "published": "2026-05-13T16:16:50.190Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://access.redhat.com/security/cve/CVE-2026-42945"
    },
    {
      "type": "WEB",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42945.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:17417"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:17751"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:17752"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:17753"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:17790"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:17791"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:17792"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:17793"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:17794"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:18029"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:18041"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:18063"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:19159"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:19371"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:19372"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:19374"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:20442"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:20444"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:21275"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:22382"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:22383"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:22388"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:22389"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:22390"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:22393"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:22394"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:22396"
    },
    {
      "type": "ADVISORY",
      "url": "https://depthfirst.com/nginx-rift"
    },
    {
      "type": "ADVISORY",
      "url": "https://my.f5.com/manage/s/article/K000161019"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2477116"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/DepthFirstDisclosures/Nginx-Rift"
    }
  ],
  "severity": [
    {
      "score": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
      "type": "CVSS_V4"
    }
  ]
}