Three key slots are allocated. Rotation copies two. The third holds whatever
was in memory, and a ticket that names it can be verified with that material.
The result is a forged session that can satisfy a client-certificate check.

What the advisory says

The 14 October 2026 changelog entry says that during TLS session ticket key
rotation one of the keys was left uninitialized, "which might allow to forge a
session" (CVE-2026-97629), crediting PhiNode Labs. F5's advisory is more
explicit:

When NGINX Plus or NGINX Open Source is configured with
ssl_session_cache shared:: without an explicit
ssl_session_ticket_key file directive to automatically rotate SSL session
ticket keys, a remote unauthenticated attacker is able to forge client SSL
sessions in a non-deterministic manner that is beyond the attacker's control.
An attacker could leverage this vulnerability to bypass verification of
client certificates.

F5 classifies it CWE-908: Use of Uninitialized Resource, scores it
CVSS 4.0 8.3 (CVSS 3.1 6.5), and calls the impact "limited" because the
forgery is non-deterministic. nginx.org rates it medium. The vulnerable range
is 1.23.2–1.31.6.

The three-slot structure

The shared cache keeps ticket keys in a three-element array: current, previous,
next. Each worker keeps a private mirror allocated with three slots:

key = ngx_array_push_n(keys, 3);

The decrypt callback scans every slot by name, cleanup wipes
keys->nelts * sizeof(ngx_ssl_ticket_key_t), and everything assumes three
slots are initialised.

Rotation, however, copied two:

ngx_memcpy(keys->elts, cache->ticket_keys,
           2 * sizeof(ngx_ssl_ticket_key_t));

The third slot's name, hmac_key and aes_key retain pool memory. If it is
zero, the key name is sixteen zero bytes and the HMAC key is zero — trivially
forgeable by anyone who guesses it. If it is stale heap, the attacker has to
match a name they cannot see, which is where F5's "non-deterministic and beyond
the attacker's control" comes from.

Either way, the server will HMAC-verify and decrypt a ticket with material that
was never a key. That is a session forgery primitive. The one-line fix is:

-               2 * sizeof(ngx_ssl_ticket_key_t));
+               keys->nelts * sizeof(ngx_ssl_ticket_key_t));

Why this is the fundamental flaw

The four memory bugs are availability and integrity bugs. This one is an
authentication bug in the trust model. A deployment that requires client
certificates for service-to-service traffic is using nginx as the authenticator;
the application behind it does not re-check the certificate, it trusts the
proxy.

A forged resumption breaks that assertion without an authentication event. The
session is resumed, not created. There is no failed certificate check, no
SSL_verify_client error, no 401. In normal logs the request looks like a
legitimate returning client. That silence is the real severity: it bypasses not
just a control but the evidence the control was supposed to produce.

The constraint F5 cites is real: the attacker needs the uninitialised slot's
name to match, which stale heap does not give them. But the zero-memory case is
not hypothetical — a freshly forked worker's pool can be zeroed — and
multi-tenant environments make heap grooming more practical. The difference
between "mTLS bypass" and "mTLS bypass with a network position" is not one an
operator can verify from outside.

The 2025 precedent

nginx has had this consequence before. CVE-2025-23419, fixed in 1.27.4 and
1.26.3 in February 2025, could also bypass client-certificate verification. The
mechanism differed; the outcome did not.

The fix is not the whole remediation

Upgrading to 1.31.7 or 1.30.6 fixes the copy. It does not change the
architecture in which the proxy is the sole authenticator. If the application
accepts any request from nginx as authenticated, the next proxy bug is also an
authentication bypass. The durable control is to validate client identity at the
application — end-to-end mTLS, a signed header the application verifies, or a
token it checks independently.

Next: Part 8 — the version sprawl: two supported branches, a dozen
distribution packages, Plus releases, containers and appliances, and the
1.28 branch that never gets this fix.