CVE-2023-5043 Ingress nginx annotation injection causes arbitrary command execution

High 7.6 Published Updated

Attackers can inject malicious annotations into Ingress resources to execute arbitrary commands on the ingress-nginx controller.

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-5043?

CVE-2023-5043 is a high-severity command 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

Ingress nginx annotation injection causes arbitrary command execution.

Weakness: CWE-74, CWE-20

Which versions are affected by CVE-2023-5043?

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

PackageAffectedFixed in
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-5043?

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

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2023-5043 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-5wj4-wffq-3378.

Is CVE-2023-5043 in your software?

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

Check your SBOMs for free