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

MonitorSensitive data exposure over the network by a logged-in user.
6.5MEDIUM

CVE-2022-4886

Key Information:

Vendor

Kubernetes

CVE ID
CVE ID:
CVE-2022-4886
Vendor
CVE Published:
25 October 2023
Fixed in
Fixed in:
1.8.0

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Partly: Works over the network, but needs a login
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Monitor

Low risk for most. Patch in your normal cycle.

What to do

1Update to a fixed version
ingress-nginx 0 to below 1.8.0 is vulnerable
Install ingress-nginx 1.8.0 or later
Read the vendor advisory β†—
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach ingress-nginx. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Monitor"
  • Its CVSS severity is medium (6.5).

What is CVE-2022-4886?

The Ingress-nginx component of Kubernetes has a vulnerability related to its path sanitization process. This flaw allows malicious actors to bypass the intended sanitization using the 'log_format' directive, potentially leading to unauthorized access or manipulation of request data. Users should review their configurations and apply any necessary patches to mitigate the risks associated with this vulnerability.

References

Denial of Service in ingress-nginx

CVE-2026-116472
KubernetesIngress-nginxπŸ˜„2.7LOW

Path Traversal Vulnerability in Kubernetes CSI Driver for NFS

CVE-2026-3864
KubernetesCsi Driver For Nfs6.5MEDIUM

Code Injection in Ingress-nginx

CVE-2026-4342
KubernetesIngress-nginxπŸ”₯πŸ˜„8.8HIGH
View more Kubernetes vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

CVSS V3.1

Score:
6.5
Severity:
MEDIUM
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Credit

Ginoah, working with the DEVCORE Internship Program
.