CVE-2021-25748

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

Published May 24, 2023 CVSS 3.1 · 7.6 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2023-1500 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.
Github GHSA Github GHSA GHSA-863x-868h-968x Ingress-nginx `path` sanitization can be bypassed with newline character
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
kubernetes
Published
Updated
Jan 16, 2025, 9:23 PM
Reserved
Jan 21, 2021, 12:00 AM
Status
Modified
Published
May 24, 2023, 5:15 PM
Modified
Jun 17, 2026, 3:42 AM