Live threats

All CVEs / Kubernetes

CVE-2021-25748Kubernetes Ingress-nginx

Medium 6.5

Priority
39
CVSS 3.1
6.5
EPSS
0.7%
probability of exploitation in 30 days · percentile 54
Auth required
Yes
Published
May 24, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ingress-nginx.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go k8s.io/ingress-nginx < 1.2.1 1.2.1 go get k8s.io/ingress-nginx@v1.2.1

Per OSV / GitHub Advisories (GHSA-863x-868h-968x). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
kubernetesingress-nginx< 1.2.1

Official sources

References

Links published by the sources. Open them with care.