CVE-2021-25742: A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can us
CVE-2021-25742 is a high-severity flaw (CVSS 7.6) affecting ingress-nginx, trident. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- Public exploit reference
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.6 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 2.1% (top 19%) |
| CISA exploited list | No |
| Weakness | CWE-20 |
| Published | 2021-10-29 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-25742?
ingress-nginx: upgrade to 0.49.1; trident: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-25742 being exploited?
CVE-2021-25742 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-25742 affect?
CVE-2021-25742 affects ingress-nginx, trident. Severity is high (CVSS 7.6). 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.
How urgent is CVE-2021-25742?
Priority 57/100. High severity; Public exploit reference; On your watchlist
Software pages
nginx vulnerabilities · Kubernetes vulnerabilities
Related CVEs
- CVE-2026-3288 HIGH 8.8 UPGRADE A security issue was discovered in ingress-nginx where the `nginx.ingress.kubernetes.io/rewrite-target` Ingres
- CVE-2023-5044 HIGH 7.6 UPGRADE Code injection via nginx.ingress.kubernetes.io/permanent-redirect annotation.
- CVE-2023-5043 HIGH 7.6 UPGRADE Ingress nginx annotation injection causes arbitrary command execution.
- CVE-2022-4886 HIGH 8.8 UPGRADE Ingress-nginx `path` sanitization can be bypassed with `log_format` directive.
- CVE-2021-25748 HIGH 7.6 UPGRADE A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can us