{"id":"CVE-2021-25746","aliases":["EUVD-2021-12630","GHSA-79xv-4hmm-pw72"],"status":"published","title":"Ingress-nginx directive injection via annotations","description":"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.","severity":{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01436,"percentile":0.73333,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-20"],"published":"2022-05-06T00:50:15Z","modified":"2026-10-20T10:54:33Z","products":[{"vendor":"kubernetes","product":"ingress-nginx"},{"vendor":"kubernetes","product":"kubernetes ingress-nginx"}],"references":[{"url":"https://groups.google.com/g/kubernetes-security-announce/c/hv2-SfdqcfQ","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Mitigation","Third Party Advisory","report"]},{"url":"https://github.com/kubernetes/ingress-nginx/issues/8503","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Mitigation","Third Party Advisory","report"]},{"url":"https://security.netapp.com/advisory/ntap-20220609-0006/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25746"},{"url":"https://github.com/advisories/GHSA-79xv-4hmm-pw72"}],"sources":{"cve":[{"id":"CVE-2021-25746","title":"Ingress-nginx directive injection via annotations","description":"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.","status":"published","published":"2022-05-06T00:50:15.541Z","modified":"2024-09-17T03:48:11.881Z","cvss":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","level":"high","assessor":"cna"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:32:59.430294Z"}],"euvd":[{"id":"EUVD-2021-12630","description":"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.","status":"published","published":"2022-05-06T00:50:15Z","modified":"2024-09-17T03:48:11Z","cvss":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","level":"high"}],"updated_at":"2026-11-03T00:28:28.52027Z"}],"ghsa":[{"id":"GHSA-79xv-4hmm-pw72","title":"A security issue was discovered in ingress-nginx where a user that can create or update ingress...","description":"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.","status":"published","published":"2022-05-07T00:00:48Z","modified":"2023-01-27T05:02:24Z","cvss":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:42:03.063922Z"}],"nvd":[{"id":"CVE-2021-25746","description":"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.","status":"published","published":"2022-05-06T01:15:09.18Z","modified":"2026-06-17T03:42:23.623Z","cvss":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","level":"high","assessor":"secondary"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:07:06.029737Z"}],"osv":[{"id":"CVE-2021-25746","description":"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.","status":"published","published":"2022-05-06T01:15:09.18Z","modified":"2026-10-20T10:54:33.752607068Z","cvss":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:18.778776Z"}]}}
