CVE-2021-25746
published high CVSS 3.1 · 7.6Ingress-nginx directive injection via annotations
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Kubernetes | — | Kubernetes ingress-nginxunspecified to < 1.2.0 | Affected | Not stated | kubernetes |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.6 / 10
- Severity
- high
- Provider
- kubernetes · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Kubernetes | Kubernetes ingress-nginx | unspecified to < 1.2.0 (affected · custom) | kubernetes · cna |
Weaknesses
1- CWE-20 CWE-20: Improper Input Validation
References
3Provider assertions
2kubernetes · cna
Ingress-nginx directive injection via annotations
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 16c33f4519043bf947aa11eeb026bf080653981b5a0e466cb985ef27dfbb3f43
- Ingested
- 23 Sep 2026, 07:53:18 UTC
- Source record
- Official CVE record