Skip to main content
Published on December 1, 2026
CVE-2026-118899 — nginx, TLS 1.3. An unauthenticated attacker can freeze the workers of any nginx that accepts TLS 1.3: a crafted TLS connection traps them in an infinite loop, and the site stops responding. nginx 1.30.7 (stable) and 1.31.9 (mainline) fix the flaw. If your nginx accepts TLS 1.3, update today or restrict it to TLS 1.2 in the meantime.

The bug in two sentences

When an http block has a listen directive with the ssl parameter and TLS 1.3 is enabled, a specially crafted TLS connection sends the nginx worker into an infinite loop while it reads the HTTP request body. The worker then stops accepting new connections and stops processing the ones in flight: a handful of connections is enough to silence the server. This is a loop with an unreachable exit condition (CWE-835). Only availability is at stake: data confidentiality and integrity are not affected, and F5 states that only the data plane is involved. Affected versions:
  • nginx 1.13.0 through 1.30.6, fixed in 1.30.7 (stable branch);
  • nginx 1.31.0 through 1.31.8, fixed in 1.31.9 (mainline branch).
nginx 1.13.0 is the release that introduced TLS 1.3. F5, the vendor behind nginx, scores the flaw 7.5 in CVSS 3.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) and 8.7 in CVSS 4.0. The NVD entry and the GitHub advisory GHSA-mjqw-rmmf-hgxf carry the same scores. Red Hat rates it “Important”, Ubuntu medium priority.
The flaw was disclosed on November 18, 2026, together with nginx2root (CVE-2026-123007): the same upstream releases and most of the same packages fix both. One notable exception: on Ubuntu 22.04 and 20.04, and on AlmaLinux 9 and 10, the first fixes shipped for nginx2root do not cover this one.

Sizing your exposure

The question to ask: does your nginx accept TLS 1.3? The flaw requires an ssl listener with TLS 1.3 enabled. An nginx restricted to TLS 1.2, or serving plain HTTP only, is not exposed to this CVE. Without an ssl_protocols directive, nginx accepts TLS 1.3 by default since version 1.23.4. On older versions, it depends on your configuration. Read the loaded configuration:
The decisive test is a TLS 1.3 handshake against the server:
A New, TLSv1.3, Cipher is ... line means TLS 1.3 is accepted. A New, (NONE), Cipher is (NONE) line means it is not. Add -servername your-domain.com to test a specific site.
Don’t rely on the version number printed by nginx -v alone. Debian, Ubuntu, RHEL and AlmaLinux backport the fix without changing the upstream version: Debian 12 stays on nginx 1.22.1 once patched. Only the full package version, checked against your distribution’s advisory, tells you where you stand.

Updating nginx by distribution

The real fix is the package update, followed by a restart of nginx: a plain reload keeps the old workers running for as long as they serve connections. Take a snapshot of your VPS first.

Debian

These are the same advisories as for nginx2root: a Debian server already patched for nginx2root is covered for this flaw too.

Ubuntu

On 22.04, the 1.18.0-6ubuntu14.23 package shipped for nginx2root does not fix this flaw: you need 14.24.

RHEL

Red Hat published its errata on November 20, 2026:

AlmaLinux

AlmaLinux shipped the same errata on November 20, 2026: Advisories ALSA-2026:A024 and ALSA-2026:A025 from November 18, released for nginx2root, do not cover this flaw. A server updated that day must be updated again.

Kubernetes

According to the NVD, F5 NGINX Ingress Controller versions before 5.8.0 and NGINX Gateway Fabric versions before 2.9.0 are affected. Upgrade the controller’s chart or image to those versions.

Restricting nginx to TLS 1.2 until you patch

If you can’t update right away, Red Hat recommends disabling TLS 1.3 and accepting TLS 1.2 only. Put the directive in the http block of /etc/nginx/nginx.conf:
An ssl_protocols directive in a server block overrides the one in the http block, and the nginx documentation notes that the value from the default server of an address may be the one applied. So find every other occurrence and set it to the same value:
Files included by Certbot, such as /etc/letsencrypt/options-ssl-nginx.conf, may hold one as well: check them with the same command. Test the configuration, then reload:
Clients that require TLS 1.3 will no longer connect, and you give up the benefits of TLS 1.3 while the mitigation is in place. Mainstream browsers and tools negotiate TLS 1.2 without trouble.
Red Hat offers another route for a service that doesn’t need to be public: restrict access to trusted networks at the firewall. If you serve HTTP/3 (listen ... quic), prefer the update: Ubuntu notes that part of the upstream fix concerns versions that support HTTP/3.

Checking the mitigation

If you restricted nginx to TLS 1.2, run the handshake test again:
Repeat the test with -servername for each domain you serve over HTTPS.

Re-enabling TLS 1.3 after the update

Once the fixed package is installed and nginx restarted, bring TLS 1.3 back everywhere you removed it:
The openssl s_client -tls1_3 test should print New, TLSv1.3 again.

What next?

Restricting nginx to TLS 1.2 is only a stopgap: the target remains your distribution’s fixed package. If you updated for nginx2root (CVE-2026-123007) on Ubuntu 22.04, 20.04 or AlmaLinux, check the installed version: you may need a second pass. Turn on automatic security updates and go through the nginx audit and hardening routine. For any technical question, open a ticket from your OnetSolutions customer area.