Bütün yazılar

Five security flaws fixed in nginx, move to 1.31.7 or 1.30.6

nginx released 1.31.7 and 1.30.6 on 14 October 2026. F5 announced the flaws on 19 October. The fixes close five vulnerabilities, two of them buffer overflows. If ASLR is off or can be bypassed, those overflows can lead to code execution.

nginx.org lists all five flaws as medium severity. Some news coverage calls three of them critical. We took the CVE and module mapping from nginx.org's CHANGES file. All F5 products (NGINX Plus, Ingress Controller, Gateway Fabric, Instance Manager) got patches too.

The flaws

CVE-2026-15176. When the alias directive is used and the request URI is changed by rewrite and then mapped to a file path, a buffer overflow can occur in a worker process. Versions 0.1.29 through 1.31.6 are affected.

CVE-2026-93479. A buffer overflow happens while evaluating string expressions with variables. It affects the document root calculation and request logging in the http and stream modules. Versions 1.31.2 through 1.31.6 and 1.30.0 through 1.30.5 are affected.

CVE-2026-97205. With asynchronous file I/O (AIO) on and an SSI page that has include virtual commands, a use-after-free can occur in some configurations. Versions 0.8.11 through 1.31.6 are affected.

CVE-2026-95101. With HTTP/3, part of an unknown frame can be treated as the request body. That can bypass the client_max_body_size limit or inject data into the proxied request. Versions 1.25.0 through 1.31.6 are affected.

CVE-2026-97629. When TLS session ticket keys are rotated, one of the keys is left uninitialized, which can allow a session to be forged. Versions 1.23.2 through 1.31.6 are affected.

The fixed releases are 1.31.7 and later, and 1.30.6 and later.

Which of these applies to you

Start by collecting your version and configuration.

nginx -v
nginx -T 2>/dev/null | grep -nE '\balias\b|\baio\b|\bssi\b|http3|quic|ssl_session_ticket_key|\bmap\b'
cat /proc/sys/kernel/randomize_va_space

If the last command prints 2, ASLR is fully on. That value matters because the code execution risk depends on ASLR. If your version is in range and the output shows one of those directives, the matching flaw applies to you. Without a listen ... quic line, the HTTP/3 flaw cannot reach you.

How to fix it

Update nginx first. If you use distribution packages, the version number your package manager gives you may look old, because distributions backport fixes under their own numbering. In that case search the package changelog for the CVE number.

sudo apt-get update && sudo apt-get install --only-upgrade nginx
apt changelog nginx | grep -E 'CVE-2026-(15176|93479|97205|95101|97629)'
sudo nginx -t && sudo systemctl restart nginx

reload does not swap the running binary, so use restart after the upgrade. With Docker, check that the nginx:stable or nginx:mainline tag reached the new release, pull the image again and recreate the container. As long as the old image is up, the patch is not on your server.

If you cannot update right away, F5 gives these temporary measures.

  • For CVE-2026-15176, do not use the alias directive together with the $request_filename variable in a location block.
  • For CVE-2026-97205, turn off AIO or SSI.
  • For CVE-2026-93479, use named captures instead of unnamed ones and limit their use to the block where the regex matches.

The announcement gives no temporary measure for the HTTP/3 and TLS ticket flaws. Here is what we would try for those two. If you do not use HTTP/3, remove the listen ... quic lines, and for the TLS ticket flaw use ssl_session_tickets off. These are not F5's recommendations, so test them before you roll them out.

After the update

Check the new version with nginx -v and validate the configuration with nginx -t. Old worker processes keep running old code until their open connections end, so also check with ps aux | grep nginx that none are left.

Sources

Related posts

Written by sheduxdev.

Five security flaws fixed in nginx, move to 1.31.7 or 1.30.6 | TurkishPvP LLC