{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-25746","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.","descriptionLong":"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.","published":"2022-05-06T00:50:15.541Z","updated":"2026-10-20T10:54:33.752607068Z","reserved":"2021-01-21T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"kubernetes","metric":{"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","rating":"high","source":"kubernetes"},"metrics":[{"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","rating":"high","source":"kubernetes"},{"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","rating":"high","source":"liggitt.net"},{"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","rating":"high","source":"NVD"},{"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","rating":"high","source":"OSV"},{"version":"2.0","score":5.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":["Kubernetes ingress-nginx"],"affectedProducts":[{"vendor":"Kubernetes","product":"Kubernetes ingress-nginx","defaultStatus":null,"versions":[{"lessThan":"1.2.0","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-20"],"aliases":[],"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"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01436,"epssPercentile":0.73681,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-25746","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25746","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-25746","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-25746","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["nginx","kubernetes"],"critical":[],"attention":null}