VDB

CVE-2021-25748

CVE-2021-25748 PUBLISHED CVSS 6.5 MEDIUM

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

Record from NVD · Published May 24, 2023

github.com/kubernetes/ingress-nginx is fixed in v1.2.1 and 1.2.1 (Go Modules)

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.

EPSS 0.69% · 52.9th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
github.com/kubernetes/ingress-nginxGo Modulesv1.2.1, 1.2.1
k8s.io/ingress-nginxGo Modules1.2.1
nginx-ingress-controllerBitnami1.2.1
Kubernetes ingress-nginxKubernetes1.2.1
nginx-ingress-controllerBitnami1.2.1
ingress-nginxkubernetes1.2.1

Risk scores

CVSS 3.1
6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS Score
0.69%
52.9th percentile

Affected products

VendorProductVersions
kubernetesingress-nginx0

Timeline

  • May 24, 2023 CVE Published
  • May 25, 2023 EPSS Score (30 in total, the first dated here)
  • Mar 7, 2026 PoC Published
  • Mar 23, 2026 Security Advisory
  • Aug 8, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-25748
vulnetix vdb fixes CVE-2021-25748

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-25748/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›