CVE-2021-25748

HIGH

ingress-nginx < 1.2.1 - Authenticated Credential Exposure via Ingress Path Sanitization Bypass

Title source: llm
STIX 2.1

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.

References (2)

Core 2
Core References
Issue Tracking, Mitigation, Vendor Advisory
https://github.com/kubernetes/ingress-nginx/issues/8686

Scores

CVSS v3 7.6
EPSS 0.0069
EPSS Percentile 48.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-20
Status published
Products (2)
k8s.io/ingress-nginx 0 - 1.2.1Go
kubernetes/ingress-nginx < 1.2.1
Published May 24, 2023
Tracked Since Feb 18, 2026