CVE-2022-4886 Ingress-nginx `path` sanitization can be bypassed with `log_format` directive

High 8.8 Published Updated

Attackers can bypass path sanitization in ingress-nginx using the log_format directive, potentially leading to security bypasses.

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-2022-4886?

CVE-2022-4886 is a high-severity 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 `path` sanitization can be bypassed with `log_format` directive.

Weakness: CWE-20

Which versions are affected by CVE-2022-4886?

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.8.0
k8s.io/ingress-nginx GoAll versions1.8.0

Products include Kubernetes Ingress-Nginx.

How do I fix CVE-2022-4886?

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

Is CVE-2022-4886 being exploited?

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

Sources

Also known as GHSA-gvrm-w2f9-f77q.

Is CVE-2022-4886 in your software?

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

Check your SBOMs for free