Integer Underflow (Wrap or Wraparound) Affecting nginx package, versions [0.9.6,1.30.7)[1.31.0,1.31.9)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Social Trends
Exploit Maturity
Proof of Concept
EPSS
1.38% (73rd 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 IDSNYK-UNMANAGED-NGINX-22598810
  • published18 Nov 2026
  • disclosed18 Nov 2026
  • creditMarc Luchian, Liviu-Alexandru Bud

Introduced: 18 Nov 2026

NewCVE-2026-125283  (opens in a new tab)
CWE-191  (opens in a new tab)

How to fix?

Upgrade nginx to version 1.30.7, 1.31.9 or higher.

Overview

Affected versions of this package are vulnerable to Integer Underflow (Wrap or Wraparound) in the map directive with regex matching, where certain combinations of regular expression captures in map and try_files cause a segmentation fault in the worker process. An attacker can crash the NGINX worker process by sending a request to a location that uses such a configuration. Only configurations that use the try_files and alias directives with a map variable are affected.

Workaround

This vulnerability can be avoided by using named regular expression captures instead of unnamed ones, and by not reusing the same capture variable in other regex matches or for other purposes.

CVSS Base Scores

version 4.0
version 3.1