Skip to content

fix(nginx): explicitly disable HTTP/2 (CVE-2026-123633, CVE-2026-123007) - #497

Open
quentin-laplanche-docker wants to merge 1 commit into
docker:masterfrom
quentin-laplanche-docker:fix/nginx-http2-off-cve-2026-123007
Open

quentin-laplanche-docker wants to merge 1 commit into
docker:masterfrom
quentin-laplanche-docker:fix/nginx-http2-off-cve-2026-123007

Conversation

@quentin-laplanche-docker

Copy link
Copy Markdown
Contributor

Summary

Temporary mitigation for CVE-2026-123633 / CVE-2026-123007, two NGINX HTTP/2 RCEs that let an unauthenticated attacker execute code. Fixed in nginx 1.30.7 / 1.31.9, and no patched image has been published yet.

HTTP/2 is already off here because no listen line sets http2. This makes it explicit, so nobody turns it back on before the image is upgraded. Remove the line once on nginx >= 1.30.7.

The image uses the stock nginx:alpine config, so this adds an http-level conf.d snippet:

 FROM --platform=$TARGETPLATFORM nginx:alpine
 COPY --from=app-zip-creator /app.zip /usr/share/nginx/html/assets/app.zip
 COPY --from=build /app/site /usr/share/nginx/html
+COPY http2-off.conf /etc/nginx/conf.d/http2-off.conf
# http2-off.conf
http2 off;

Evidence

Passes nginx -t on nginx 1.26.3, with template variables and certs filled in for the test:

getting-started     OK  http2_off=1   (snippet included in http context, like /etc/nginx/conf.d/*.conf)

Merge Danger

Door: two-way

Blast Radius: published docker/getting-started image. Serving is unchanged because HTTP/2 was already off with the default config. Remove the snippet once nginx:alpine ships 1.30.7 / 1.31.9.

Temporary mitigation for CVE-2026-123633 and CVE-2026-123007 (NGINX
HTTP/2 RCE) until a fixed nginx (1.30.7 / 1.31.9) is available.

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants