GrepBoard/Manuals
605 manuals ·

nginx 1.31.9 and 1.30.7 security update: check 10 CVEs

·Tested on nginx official Docker images 1.31.8 · 1.31.9 · 1.30.6 · 1.30.7 · nginx.org security advisories · 2026-11·Test scope ↓·6 steps

nginx 1.31.9 and 1.30.7 (2026-11-18) fix ten security issues. Check your version and your config with nginx -T for the named features, then upgrade.

The nginx security advisories page lists ten entries for the 2026-11-18 releases. All say "Not vulnerable: 1.31.9+, 1.30.7+" except the PROXY protocol entry, which says 1.31.9+ only. Every "Vulnerable" range ends at 1.31.8. This guide only covers how to check; it does not build or send attack requests.

Advisory title (CVE)SeverityVulnerable fromLook for in your config
Memory corruption in HTTP/2 flow control (CVE-2026-123007)major1.9.5http2 on, listen … http2
Infinite loop while reading client request body over TLS 1.3 (CVE-2026-118899)major1.13.0any TLS server
Use-after-free in mail proxy module (CVE-2026-113425)major0.5.33mail {
Use-after-free during response processing in resolver (CVE-2026-123634)medium0.6.18resolver
Use-after-free in HTTP/3 (CVE-2026-121810)medium1.25.0listen … quic
Use-after-free in HTTP/2 (CVE-2026-123633)medium1.19.7HTTP/2
SNI bypass when using client certificate validation in stream (CVE-2026-120967)medium1.25.5ssl_verify_client in stream
NULL pointer dereference when using PROXY protocol version 2 (CVE-2026-120993)minor1.31.4listen … proxy_protocol
Buffer overflow when using alias with try_files (CVE-2026-125283)minor0.9.6alias + try_files in one location
Insufficient validation in stream ssl_preread module (CVE-2026-123640)minor1.15.2ssl_preread in stream

[1] Check your version. Only 1.31.9 and later, and 1.30.7 and later, are listed as safe.

console
$ nginx -v$ docker run --rm --entrypoint nginx nginx:1.31.8 -vnginx version: nginx/1.31.8

[2] Check that the feature is built in. This is the official 1.31.9 image. Distribution packages can differ, and without --with-mail the mail entry does not apply.

console
$ nginx -V 2>&1 | tr " " "\n" | grep -E "^--with-(http_v2|http_v3|mail|stream|stream_ssl_preread|http_ssl)" | sort--with-http_v2_module--with-http_v3_module--with-mail…--with-stream_ssl_preread_module

[3] Look for the lines in the table. nginx -T prints the whole config including included files. If nginx -T fails, this script ends with a failure instead of reporting "none", and it removes its temporary files.

check.sh
#!/bin/sh# usage: sh check.sh <nginx.conf>set -euCONF="$1"DUMP=$(mktemp)ERR=$(mktemp)trap 'rm -f "$DUMP" "$ERR"' EXITif ! nginx -T -c "$CONF" > "$DUMP" 2> "$ERR"; then  cat "$ERR" >&2  echo "nginx -T failed: nothing was checked" >&2  exit 1fiecho "nginx: $(nginx -v 2>&1)"echo "--- feature lines (line number : text)"for pat in \  'http2[[:space:]]+on|listen[^;]*[[:space:]]http2' \  'listen[^;]*[[:space:]]quic|http3[[:space:]]+on' \  '^[[:space:]]*resolver[[:space:]]' \  '^[[:space:]]*mail[[:space:]]*\{' \  'listen[^;]*proxy_protocol' \  '^[[:space:]]*alias[[:space:]]' \  '^[[:space:]]*try_files[[:space:]]' \  '^[[:space:]]*stream[[:space:]]*\{' \  'ssl_preread|ssl_verify_client' ; do  echo "[$pat]"  grep -nE "$pat" "$DUMP" || echo "  (none)"done

The output below comes from a test config, good.conf, that uses HTTP/2, resolver, alias with try_files, PROXY protocol, mail and stream ssl_preread once each (it passes nginx -t). In the test container both files were in /w; on your server run sh check.sh /etc/nginx/nginx.conf. The output is shortened.

console
$ sh /w/check.sh /w/good.confnginx: nginx version: nginx/1.31.8--- feature lines (line number : text)[http2[[:space:]]+on|listen[^;]*[[:space:]]http2]7:        http2 on;…[^[[:space:]]*resolver[[:space:]]]4:    resolver 192.0.2.53;…[^[[:space:]]*alias[[:space:]]]9:            alias /srv/files/;[^[[:space:]]*try_files[[:space:]]]10:            try_files $uri =404;…[ssl_preread|ssl_verify_client]29:        ssl_preread on;

If the config cannot be read, the script prints the error instead of the pattern list and exits with status 1.

console
$ sh /w/check.sh /w/missing.confnginx: [emerg] open() "/w/missing.conf" failed (2: No such file or directory)nginx: configuration file /w/missing.conf test failednginx -T failed: nothing was checked

A matching line does not mean you are affected, and no matching line is not a guarantee of safety. Read the changelog conditions too: the PROXY v2 entry says "with dynamic SSL certificate loading" and the alias entry says "in certain configurations". The TLS infinite loop has no directive to search for, so treat any listen … ssl as a candidate. ssl_verify_client also exists on the http side; use the line number to see which block it is in.

[4] Upgrade. For containers, change the tag to nginx:1.31.9 (mainline) or nginx:1.30.7 (stable) and rebuild; both tags were pulled and checked. A restart can drop connections, so write down the previous tag to return to (1.31.8 or 1.30.6) and confirm nginx -t passes on the new image first. For package-managed servers, whether your distribution has shipped the fixes was not checked.

[5] Besides the security fixes, 1.31.9 has "now header lines without a colon are rejected" and "now a request is rejected if the chunked request body contains too much framing overhead" (not in 1.30.7). Watch the error log for a few days after upgrading.

[6] After the upgrade, run docker exec <container> nginx -v and confirm 1.31.9, 1.30.7 or later.

Where checking gets confusing

  • The HTTP/3 entry's CVE link text on the advisory page is "CVE-CVE-2026-121810", with the prefix doubled. The changelog says CVE-2026-121810.
  • The list says "over TLS 1.3" for the infinite-loop entry; the changelog says "over SSL".
  • The older form listen 8080 http2; was also caught by the script (it triggers a deprecation warning).
  • The 1.30 line is outside the PROXY v2 vulnerable range, so that entry is not in the 1.30.7 changelog.

Analyze your Nginx log in the browser ↗ — nothing is uploaded.

#nginx#cve-2026-123007#http2#http3#security-update