Heap-based Buffer Overflow Affecting nginx package, versions [1.30.0,1.30.6)[1.31.2,1.31.7)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.55% (45th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Heap-based Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-NGINX-21691942
  • published24 Oct 2026
  • disclosed14 Oct 2026
  • creditUnknown

Introduced: 14 Oct 2026

NewCVE-2026-93479  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade nginx to version 1.30.6, 1.31.7 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow in the map directive when regex matching is used and regex capture variables are referenced before the map output variable. An attacker can cause a heap buffer overflow by sending specially crafted HTTP requests. This may result in process crashes, denial of service, or, in rare cases where Address Space Layout Randomization (ASLR) is disabled or bypassed, possible code execution.

Workaround

This vulnerability can be mitigated by not using unnamed captures and instead using named captures only within the same block as the regex match.

CVSS Base Scores

version 4.0
version 3.1