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

Published Oct 29, 2021
·
Updated

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.

Affected Software

3 affected components
Kubernetes ingress-nginx<0.49.1
Kubernetes ingress-nginx=1.0.0
NetApp Trident

Event History

Oct 29, 2021
CVE Published
via MITRE·04:05 AM
Data Sourced
via MITRE·04:05 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-25742?

CVE-2021-25742 is a security issue 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.

2

What software is affected by CVE-2021-25742?

Kubernetes ingress-nginx versions up to 0.49.1 and version 1.0.0, as well as Netapp Trident, are affected by CVE-2021-25742.

3

What is the severity of CVE-2021-25742?

CVE-2021-25742 has a severity rating of 7.1 (high).

4

How can an attacker exploit CVE-2021-25742?

An attacker with the ability to create or update ingress objects can exploit CVE-2021-25742 by using the custom snippets feature to gain access to all secrets in the cluster.

5

Are there any references for CVE-2021-25742?

Yes, you can find more information about CVE-2021-25742 in the following references: [Link 1](https://github.com/kubernetes/ingress-nginx/issues/7837), [Link 2](https://groups.google.com/g/kubernetes-security-announce/c/mT4JJxi9tQY), [Link 3](https://security.netapp.com/advisory/ntap-20211203-0001/).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203