# CVE-2021-25742: Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-10-29 · Modified: 2024-09-16
- Aliases: openSUSE-SU-2024:11726-1
- Record: https://cvemate.com/vulnerability/CVE-2021-25742 · JSON: https://cvemate.com/vulnerability/CVE-2021-25742/json

## Description

```text
A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use the custom snippets feature to obtain 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: 2.106%, percentile 82.379%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- kubernetes ingress-nginx: \< 0.49.1 \| 1.0.0
- kubernetes kubernetes ingress-nginx: ≥ unspecified, ≤ 0.49.0 \| ≥ unspecified, ≤ 1.0.0
- netapp trident: na
- opensuse rke&distro=openSUSE Tumbleweed (openSUSE): \< 1.3.3-1.1

## References

- <https://groups.google.com/g/kubernetes-security-announce/c/mT4JJxi9tQY>
- <https://github.com/kubernetes/ingress-nginx/issues/7837>
- <https://security.netapp.com/advisory/ntap-20211203-0001/>
- <https://www.suse.com/security/cve/CVE-2021-25742>

---

Data as of 2026-12-05T05:18:12.203Z. 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
