# CVE-2021-25746: Ingress-nginx directive injection via annotations

- Priority: **Routine**
- Reason: Not severe (CVSS 7.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-05-06 · Modified: 2024-09-17
- Record: https://cvemate.com/vulnerability/CVE-2021-25746 · JSON: https://cvemate.com/vulnerability/CVE-2021-25746/json

## Description

```text
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.
```

## Signals

- CVSS: 7.6 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
- EPSS: 1.436%, percentile 74.034%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- kubernetes ingress-nginx: \< 1.2.0
- kubernetes kubernetes ingress-nginx: ≥ unspecified, \< 1.2.0

## References

- <https://groups.google.com/g/kubernetes-security-announce/c/hv2-SfdqcfQ>
- <https://github.com/kubernetes/ingress-nginx/issues/8503>
- <https://security.netapp.com/advisory/ntap-20220609-0006/>

---

Data as of 2026-12-05T11:16:11.181Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
