{"id":"CVE-2021-25742","state":"PUBLISHED","title":"Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces","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.","publishedAt":"2021-10-29T04:05:10.713Z","updatedAt":"2024-09-16T23:06:12.392Z","severity":{"score":7.6,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","source":"kubernetes"},"assigner":"kubernetes","products":["Kubernetes Kubernetes ingress-nginx"],"affected":[{"vendor":"Kubernetes","product":"Kubernetes ingress-nginx","versions":[{"version":"unspecified","status":"affected","lessThanOrEqual":"0.49.0","versionType":"custom"},{"version":"next of 0.49.0","status":"unknown","lessThan":"unspecified","versionType":"custom"},{"version":"unspecified","status":"affected","lessThanOrEqual":"1.0.0","versionType":"custom"},{"version":"next of 1.0.0","status":"unknown","lessThan":"unspecified","versionType":"custom"}]}],"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/"],"weaknesses":["CWE-20"],"ingestedAt":"2026-10-29T19:48:10.461Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/25xxx/CVE-2021-25742.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-25742","state":"PUBLISHED","datePublished":"2021-10-29T04:05:10.713Z","dateUpdated":"2024-09-16T23:06:12.392Z","assignerShortName":"kubernetes","assignerOrgId":"a6081bf6-c852-4425-ad4f-a67919267565","dateReserved":"2021-01-21T00:00:00.000Z"},"containers":{"cna":{"title":"Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces","descriptions":[{"lang":"en","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."}],"affected":[{"vendor":"Kubernetes","product":"Kubernetes ingress-nginx","versions":[{"version":"unspecified","status":"affected","lessThanOrEqual":"0.49.0","versionType":"custom"},{"version":"next of 0.49.0","status":"unknown","lessThan":"unspecified","versionType":"custom"},{"version":"unspecified","status":"affected","lessThanOrEqual":"1.0.0","versionType":"custom"},{"version":"next of 1.0.0","status":"unknown","lessThan":"unspecified","versionType":"custom"}]}],"references":[{"url":"https://groups.google.com/g/kubernetes-security-announce/c/mT4JJxi9tQY","tags":["x_refsource_MISC"]},{"url":"https://github.com/kubernetes/ingress-nginx/issues/7837","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20211203-0001/","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","description":"CWE-20: Improper Input Validation","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"kubernetes","dateUpdated":"2022-05-06T00:50:12.000Z","orgId":"a6081bf6-c852-4425-ad4f-a67919267565"},"credits":[{"lang":"en","value":"Mitch Hulscher"}],"datePublic":"2021-10-21T00:00:00.000Z","source":{"defect":["https://github.com/kubernetes/ingress-nginx/issues/7837"],"discovery":"EXTERNAL"},"workarounds":[{"lang":"en","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."}],"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"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":[{"name":"https://groups.google.com/g/kubernetes-security-announce/c/mT4JJxi9tQY","refsource":"MISC","url":"https://groups.google.com/g/kubernetes-security-announce/c/mT4JJxi9tQY"},{"name":"https://github.com/kubernetes/ingress-nginx/issues/7837","refsource":"MISC","url":"https://github.com/kubernetes/ingress-nginx/issues/7837"},{"name":"https://security.netapp.com/advisory/ntap-20211203-0001/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20211203-0001/"}]},"source":{"defect":["https://github.com/kubernetes/ingress-nginx/issues/7837"],"discovery":"EXTERNAL"},"work_around":[{"lang":"en","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."}]}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://groups.google.com/g/kubernetes-security-announce/c/mT4JJxi9tQY","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/kubernetes/ingress-nginx/issues/7837","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20211203-0001/","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T20:11:27.558Z"}}]}}}