{"id":"CVE-2021-25745","aliases":["GHSA-pvmg-xgmx-9mxh","openSUSE-SU-2024:12031-1"],"summary":"Ingress-nginx path can be pointed to service account token file","published_at":"2022-04-22T16:00:00Z","modified_at":"2026-08-07T08:12:06.631396Z","products":[{"slug":"ingress-nginx","name":"Ingress-NGINX","category":"kubernetes-container"}],"rating":{"severity":"high","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"SUSE","rating":"important"},{"source":"SUSE","rating":"moderate"},{"source":"Red Hat","rating":"Important"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.011819999665021896,"percentile":0.684149980545044,"date":"2026-11-19T00:00:00Z"},"priority":9.1,"details":"A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use the spec.rules[].http.paths[].path field of 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.","affected_stack":[{"ecosystem":"Go","package":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.0"}]}],"fixed":["1.2.0"],"provider":"osv","source":"GHSA-pvmg-xgmx-9mxh","relation":"self"},{"ecosystem":"NVD","package":"kubernetes:ingress-nginx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0"}]}],"fixed":["1.2.0"],"provider":"nvd","source":"CVE-2021-25745","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"Kubernetes/Kubernetes ingress-nginx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0"}]}],"fixed":["1.2.0"],"provider":"cvelistv5","source":"CVE-2021-25745","relation":"self"},{"ecosystem":"openSUSE:Tumbleweed","package":"rke","purl":"pkg:rpm/opensuse/rke&distro=openSUSE%20Tumbleweed","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.10-1.1"}]}],"fixed":["1.3.10-1.1"],"provider":"osv","source":"openSUSE-SU-2024:12031-1","relation":"self"}],"product_status":[{"vendor":"SUSE","product":"openSUSE Tumbleweed","cpe":"cpe:/o:opensuse:tumbleweed","status":"fixed","packages":["rke"],"package_count":1,"fixed":["rke-1.3.10-1.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25745"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["rhacm2/management-ingress-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-25745"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2024-1591","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-1591","license":"TLP:CLEAR, mirroring permitted","published_at":"2024-07-10T22:00:00Z","modified_at":"2024-11-11T23:00:00Z","summary":"Juniper JUNOS: Mehrere Schwachstellen","details":"Ein Angreifer kann mehrere Schwachstellen in Juniper JUNOS ausnutzen, um einen Denial of Service  zu verursachen, Informationen offenzulegen, Privilegien zu erweitern und Sicherheitsmechanismen inklusive zu umgehen.\n\nJUNOS ist das \"Juniper Network Operating System\", das in Juniper Appliances verwendet wird.","severity":[{"type":"BSI","score":"mittel","source":"WID-SEC-W-2024-1591"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-1591.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-1591"},{"type":"WEB","url":"https://supportportal.juniper.net/s/global-search/%40uri?language=en_US#sort=%40sfcec_community_publish_date_formula__c%20descending&numberOfResults=100&f:ctype=%5BSecurity%20Advisories%5D"}]},{"provider":"cvelistv5","source_id":"CVE-2021-25745","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2021-25745","license":"CC-BY-4.0","published_at":"2022-05-06T00:50:14.042Z","modified_at":"2024-09-16T18:24:11.711Z","summary":"Ingress-nginx path can be pointed to service account token file","details":"A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use the spec.rules[].http.paths[].path field of 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":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","source":"CVE-2021-25745"}],"affected":[{"ecosystem":"CVE","package":"Kubernetes/Kubernetes ingress-nginx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0"}]}],"fixed":["1.2.0"],"provider":"cvelistv5","source":"CVE-2021-25745","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://groups.google.com/g/kubernetes-security-announce/c/7vQrpDZeBlc"},{"type":"WEB","url":"https://github.com/kubernetes/ingress-nginx/issues/8502"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220609-0006/"}]},{"provider":"csaf-suse","source_id":"CVE-2021-25745","relation":"self","url":"https://www.suse.com/security/cve/CVE-2021-25745/","license":"TLP:CLEAR, mirroring permitted","published_at":"2023-02-15T03:44:56Z","modified_at":"2025-03-15T09:06:17Z","summary":"SUSE CVE CVE-2021-25745","details":"SUSE CVE-2021-25745\n\nA security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use the spec.rules[].http.paths[].path field of 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":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","source":"CVE-2021-25745"},{"type":"SUSE","score":"important","source":"CVE-2021-25745"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"openSUSE Tumbleweed","cpe":"cpe:/o:opensuse:tumbleweed","status":"fixed","packages":["rke"],"package_count":1,"fixed":["rke-1.3.10-1.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25745"}],"references":[{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2021-25745"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1199374"}]},{"provider":"csaf-suse","source_id":"openSUSE-SU-2024:12031-1","relation":"self","url":"https://www.suse.com/security/cve/CVE-2021-25745/","license":"TLP:CLEAR, mirroring permitted","published_at":"2024-06-15T00:00:00Z","modified_at":"2024-06-15T00:00:00Z","summary":"rke-1.3.10-1.1 on GA media","details":"rke-1.3.10-1.1 on GA media\n\nThese are all security issues fixed in the rke-1.3.10-1.1 package on the GA media of openSUSE Tumbleweed.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","source":"openSUSE-SU-2024:12031-1"},{"type":"SUSE","score":"moderate","source":"openSUSE-SU-2024:12031-1"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://ftp.suse.com/pub/projects/security/csaf/2024/opensuse-su-2024_12031-1.json"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2021-25745/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2021-25745"},{"type":"WEB","url":"https://bugzilla.suse.com/1199374"}]},{"provider":"kubernetes-cve-feed","source_id":"CVE-2021-25745","relation":"self","url":"https://github.com/kubernetes/kubernetes/issues/126812","license":"CC-BY-4.0","published_at":"2022-04-22T16:18:21Z","summary":"Ingress-nginx `path` can be pointed to service account token file","details":"### Issue Details\r\nA security issue was discovered in [ingress-nginx](https://github.com/kubernetes/ingress-nginx) where a user that can create or update ingress objects can use the `spec.rules[].http.paths[].path` field of 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.\r\n\r\nThis issue has been rated **High** ([CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L)), and assigned **CVE-2021-25745**.\r\n\r\n### Affected Components and Configurations\r\nThis bug affects ingress-nginx. If you do not have ingress-nginx installed on your cluster, you are not affected. You can check this by running `kubectl get po -n ingress-nginx`.\r\n\r\nMultitenant environments where non-admin users have permissions to create Ingress objects are most affected by this issue.\r\n\r\n#### Affected Versions\r\n- <v1.2.0\r\n\r\n#### Fixed Versions\r\n- v1.2.0-beta.0\r\n- v1.2.0\r\n\r\n### Mitigation\r\nIf you are unable to roll out the fix, this vulnerability can be mitigated by implementing an admission policy that restricts the `spec.rules[].http.paths[].path` field on the `networking.k8s.io/Ingress` resource to known safe characters (see the newly added [rules](https://github.com/kubernetes/ingress-nginx/blame/main/internal/ingress/inspector/rules.go), or the suggested value for [annotation-value-word-blocklist](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#annotation-value-word-blocklist)).\r\n\r\n### Detection\r\nIf you find evidence that this vulnerability has been exploited, please contact [security@kubernetes.io](mailto:security@kubernetes.io)\r\nAdditional Details\r\nSee ingress-nginx Issue [#8502](https://github.com/kubernetes/kubernetes/issues/126812) for more details.\r\n\r\n### Acknowledgements\r\nThis vulnerability was reported by Gafnit Amiga.\r\n\r\nThank You,\r\nCJ Cullen on behalf of the Kubernetes Security Response Committee","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","source":"CVE-2021-25745"}],"affected":[],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/kubernetes/kubernetes/issues/126812"},{"type":"ADVISORY","url":"https://www.cve.org/cverecord?id=CVE-2021-25745"},{"type":"ADVISORY","url":"https://groups.google.com/g/kubernetes-announce/search?q=CVE-2021-25745"}]},{"provider":"nvd","source_id":"CVE-2021-25745","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25745","severity":[],"affected":[{"ecosystem":"NVD","package":"kubernetes:ingress-nginx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0"}]}],"fixed":["1.2.0"],"provider":"nvd","source":"CVE-2021-25745","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-pvmg-xgmx-9mxh","relation":"self","url":"https://osv.dev/vulnerability/GHSA-pvmg-xgmx-9mxh","license":"CC-BY-4.0","published_at":"2022-05-07T00:00:49Z","modified_at":"2026-08-07T08:12:06.631396Z","summary":"Improper Input Validation in k8s.io/ingress-nginx","details":"A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use the spec.rules[].http.paths[].path field of 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":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","source":"GHSA-pvmg-xgmx-9mxh"}],"affected":[{"ecosystem":"Go","package":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.0"}]}],"fixed":["1.2.0"],"provider":"osv","source":"GHSA-pvmg-xgmx-9mxh","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25745"},{"type":"WEB","url":"https://github.com/kubernetes/ingress-nginx/issues/8502"},{"type":"PACKAGE","url":"https://github.com/kubernetes/ingress-nginx"},{"type":"WEB","url":"https://groups.google.com/g/kubernetes-security-announce/c/7vQrpDZeBlc"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220609-0006"}]},{"provider":"osv","source_id":"openSUSE-SU-2024:12031-1","relation":"self","url":"https://osv.dev/vulnerability/openSUSE-SU-2024:12031-1","published_at":"2024-06-15T00:00:00Z","modified_at":"2026-02-04T03:55:11.34547Z","summary":"rke-1.3.10-1.1 on GA media","details":"These are all security issues fixed in the rke-1.3.10-1.1 package on the GA media of openSUSE Tumbleweed.","severity":[],"affected":[{"ecosystem":"openSUSE:Tumbleweed","package":"rke","purl":"pkg:rpm/opensuse/rke&distro=openSUSE%20Tumbleweed","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.10-1.1"}]}],"fixed":["1.3.10-1.1"],"provider":"osv","source":"openSUSE-SU-2024:12031-1","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":""},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2021-25745"}]},{"provider":"redhat-vex","source_id":"CVE-2021-25745","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2021-25745","license":"CC-BY-4.0","published_at":"2022-04-22T16:00:00Z","modified_at":"2026-02-02T07:28:08.393982Z","summary":"k8s.io/ingress-nginx: 'path' can be pointed to service account token file","details":"A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use the spec.rules[].http.paths[].path field of 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":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","source":"CVE-2021-25745"},{"type":"Red Hat","score":"Important","source":"CVE-2021-25745"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["rhacm2/management-ingress-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-25745"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-25745.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-25745"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2076621"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-25745"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25745"}]}],"references":[{"type":"WEB","url":"https://groups.google.com/g/kubernetes-security-announce/c/7vQrpDZeBlc"},{"type":"WEB","url":"https://github.com/kubernetes/ingress-nginx/issues/8502"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220609-0006/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2021-25745"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1199374"},{"type":"WEB","url":"https://ftp.suse.com/pub/projects/security/csaf/2024/opensuse-su-2024_12031-1.json"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2021-25745/"},{"type":"ADVISORY","url":"https://github.com/kubernetes/kubernetes/issues/126812"},{"type":"ADVISORY","url":"https://www.cve.org/cverecord?id=CVE-2021-25745"},{"type":"ADVISORY","url":"https://groups.google.com/g/kubernetes-announce/search?q=CVE-2021-25745"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25745"},{"type":"PACKAGE","url":"https://github.com/kubernetes/ingress-nginx"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220609-0006"},{"type":"ADVISORY","url":""},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-25745.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-25745"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2076621"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-25745"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2024-1591","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-1591","license":"TLP:CLEAR, mirroring permitted","modified_at":"2024-11-11T23:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2021-25745","url":"https://www.cve.org/CVERecord?id=CVE-2021-25745","license":"CC-BY-4.0","modified_at":"2024-09-16T18:24:11.711Z","relation":"self"},{"provider":"csaf-suse","source_id":"CVE-2021-25745","url":"https://www.suse.com/security/cve/CVE-2021-25745/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2025-03-15T09:06:17Z","relation":"self"},{"provider":"csaf-suse","source_id":"openSUSE-SU-2024:12031-1","url":"https://www.suse.com/security/cve/CVE-2021-25745/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2024-06-15T00:00:00Z","relation":"self"},{"provider":"kubernetes-cve-feed","source_id":"CVE-2021-25745","url":"https://github.com/kubernetes/kubernetes/issues/126812","license":"CC-BY-4.0","relation":"self"},{"provider":"nvd","source_id":"CVE-2021-25745","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25745","relation":"self"},{"provider":"osv","source_id":"GHSA-pvmg-xgmx-9mxh","url":"https://osv.dev/vulnerability/GHSA-pvmg-xgmx-9mxh","license":"CC-BY-4.0","modified_at":"2026-08-07T08:12:06.631396Z","relation":"self"},{"provider":"osv","source_id":"openSUSE-SU-2024:12031-1","url":"https://osv.dev/vulnerability/openSUSE-SU-2024:12031-1","modified_at":"2026-02-04T03:55:11.34547Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2021-25745","url":"https://access.redhat.com/security/cve/CVE-2021-25745","license":"CC-BY-4.0","modified_at":"2026-02-02T07:28:08.393982Z","relation":"self"}]}
