Ingress-nginx directive injection via annotations
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use .metadata.annotations in 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 |
- Kubernetes ingress-nginx VendorKubernetes Affected before 1.2.0 Fixed in 1.2.0 Patch available CNA
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
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-07835 Ingress-nginx path can be pointed to service account token filePriority LOW 38
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-25746
- 2026-10-03 Alias added: GHSA-79xv-4hmm-pw72
References
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-07835 Ingress-nginx path can be pointed to service account token file CVSS 3.1HIGH 8.1
- TI-2021-07833 Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces CVSS 3.1HIGH 7.6
Sources
- CVE-2021-25746 · CVE Program
- CVE-2021-25746 · NVD
- FIRST EPSS
- GHSA-79xv-4hmm-pw72 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-25746 · 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