fix: upgrade nginx base image to fix CVE-2026-42945 (CVSS 9.2 critical RCE) - #1796
fix: upgrade nginx base image to fix CVE-2026-42945 (CVSS 9.2 critical RCE)#1796zethis wants to merge 1 commit into
Conversation
Switch from nginx:stable-alpine (1.26.x, vulnerable) to nginx:1.31-alpine which includes the fix for CVE-2026-42945, a heap buffer overflow in ngx_http_rewrite_module allowing unauthenticated RCE. Affected: nginx 0.6.27 – 1.30.0 Fixed in: nginx 1.30.1, 1.31.0 Ref: https://nginx.org/en/security_advisories.html
|
|
The E2E test failure is unrelated to this change. The error is: These are Playwright browser dependencies that don't exist under their old names on Ubuntu Noble (24.04). The same failure is reproducible on other unrelated PRs (e.g. Our change is a single-line Dockerfile bump with no effect on tests. |
|
Hi @zethis if you are interested in an up to date version of it-tools, with many improvements, new tools, and bug fixes, as this repo is almost no more maintained, I made a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools) |
Cherry-picked from upstream PR CorentinTh#1796 (zethis): - Switch from nginx:stable-alpine (vulnerable 1.26.x) to nginx:1.31-alpine - Fixes heap buffer overflow in ngx_http_rewrite_module allowing unauthenticated RCE - Affected: nginx 0.6.27 - 1.30.0, fixed in 1.30.1/1.31.0
Cherry-picked from upstream PR CorentinTh#1499 (ombre8): - Switch to nginxinc/nginx-unprivileged (runs as non-root user) - Listen on port 8080 instead of 80 - Combined with PR CorentinTh#1796: pinned to 1.31-alpine for CVE-2026-42945 fix - Update README docker run examples
Cherry-picked from upstream PR CorentinTh#1796 (zethis): - Switch from nginx:stable-alpine (vulnerable 1.26.x) to nginx:1.31-alpine - Fixes heap buffer overflow in ngx_http_rewrite_module allowing unauthenticated RCE - Affected: nginx 0.6.27 - 1.30.0, fixed in 1.30.1/1.31.0
Cherry-picked from upstream PR CorentinTh#1499 (ombre8): - Switch to nginxinc/nginx-unprivileged (runs as non-root user) - Listen on port 8080 instead of 80 - Combined with PR CorentinTh#1796: pinned to 1.31-alpine for CVE-2026-42945 fix - Update README docker run examples
Cherry-picked from upstream PR CorentinTh#1796 (zethis): - Switch from nginx:stable-alpine (vulnerable 1.26.x) to nginx:1.31-alpine - Fixes heap buffer overflow in ngx_http_rewrite_module allowing unauthenticated RCE - Affected: nginx 0.6.27 - 1.30.0, fixed in 1.30.1/1.31.0
Cherry-picked from upstream PR CorentinTh#1499 (ombre8): - Switch to nginxinc/nginx-unprivileged (runs as non-root user) - Listen on port 8080 instead of 80 - Combined with PR CorentinTh#1796: pinned to 1.31-alpine for CVE-2026-42945 fix - Update README docker run examples



What
Switches the production stage base image from
nginx:stable-alpinetonginx:1.31-alpine.Why
CVE-2026-42945 — Heap-based Buffer Overflow in
ngx_http_rewrite_modulenginx:stable-alpineships 1.26.x)Change
nginx:stable-alpinecurrently resolves to nginx 1.26.x which is vulnerable. Pinning to1.31-alpineensures the patched version is used. This can be reverted tonginx:stable-alpineonce the stable branch is updated upstream by the nginx team.