Skip to content

fix(config-ui): base the UI image on the maintained nginx 1.31.9 - #9424

Open
alexinthesky wants to merge 1 commit into
apache:mainfrom
alexinthesky:fix/config-ui-nginx-1.31.9
Open

alexinthesky wants to merge 1 commit into
apache:mainfrom
alexinthesky:fix/config-ui-nginx-1.31.9

Conversation

@alexinthesky

Copy link
Copy Markdown

Problem

config-ui/Dockerfile builds on nginxinc/nginx-unprivileged:1.31.7. That tag has two problems:

  1. The repository stopped publishing on 2026-10-19. Its newest build is 1.31.7. Floating tags such as 1.25 or 1.31.7 will never move again, so no rebuild of this image can pick up a newer nginx.
  2. 1.31.7 predates the "nginx2root" fixes. F5 released an out-of-band update on 2026-11-18 for five RCE flaws (CVE-2026-123007, CVE-2026-123633, CVE-2026-121810, CVE-2026-113425, CVE-2026-123634). The fixed versions are 1.30.7 (stable) and 1.31.9 (mainline).

The maintained Docker Official Image, nginx/nginx-unprivileged, already publishes 1.31.9.

Change

One line. The rest of the file already does what the new base needs:

-FROM nginxinc/nginx-unprivileged:1.31.7
+# nginxinc/nginx-unprivileged stopped publishing on 2026-10-19, and its last
+# build (1.31.7) predates the CVE-2026-123007 fixes. Use the maintained
+# official image, which ships 1.31.9.
+FROM nginx/nginx-unprivileged:1.31.9

No other edit is needed, and I checked why:

Requirement Status on nginx/nginx-unprivileged:1.31.9
USER 0 for the root steps image defaults to uid 101, so USER 0 still works
USER 101 at the end the official image's nginx user is also uid 101
apache2-utils (htpasswd, used by nginx.sh when basic auth is on) already installed below by the existing apt-get install -y apache2-utils iproute2
iproute2 (ip -4 addr, used by nginx.sh to pick the listen directive) same line
chgrp -R 0 … && chmod -R g=u … for arbitrary-uid support still applies; the base's /etc/nginx is nginx:root with group write
RUN rm /etc/nginx/conf.d/default.conf runs after USER 0, and /etc/nginx is group-writable regardless

Testing

I rebuilt the runtime half of this Dockerfile (skipping the Node build) on nginx/nginx-unprivileged:1.31.9 for linux/arm64, using the real nginx.sh and default.conf.tpl from the released config-ui image, and with the exact step order of the current file:

nginx -v          -> nginx/1.31.9
id -u             -> 101
GET /  (no auth)  -> 401   (basic auth served from a generated .htpasswd)
GET /  (with auth)-> 200
logs              -> no emerg/error

There is no behavioural change beyond the nginx version: same assets, same config template, same entrypoint, same uid.

Notes

  • 1.31.9 (mainline) rather than 1.30.7 (stable) keeps this a patch bump from the current 1.31.7.
  • After this lands and ships in a release, downstreams that pinned a derived image for the CVE can drop it.
  • Happy to sign the ICLA if the bot asks.

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.

1 participant