nginx 1.31.9·1.30.7 보안 업데이트 10건 확인
nginx 1.31.9 와 1.30.7 은 2026-11-18 에 보안 수정 10건을 냈습니다. 내 판이 범위인지, 설정에 해당 기능이 있는지 nginx -T 로 확인하고 올리는 순서입니다.
nginx 보안 권고 목록에 2026-11-18 자 10건이 올라왔습니다. 모두 "Not vulnerable: 1.31.9+, 1.30.7+" 이고 PROXY protocol 항목만 1.31.9+ 입니다. "Vulnerable" 범위의 끝은 모두 1.31.8 입니다. 아래는 확인 순서만 다루며 공격 요청은 만들지도 보내지도 않습니다.
| 권고 제목 (CVE) | 등급 | 취약 범위 | 설정에서 볼 것 |
|---|---|---|---|
| Memory corruption in HTTP/2 flow control (CVE-2026-123007) | major | 1.9.5– | http2 on, listen … http2 |
| Infinite loop while reading client request body over TLS 1.3 (CVE-2026-118899) | major | 1.13.0– | TLS 서버 전부 |
| Use-after-free in mail proxy module (CVE-2026-113425) | major | 0.5.33– | mail { |
| Use-after-free during response processing in resolver (CVE-2026-123634) | medium | 0.6.18– | resolver |
| Use-after-free in HTTP/3 (CVE-2026-121810) | medium | 1.25.0– | listen … quic |
| Use-after-free in HTTP/2 (CVE-2026-123633) | medium | 1.19.7– | HTTP/2 |
| SNI bypass when using client certificate validation in stream (CVE-2026-120967) | medium | 1.25.5– | stream 의 ssl_verify_client |
| NULL pointer dereference when using PROXY protocol version 2 (CVE-2026-120993) | minor | 1.31.4– | listen … proxy_protocol |
| Buffer overflow when using alias with try_files (CVE-2026-125283) | minor | 0.9.6– | 한 location 의 alias + try_files |
| Insufficient validation in stream ssl_preread module (CVE-2026-123640) | minor | 1.15.2– | stream 의 ssl_preread |
[1] 지금 판을 봅니다. 안전하다고 적힌 판은 1.31.9 이상과 1.30.7 이상뿐입니다.
$ nginx -v$ docker run --rm --entrypoint nginx nginx:1.31.8 -vnginx version: nginx/1.31.8[2] 기능이 빌드돼 있는지 봅니다. 공식 1.31.9 이미지는 이렇습니다. 배포판 패키지는 다를 수 있고, --with-mail 이 없으면 mail 항목은 해당되지 않습니다.
$ 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] 설정에서 위 표의 줄을 찾습니다. nginx -T 는 include 한 파일까지 합쳐 찍습니다. 이 스크립트는 nginx -T 가 실패하면 「없음」이 아니라 실패로 끝나고, 임시 파일은 끝나면 지웁니다.
#!/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아래는 HTTP/2·resolver·alias+try_files·PROXY protocol·mail·stream ssl_preread 를 한 번씩 쓴 시험 설정 good.conf(nginx -t 통과)로 돌린 결과이고, 시험 컨테이너에서는 두 파일이 /w 에 있었습니다. 내 서버에서는 sh check.sh /etc/nginx/nginx.conf 로 돌립니다. 출력은 줄여 실었습니다.
$ 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;설정 파일을 못 읽는 경우에는 패턴 목록 대신 실패로 끝나고 종료 코드가 1 입니다.
$ 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줄이 나왔다고 영향을 받는다는 뜻은 아니고, 안 나왔다고 안전하다는 보증도 아닙니다. 변경 기록의 조건 문장도 읽습니다. PROXY v2 는 "with dynamic SSL certificate loading", alias 는 "in certain configurations" 입니다. TLS 무한 루프는 지시어가 없으니 listen … ssl 이 있으면 후보로 봅니다. ssl_verify_client 는 http 쪽에도 있으니 줄 번호로 블록을 확인합니다.
[4] 올립니다. 컨테이너는 태그를 nginx:1.31.9(mainline) 또는 nginx:1.30.7(stable)로 바꿔 다시 만듭니다(두 태그 모두 받아 확인). 재시작 때 연결이 끊길 수 있으니 되돌릴 이전 태그(1.31.8 또는 1.30.6)를 적어 두고, 새 이미지에서 nginx -t 가 통과하는지 먼저 봅니다. 패키지로 쓰는 서버는 배포판의 수정판 반영 여부를 확인하지 않았습니다.
[5] 1.31.9 에는 보안 수정 외에 "now header lines without a colon are rejected" 와 "now a request is rejected if the chunked request body contains too much framing overhead" 가 있습니다(1.30.7 에는 없음). 올린 뒤 에러 로그를 며칠 봅니다.
[6] 올린 뒤 docker exec <컨테이너> nginx -v 로 1.31.9·1.30.7 이상인지 다시 봅니다.
확인할 때 헷갈리는 곳
- 권고 목록의 HTTP/3 항목 링크 글자는 "CVE-CVE-2026-121810" 으로 접두가 겹쳐 있습니다. 변경 기록은 CVE-2026-121810 입니다.
- 무한 루프 항목을 목록은 "over TLS 1.3", 변경 기록은 "over SSL" 로 적습니다.
- 이전 형식
listen 8080 http2;도 스크립트가 잡았습니다(폐기 경고). - 1.30 계열은 PROXY v2 취약 범위 밖이라 1.30.7 변경 기록에 그 항목이 없습니다.
Nginx 로그를 브라우저에서 바로 분석 ↗ — 아무것도 올라가지 않습니다.