> ## Documentation Index
> Fetch the complete documentation index at: https://blog.onetsolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# nginx TLS 1.3 DoS (CVE-2026-118899): workers stuck in a loop

> nginx TLS 1.3 flaw CVE-2026-118899: one crafted connection traps workers in an infinite loop. Fixed versions, distro packages and a TLS 1.2 stopgap.

*Published on December 1, 2026*

> [!WARNING]
>
> **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](https://github.com/advisories/GHSA-mjqw-rmmf-hgxf) carry the same scores. Red Hat rates it "Important", Ubuntu medium priority.

> [!NOTE]
>
> The flaw was disclosed on November 18, 2026, together with [nginx2root (CVE-2026-123007)](https://blog.onetsolutions.net/en/nginx2root-cve-2026-123007.md): 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.

| Profile | Exposure | Action |
| - | - | - |
| Unpatched nginx, TLS 1.3 accepted, reachable from the Internet | **High**: remote denial of service, no authentication | Update today; if you can't, restrict to TLS 1.2 in the meantime |
| Unpatched nginx, TLS 1.3 accepted, internal access only | Moderate | Update promptly |
| Ubuntu 22.04 or 20.04 updated on November 19 (USN-9159-1) | **Still exposed**: the fix landed on November 20 (USN-9182-1) | Run the update again |
| AlmaLinux 9 or 10 updated on November 18 (ALSA-2026:A024, A025) | **Still exposed**: those advisories only cover nginx2root | Run the update again |
| nginx restricted to TLS 1.2, or without an `ssl` listener | Not exposed to this CVE | Update anyway: the release fixes other flaws |
| Container on an nginx image pinned before 1.30.7 | Depends on the TLS configuration | Rebuild on 1.30.7 or 1.31.9 |
| Kubernetes, F5 NGINX Ingress Controller or NGINX Gateway Fabric | Affected according to the NVD | Move to 5.8.0 (Ingress Controller) or 2.9.0 (Gateway Fabric) |

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:

```bash theme={null}
# nginx and TLS library versions (TLS 1.3 needs OpenSSL 1.1.1 or later)
nginx -V 2>&1 | grep -iE 'nginx version|openssl'

# Effective ssl_protocols directives
sudo nginx -T 2>/dev/null | grep -n 'ssl_protocols'
```

The decisive test is a TLS 1.3 handshake against the server:

```bash theme={null}
# Attempt a TLS 1.3 connection on local port 443
echo | openssl s_client -connect 127.0.0.1:443 -tls1_3 2>&1 | grep -E '^New,'
```

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.

> [!NOTE]
>
> 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](https://help.onetsolutions.net/vps/snapshot) first.

### Debian

| Release | Fixed `nginx` package | Advisory |
| - | - | - |
| Debian 13 (trixie) | `1.26.3-3+deb13u11` | DSA-6642-1 |
| Debian 12 (bookworm) | `1.22.1-9+deb12u11` | DLA-4918-1 |
| Debian testing (forky), unstable (sid) | `1.30.6-4` | — |

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

### Ubuntu

| Release | Fixed `nginx` package | Advisory |
| - | - | - |
| 26.10 | `1.30.4-7ubuntu1.2` | USN-9159-1 |
| 26.04 LTS | `1.28.3-2ubuntu1.13` | USN-9159-1 |
| 24.04 LTS | `1.24.0-2ubuntu7.20` | USN-9159-1 |
| 22.04 LTS | `1.18.0-6ubuntu14.24` | USN-9182-1 |
| 20.04 LTS | `1.18.0-0ubuntu1.7+esm6` (Ubuntu Pro) | USN-9182-1 |
| 18.04 LTS | `1.14.0-0ubuntu1.11+esm7` (Ubuntu Pro) | USN-9182-1 |

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

```bash theme={null}
# Debian, Ubuntu: install the fixes (nginx and its modules), then restart
sudo apt update
sudo apt upgrade
sudo systemctl restart nginx

# Check the installed version
dpkg -l nginx | grep ^ii
```

### RHEL

Red Hat published its errata on November 20, 2026:

| Release | Fixed `nginx` package or stream | Advisory |
| - | - | - |
| RHEL 10 | `nginx-2:1.26.3-16.el10_3.3` | RHSA-2026:100744 |
| RHEL 9 (base package) | `nginx-2:1.20.1-32.el9_9.2` | RHSA-2026:100748 |
| RHEL 9, `nginx:1.26` stream | `nginx:1.26-9090020261119140335.9` | RHSA-2026:100745 |
| RHEL 9, `nginx:1.24` stream | `nginx:1.24-9090020261119141016.9` | RHSA-2026:100746 |
| RHEL 8, `nginx:1.24` stream | `nginx:1.24-8100020261119142731.489197e6` | RHSA-2026:100747 |

### AlmaLinux

AlmaLinux shipped the same errata on November 20, 2026:

| Release | Fixed `nginx` package | Advisory |
| - | - | - |
| AlmaLinux 10 | `2:1.26.3-16.el10_3.3.alma.1` | ALSA-2026:100744 |
| AlmaLinux 9 (base package) | `2:1.20.1-32.el9_9.2.alma.2` | ALSA-2026:100748 |
| AlmaLinux 9, `nginx:1.26` stream | `2:1.26.3-10.module_el9.9.0+364+649eade1.4` | ALSA-2026:100745 |
| AlmaLinux 9, `nginx:1.24` stream | see the advisory | ALSA-2026:100746 |
| AlmaLinux 8, `nginx:1.24` stream | `1:1.24.0-3.module_el8.10.0+4384+8a1ec6ac.9.alma.2` | ALSA-2026:100747 |

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.

```bash theme={null}
# Find out whether nginx comes from a module stream
dnf module list --enabled nginx

# Install the fix, then restart
sudo dnf upgrade 'nginx*'
sudo systemctl restart nginx

# Check the installed version
rpm -q nginx
```

### 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`:

```nginx theme={null}
http {
    # CVE-2026-118899 mitigation: TLS 1.3 disabled
    ssl_protocols TLSv1.2;
    # ...
}
```

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:

```bash theme={null}
# Every ssl_protocols directive, with its source file
sudo grep -rn 'ssl_protocols' /etc/nginx/
```

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:

```bash theme={null}
sudo nginx -t && sudo systemctl reload nginx
```

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.

> [!NOTE]
>
> 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

```bash theme={null}
# The package version must match your distribution's advisory
dpkg -l nginx | grep ^ii          # Debian, Ubuntu
rpm -q nginx                      # RHEL, AlmaLinux

# nginx must have restarted after the package update
systemctl show -p ActiveEnterTimestamp nginx
```

If you restricted nginx to TLS 1.2, run the handshake test again:

```bash theme={null}
# Expected: New, (NONE), Cipher is (NONE)
echo | openssl s_client -connect 127.0.0.1:443 -tls1_3 2>&1 | grep -E '^New,'

# Expected: New, TLSv1.2, Cipher is ...
echo | openssl s_client -connect 127.0.0.1:443 -tls1_2 2>&1 | grep -E '^New,'
```

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:

```nginx theme={null}
ssl_protocols TLSv1.2 TLSv1.3;
```

```bash theme={null}
sudo nginx -t && sudo systemctl reload nginx
```

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)](https://blog.onetsolutions.net/en/nginx2root-cve-2026-123007.md) on Ubuntu 22.04, 20.04 or AlmaLinux, check the installed version: you may need a second pass. Turn on [automatic security updates](https://blog.onetsolutions.net/en/automatic-security-updates-linux-vps.md) and go through the [nginx audit and hardening routine](https://blog.onetsolutions.net/en/audit-and-harden-nginx-on-a-vps.md). For any technical question, open a ticket from your [OnetSolutions customer area](https://help.onetsolutions.net/console/support).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.