CVE-2021-25748

Ingress-nginx `path` sanitization can be bypassed with newline character

State
Published
Severity
7.6 High
Published
May 24, 2023
Updated
Jan 16, 2025
Reserved
Jan 21, 2021

Read the record on cve.org

Description

A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use a newline character to bypass the sanitization of the `spec.rules[].http.paths[].path` field of an Ingress object (in the `networking.k8s.io` or `extensions` API group) to obtain the credentials of the ingress-nginx controller. In the default configuration, that credential has access to all secrets in the cluster.

Scores

CVSSScoreVectorSource
3.17.6 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:Lkubernetes

Weaknesses

  • CWE-20 Improper Input Validation

Affected Products

ProductVersions
Kubernetes ingress-nginxKubernetes
  • before 1.2.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.