CVE-2026-40701: NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_ssl_module module when the ssl_verify_client directive is set to "on" or "optional," and the ssl_ocsp directive is set to "on"...

Medium CVSS 4.8

CVE id
CVE-2026-40701
Published
Last modified

Affected packages

PackageAffected versionsFixed in
NGINX
Runtimes and servers
>= 1.19.0, <= 1.30.0 after 1.30.0
NGINX App Protect WAF
Runtimes and servers
>= 4.9.0, <= 4.16.0
>= 5.1.0, <= 5.8.0
>= 5.9.0, <= 5.12.1
after 4.16.0, 5.8.0, 5.12.1
NGINX Gateway Fabric
Runtimes and servers
>= 1.3.0, <= 1.6.2
>= 2.0.0, <= 2.6.0
after 1.6.2, 2.6.0
F5 NGINX Ingress Controller
Runtimes and servers
>= 3.5.0, <= 3.7.2
>= 4.0.0, <= 4.0.1
>= 5.0.0, <= 5.4.2
after 3.7.2, 4.0.1, 5.4.2
NGINX Plus
Runtimes and servers
>= 32, <= 36 after 36

How to fix it

NGINX (Runtimes and servers)

Upgrade NGINX to a release newer than 1.30.0.

nginx -v
  • Install the patched NGINX release of your branch (the nginx image tag, the nginx.org packages, or your distribution's security update) and restart NGINX; with OpenResty, upgrade to the OpenResty release built on it.

NGINX App Protect WAF (Runtimes and servers)

Upgrade NGINX App Protect WAF to a release newer than the last affected update of the line you run (4.16.0, 5.8.0, 5.12.1).

  • Upgrade NGINX App Protect WAF (the app-protect packages, or the waf-enforcer and waf-config-mgr images) to the patched release.

NGINX Gateway Fabric (Runtimes and servers)

Upgrade NGINX Gateway Fabric to a release newer than the last affected update of the line you run (1.6.2, 2.6.0).

kubectl get deploy -A -l app.kubernetes.io/name=nginx-gateway-fabric -o jsonpath='{..image}'
  • Upgrade NGINX Gateway Fabric (its Helm chart or the nginx-gateway-fabric images) to the patched release.

F5 NGINX Ingress Controller (Runtimes and servers)

Upgrade F5 NGINX Ingress Controller to a release newer than the last affected update of the line you run (3.7.2, 4.0.1, 5.4.2).

kubectl get deploy -A -l app.kubernetes.io/name=nginx-ingress -o jsonpath='{..image}'
  • Upgrade the NGINX Ingress Controller image (nginx/nginx-ingress or nginx-plus-ingress) or its Helm chart to the patched release and roll it out to every cluster.

NGINX Plus (Runtimes and servers)

Upgrade NGINX Plus to a release newer than 36.

nginx -v
  • Upgrade NGINX Plus to the patched release from the F5 repository (or your nginx-plus image) and restart it.

A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.

Details

NGINX Plus and NGINX Open Source have a vulnerability in the ngxhttpsslmodule module when the sslverifyclient directive is set to "on" or "optional," and the sslocsp directive is set to "on" or the leaf parameters are configured with a resolver. With this configuration, an unauthenticated attacker can send requests along with conditions beyond its control that may cause a heap-use-after-free error in the NGINX worker process. This vulnerability may result in limited modification of data or the NGINX worker process restarting.

 Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.

References

Am I affected?

Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.

or paste its content

Needed when you paste. package.json and pyproject.toml only have version ranges: use the lockfile next to them.

Only package names and versions are checked; the file itself is not kept. We use your email to send this report and nothing else unless you tick the box above. Privacy policy.

About this data

Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.