{"id":"CVE-2021-25746","aliases":["CVE-2021-25746"],"related":[],"kind":"vulnerability","state":"published","title":"Ingress-nginx directive injection via annotations","summary":"A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use .metadata.annotations in an Ingress object (in the networking.k8s.io or extensions API group) to obtain the credentials of the ingress-nginx controller. In the default configuration, that credential has access to all secrets in the cluster.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use .metadata.annotations in an Ingress object (in the networking.k8s.io or extensions API group) to obtain the credentials of the ingress-nginx controller. In the default configuration, that credential has access to all secrets in the cluster.","source":"cvelist"},{"lang":"es","text":"Se ha detectado un problema de seguridad en ingress-nginx en el que un usuario que puede crear o actualizar objetos ingress puede usar .metadata.annotations en un objeto Ingress (en el grupo networking.k8s.io o extensions API) para obtener las credenciales del controlador ingress-nginx. En la configuración por defecto, esa credencial presenta acceso a todos los secretos del clúster","source":"nvd"}],"published":"2022-05-06T00:50:15.541Z","modified":"2026-06-17T03:42:23.623Z","severity":{"scorer":"kubernetes","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"kubernetes","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","score":7.6,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.2.0","status":"affected"}],"vendor":"Kubernetes","product":"Kubernetes ingress-nginx","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.2.0"}],"vendor":"kubernetes","product":"ingress-nginx","cpe":"cpe:2.3:a:kubernetes:ingress-nginx:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://groups.google.com/g/kubernetes-security-announce/c/hv2-SfdqcfQ","tags":["issue-tracking","mitigation","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/kubernetes/ingress-nginx/issues/8503","tags":["issue-tracking","mitigation","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20220609-0006/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["Anthony Weems","jeffrey&oliver"],"assigner":"kubernetes","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-25746","url":"https://www.cve.org/CVERecord?id=CVE-2021-25746","licence":"CVE Terms of Use","modified":"2024-09-17T03:48:11.881Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-25746","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25746","licence":"Public domain","modified":"2026-06-17T03:42:23.623Z"}],"updatedAt":"2026-11-25T22:58:07.455Z","epss":{"score":0.01436,"percentile":0.73896,"date":"2026-12-01T12:00:22.000Z"}}