Ingress-nginx path can be pointed to service account token file
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Kubernetes | Kubernetes ingress-nginx | before 1.2.0 | 1.2.0 | Patch available | CNA |
| — | k8s.io/ingress-nginx (Go) | before 1.2.0 | 1.2.0 | Patch available | GHSA-pvmg-xgmx-9mxh |
- Kubernetes ingress-nginx VendorKubernetes Affected before 1.2.0 Fixed in 1.2.0 Patch available CNA
- k8s.io/ingress-nginx (Go) Vendor— Affected before 1.2.0 Fixed in 1.2.0 Patch available GHSA-pvmg-xgmx-9mxh
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:kubernetes:ingress-nginx:*:*:*:*:*:*:*:* | before 1.2.0 | Vulnerable | Kubernetes |
- cpe:2.3:a:kubernetes:ingress-nginx:*:*:*:*:*:*:*:* Versions before 1.2.0 Vulnerable ·Kubernetes
Remediation
- Fix · CNA Kubernetes ingress-nginx (Kubernetes) Fixed in 1.2.0
- Fix · GHSA-pvmg-xgmx-9mxh k8s.io/ingress-nginx (Go) Fixed in 1.2.0 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Kubernetes ingress-nginx 1.2.0
2 records Highest priority Priority LOW 2 LOW
Other records, highest priority first
- TI-2021-07836 Ingress-nginx directive injection via annotationsPriority LOW 36
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 1 product
- Red Hat Advanced Cluster Management for Kubernetes 2
Timeline
- 2026-10-02 Threatist record created from CVE-2021-25745
- 2026-10-03 Alias added: GHSA-pvmg-xgmx-9mxh
References
Advisory 4
More Kubernetes Ingress-nginx vulnerabilities
- TI-2026-02839 ingress-nginx rewrite-target nginx configuration injection CVSS 3.1HIGH 8.8
- TI-2023-04644 Improper input validation in Kubernetes ingress-nginx CVSS 3.1HIGH 8.8
- TI-2023-04643 Improper input validation in Kubernetes ingress-nginx CVSS 3.1HIGH 8.8
- TI-2022-04479 Improper input validation in Kubernetes ingress-nginx CVSS 3.1HIGH 8.8
- TI-2021-07833 Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces CVSS 3.1HIGH 7.6
- TI-2021-07836 Ingress-nginx directive injection via annotations CVSS 3.1HIGH 7.6
Sources
- CVE-2021-25745 · CVE Program
- CVE-2021-25745 · NVD
- FIRST EPSS
- GHSA-pvmg-xgmx-9mxh · GitHub Advisory Database · CC BY 4.0
- CVE-2021-25745 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences