Use After Free Affecting nginx package, versions [1.19.0,1.30.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.69% (50th 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 Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-NGINX-16680099
  • published14 May 2026
  • disclosed13 May 2026
  • creditZhenpeng (Leo) Lin

Introduced: 13 May 2026

CVE-2026-40701  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade nginx to version 1.30.1 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free in the ngx_http_ssl_module process when the ssl_verify_client directive is set to "on" or "optional" and the ssl_ocsp directive is set to "on" or the leaf parameters are configured with a resolver. An attacker can cause the NGINX worker process to restart or modify limited data by sending crafted requests under these conditions. This is only exploitable if both ssl_verify_client is enabled ("on" or "optional") and ssl_ocsp is enabled or leaf parameters are configured with a resolver.

References

CVSS Base Scores

version 4.0
version 3.1