VDB

CVE-2021-25745

CVE-2021-25745 PUBLISHED CVSS 7.6 HIGH

Ingress-nginx path can be pointed to service account token file

Reported by kubernetes · Published May 6, 2022

k8s.io/ingress-nginx is fixed in 1.2.0 (Go Modules)

A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use 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.

Fixed versions

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

PackageEcosystemFixed in
k8s.io/ingress-nginxGo Modules1.2.0
github.com/kubernetes/ingress-nginxGo Modulesv1.2.0, 1.2.0
kubectl-ingress-nginxArch Linux1.2.0-1
nginx-ingress-controllerBitnami1.2.0
nginx-ingress-controllerBitnami1.2.0
ingress-nginxkubernetes1.2.0
Kubernetes ingress-nginxKubernetes1.2.0

Risk scores

CVSS 3.1
7.6
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L

Affected products

VendorProductVersions
KubernetesKubernetes ingress-nginxunspecified
chainguardingress-nginx-controller-fips*
chainguardingress-nginx-controller-fips-1.9*
wolfiingress-nginx-controller*
chainguardingress-nginx-controller*
archkubectl-ingress-nginx0
chainguardingress-nginx-controller-1.9*
github.comkubernetes/ingress-nginx0
KubernetesKubernetes ingress-nginx*
k8s.ioingress-nginx0

Timeline

  • May 6, 2022 CVE Published
  • May 6, 2022 EPSS Score (30 in total, the first dated here)
  • Nov 11, 2024 CVE Updated
  • Mar 18, 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-25745
vulnetix vdb fixes CVE-2021-25745

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-25745/fixes/registry"

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

References

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