{"api_version":"1","generated_at":"2026-04-23T02:36:36+00:00","cve":"CVE-2021-25742","urls":{"html":"https://cve.report/CVE-2021-25742","api":"https://cve.report/api/cve/CVE-2021-25742.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-25742","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-25742"},"summary":{"title":"CVE-2021-25742","description":"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.","state":"PUBLIC","assigner":"security@kubernetes.io","published_at":"2021-10-29 04:15:00","updated_at":"2021-12-15 14:06:00"},"problem_types":["NVD-CWE-noinfo"],"metrics":[],"references":[{"url":"https://security.netapp.com/advisory/ntap-20211203-0001/","name":"https://security.netapp.com/advisory/ntap-20211203-0001/","refsource":"CONFIRM","tags":[],"title":"CVE-2021-25742 Kubernetes Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/kubernetes/ingress-nginx/issues/7837","name":"N/A","refsource":"CONFIRM","tags":[],"title":"CVE-2021-25742: Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces · Issue #7837 · kubernetes/ingress-nginx · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://groups.google.com/g/kubernetes-security-announce/c/mT4JJxi9tQY","name":"N/A","refsource":"MLIST","tags":[],"title":"[Security Advisory] CVE-2021-25742: Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-25742","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25742","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Mitch Hulscher","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"25742","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"kubernetes","cpe5":"ingress-nginx","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"25742","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"kubernetes","cpe5":"ingress-nginx","cpe6":"1.0.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"25742","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"netapp","cpe5":"trident","cpe6":"-","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@kubernetes.io","DATE_PUBLIC":"2021-10-21T16:15:00.000Z","ID":"CVE-2021-25742","STATE":"PUBLIC","TITLE":"Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Kubernetes ingress-nginx","version":{"version_data":[{"version_affected":"<=","version_value":"0.49.0"},{"version_affected":">?","version_value":"0.49.0"},{"version_affected":"<=","version_value":"1.0.0"},{"version_affected":">?","version_value":"1.0.0"}]}}]},"vendor_name":"Kubernetes"}]}},"credit":[{"lang":"eng","value":"Mitch Hulscher"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.6,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-20: Improper Input Validation"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://groups.google.com/g/kubernetes-security-announce/c/mT4JJxi9tQY","name":"https://groups.google.com/g/kubernetes-security-announce/c/mT4JJxi9tQY"},{"refsource":"MISC","url":"https://github.com/kubernetes/ingress-nginx/issues/7837","name":"https://github.com/kubernetes/ingress-nginx/issues/7837"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20211203-0001/","url":"https://security.netapp.com/advisory/ntap-20211203-0001/"}]},"source":{"defect":["https://github.com/kubernetes/ingress-nginx/issues/7837"],"discovery":"EXTERNAL"},"work_around":[{"lang":"eng","value":"This can be mitigated by disallowing snippet annotations on a supported version. Refer to https://github.com/kubernetes/ingress-nginx/issues/7837 for instructions."}]},"nvd":{"publishedDate":"2021-10-29 04:15:00","lastModifiedDate":"2021-12-15 14:06:00","problem_types":["NVD-CWE-noinfo"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":7.1,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":4.2},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:P/I:P/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":5.5},"severity":"MEDIUM","exploitabilityScore":8,"impactScore":4.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:kubernetes:ingress-nginx:1.0.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:kubernetes:ingress-nginx:*:*:*:*:*:*:*:*","versionEndExcluding":"0.49.1","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:netapp:trident:-:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"25742","Ordinal":"200568","Title":"CVE-2021-25742","CVE":"CVE-2021-25742","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"25742","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"25742","Ordinal":"2","NoteData":"2021-10-29","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"25742","Ordinal":"3","NoteData":"2021-12-03","Type":"Other","Title":"Modified"}]}}}