CVE-2023-5044 Code injection via nginx.ingress.kubernetes.io/permanent-redirect annotation

High 7.6 Published Updated

Attackers can execute arbitrary code by injecting malicious payloads into the permanent-redirect annotation of Kubernetes ingress resources.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-5044?

CVE-2023-5044 is a high-severity code injection vulnerability in Kubernetes ingress-nginx, published on 25 Oct 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Code injection via nginx.ingress.kubernetes.io/permanent-redirect annotation.

Weakness: CWE-94, CWE-20

Which versions are affected by CVE-2023-5044?

3 open source packages ship an affected version, including k8s.io/ingress-nginx. It affects 1 product.

PackageAffectedFixed in
k8s.io/ingress-nginx GoAll versionsNone
k8s.io/ingress-nginx GoAll versions1.9.0
k8s.io/ingress-nginx GoAll versions1.9.0

Products include Kubernetes Ingress-Nginx.

How do I fix CVE-2023-5044?

Upgrade k8s.io/ingress-nginx to 1.9.0 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2023-5044 being exploited?

There is no known exploitation of CVE-2023-5044 in the wild and no public exploit code.

Public exploit code: 3 proofs of concept on GitHub.

Sources

Also known as GHSA-fp9f-44c2-cw27, GO-2024-2428, MINI-2332-qhrh-8frv, MINI-37j5-588g-r59j, MINI-387g-72cj-rcp8, MINI-3p33-v4vv-crr3 and 6 more.

Is CVE-2023-5044 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free