r/programming • • 7d ago

Unauthenticated Remote Code Execution in NGINX: CVE-2026-123633 and CVE-2026-123007

https://www.wiz.io/blog/nginx-http2-rce-vulnerabilities
949 Upvotes

120 comments sorted by

View all comments

34

u/Dunge 7d ago

Oh damn, that will teach me to sit on a deprecated project (kubernetes ingress-nginx) that I can't just upgrade to the latest easily.

15

u/Forward-Outside-9911 7d ago

Traefik ;)

8

u/Dunge 7d ago

Yeah Traefik looks good but my problem is more of the k8s ingress > gateway api change than the reverse proxy software itself.

4

u/Forward-Outside-9911 7d ago

Ah yeah I also need to move to gateway api at some point. But traefik ingress is supported and from what I recall has exact compatibility with the nginx ingress stuff so you can migrate without much effort.

3

u/Dunge 7d ago

I'm using so many custom configurations that no matter what switch I do will require a bit of effort. Using gRPC server streaming which required to bump up a few timeouts, using udp/tcp routing, ip preservation via the proxy protocol, regex url rewrite and base path changes, eks load balancer targets, etc.

Yeah that's my day booked for sure.

1

u/unknowinm 7d ago

1 day? It’s a week. I use envoy gateway api which has the better support than all the other options.
Istio is also based on envoy but for some reason it doesn’t have the same support.
You also need to upgrade CRDS of gateway api and watch out that the UDPRoute moved from alpha to stable (if I remember correctly)

You can also try kong or the other one with agentic something which also have good coverage for the features.

3

u/Zaliron 7d ago

We tried looking for alternatives a few months ago that would allow us to keep using Nginx, and one company offered to maintain a patch for 10k per cluster.

1

u/Dunge 7d ago

nginx gateway fabric is the one to keep using nginx and the gateway api. I just finished my migration successfully. Where's my 10k$?

2

u/roastedferret 7d ago

I just had to deal with this in two K8s clusters. What I ended up doing was migrating to the Gateway API via Envoy. I was stupid and didn't reserve IP addresses, so I had to do a DNS change (easy with terraform, thank God), but it was a fairly involved migration.

1

u/wzrdtales 3d ago

With ingress-nginx retired, we needed a successor for our own clusters that would not mean rewriting and re-testing hundreds of Ingresses. So we built wxingress, a fork of NGINX Ingress Controller that reads ingress-nginx's annotations, ConfigMap keys and IngressClass, and uses its defaults. It also exports the same Prometheus metrics, so existing dashboards keep working.

- Parity test: 97 Ingresses (anonymised production + GitLab/Argo CD/Keycloak/oauth2-proxy charts + one per annotation), 2562 probes, 2511 identical answers. The 51 differences are documented.

- No Lua; endpoints update without a reload through an NGINX module. In our benchmark, about 4x the HTTP req/s of ingress-nginx 1.15 and half the CPU per HTTPS request (script in the repo).

- Hardened image (no shell, no package manager, read-only root fs by default), signed releases with SBOMs.

- A runbook for RKE2's bundled rke2-ingress-nginx, switching node by node. We switched our own production clusters this way (1 to 21 nodes).

- Gateway API is included, so you can move routes later, one at a time. It takes its logic from NGINX Gateway Fabric and passes the conformance suite, but we haven't battle-tested it in our own production yet, so feedback there is very welcome.

- Lua snippets need porting to njs; there is a guide.

- EUPL-1.2, maintained by us long-term since we depend on it ourselves.

Repo: https://github.com/wx-one/wxingress

Migration guide: https://wx-one.github.io/wxingress/migration/ingress-nginx/

If an Ingress behaves differently for you than under ingress-nginx, that's the bug class we care most about. Happy to answer questions.