{"id":"CVE-2021-25740","aliases":["AZL-89312","DEBIAN-CVE-2021-25740","GHSA-vw47-mr44-3jf9","UBUNTU-CVE-2021-25740","WID-SEC-W-2023-0019"],"summary":"Holes in EndpointSlice Validation Enable Host Network Hijack","published_at":"2021-07-14T03:30:07Z","modified_at":"2026-11-19T05:26:20Z","products":[{"slug":"kubernetes","name":"Kubernetes","category":"kubernetes-container"},{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"low","score":3.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"red_hat":"Low","vendor_ratings":[{"source":"BSI","rating":"mittel"},{"source":"SUSE","rating":"low"},{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Low"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.02191000059247017,"percentile":0.8283200263977051,"date":"2026-11-19T00:00:00Z"},"priority":4.1,"record_count":9,"vendors":["Red Hat","SUSE","Debian","Ubuntu","BSI","GitHub","Azure Linux","Kubernetes"],"details":"A security issue was discovered with Kubernetes that could enable users to send network traffic to locations they would otherwise not have access to via a confused deputy attack.","affected_stack":[{"ecosystem":"CVE","package":"Kubernetes/Kubernetes","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"cvelistv5","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Go","package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.22.2"}]}],"provider":"osv","source":"GHSA-vw47-mr44-3jf9","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-clients","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-clients-redistributable","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-docker-excluder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-excluder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-hyperkube","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-hypershift","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-master","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-node","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-pod","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-sdn-ovs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-template-service-broker","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-tests","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"}],"affected_other":[{"ecosystem":"Azure Linux:3","package":"kubernetes","purl":"pkg:rpm/azure-linux/kubernetes","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.30.10-33"}]}],"provider":"osv","source":"AZL-89312","relation":"self"},{"ecosystem":"Debian:12","package":"kubernetes","purl":"pkg:deb/debian/kubernetes?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.5+really1.20.2-1"}]}],"fixed":["1.20.5+really1.20.2-1"],"provider":"osv","source":"DEBIAN-CVE-2021-25740","relation":"self"},{"ecosystem":"Debian:13","package":"kubernetes","purl":"pkg:deb/debian/kubernetes?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.5+really1.20.2-1"}]}],"fixed":["1.20.5+really1.20.2-1"],"provider":"osv","source":"DEBIAN-CVE-2021-25740","relation":"self"},{"ecosystem":"Debian:14","package":"kubernetes","purl":"pkg:deb/debian/kubernetes?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.5+really1.20.2-1"}]}],"fixed":["1.20.5+really1.20.2-1"],"provider":"osv","source":"DEBIAN-CVE-2021-25740","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"kubernetes","purl":"pkg:deb/ubuntu/kubernetes@1.0?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0"],"provider":"osv","source":"UBUNTU-CVE-2021-25740","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"kubernetes","purl":"pkg:deb/ubuntu/kubernetes@1.0?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0"],"provider":"osv","source":"UBUNTU-CVE-2021-25740","relation":"self"},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"kubernetes","purl":"pkg:deb/ubuntu/kubernetes@1.0?arch=source&distro=esm-apps/focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0"],"provider":"osv","source":"UBUNTU-CVE-2021-25740","relation":"self"}],"product_status":[{"vendor":"BSI","product":"IBM InfoSphere Information Server 11.7.1.4","cpe":"cpe:/a:ibm:infosphere_information_server:11.7.1.4","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-0019"},{"vendor":"BSI","product":"Open Source Kubernetes","cpe":"cpe:/a:kubernetes:kubernetes:-","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-0019"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 12","cpe":"cpe:/o:suse:sle_hpc:12","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Public Cloud 12","cpe":"cpe:/o:suse:sle-module-public-cloud:12","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12","cpe":"cpe:/o:suse:sles:12","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP3","cpe":"cpe:/o:suse:sles:12:sp3","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP4","cpe":"cpe:/o:suse:sles:12:sp4","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP5","cpe":"cpe:/o:suse:sles:12:sp5","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP5-LTSS","cpe":"cpe:/o:suse:sles-ltss:12:sp5","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server LTSS Extended Security 12 SP5","cpe":"cpe:/o:suse:sles-ltss-extended-security:12:sp5","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12","cpe":"cpe:/o:suse:sles_sap:12","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12 SP3","cpe":"cpe:/o:suse:sles_sap:12:sp3","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12 SP4","cpe":"cpe:/o:suse:sles_sap:12:sp4","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12 SP5","cpe":"cpe:/o:suse:sles_sap:12:sp5","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 3.11","cpe":"cpe:/a:redhat:openshift:3.11","status":"affected","packages":["atomic-openshift","atomic-openshift-clients","atomic-openshift-clients-redistributable","atomic-openshift-docker-excluder","atomic-openshift-excluder","atomic-openshift-hyperkube","atomic-openshift-hypershift","atomic-openshift-master","atomic-openshift-node","atomic-openshift-pod","atomic-openshift-sdn-ovs","atomic-openshift-template-service-broker","atomic-openshift-tests"],"package_count":13,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2021-25740"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["openshift","openshift-clients","openshift-clients-redistributable","openshift-hyperkube","openshift-kube-apiserver","openshift-kube-controller-manager","openshift-kube-scheduler","openshift-kubelet"],"package_count":8,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-25740"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2021-25740","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2021-25740","license":"CC-BY-4.0","published_at":"2021-09-20T17:05:18.065Z","modified_at":"2026-06-01T21:45:55.645Z","summary":"Holes in EndpointSlice Validation Enable Host Network Hijack","details":"A security issue was discovered with Kubernetes that could enable users to send network traffic to locations they would otherwise not have access to via a confused deputy attack.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"CVE-2021-25740"}],"affected":[{"ecosystem":"CVE","package":"Kubernetes/Kubernetes","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"cvelistv5","source":"CVE-2021-25740","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://kubernetes.io/blog/2026/05/26/reconciling-unfixed-kubernetes-cves/"},{"type":"WEB","url":"https://groups.google.com/g/kubernetes-security-announce/c/WYE9ptrhSLE"},{"type":"WEB","url":"https://github.com/kubernetes/kubernetes/issues/103675"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20211014-0001/"}]},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-0019","relation":"self","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-0019","license":"TLP:CLEAR, mirroring permitted","published_at":"2021-07-14T22:00:00Z","modified_at":"2023-01-03T23:00:00Z","summary":"Kubernetes: Schwachstelle ermöglicht Umgehen von Sicherheitsvorkehrungen","details":"Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in Kubernetes ausnutzen, um Sicherheitsvorkehrungen zu umgehen.\n\nKubernetes ist ein Werkzeug zur Automatisierung der Bereitstellung, Skalierung und Verwaltung von containerisierten Anwendungen.","severity":[{"type":"BSI","score":"mittel","source":"WID-SEC-W-2023-0019"}],"affected":[],"product_status":[{"vendor":"BSI","product":"IBM InfoSphere Information Server 11.7.1.4","cpe":"cpe:/a:ibm:infosphere_information_server:11.7.1.4","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-0019"},{"vendor":"BSI","product":"Open Source Kubernetes","cpe":"cpe:/a:kubernetes:kubernetes:-","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-0019"}],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2021/wid-sec-w-2023-0019.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-0019"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/6852449"},{"type":"WEB","url":"https://github.com/kubernetes/kubernetes/issues/103675"}]},{"provider":"csaf-suse","source_id":"CVE-2021-25740","relation":"self","url":"https://www.suse.com/security/cve/CVE-2021-25740/","license":"TLP:CLEAR, mirroring permitted","published_at":"2023-02-15T03:44:57Z","modified_at":"2025-10-07T02:35:49Z","summary":"SUSE CVE CVE-2021-25740","details":"SUSE CVE-2021-25740\n\nA security issue was discovered with Kubernetes that could enable users to send network traffic to locations they would otherwise not have access to via a confused deputy attack.","severity":[{"type":"SUSE","score":"low","source":"CVE-2021-25740"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 12","cpe":"cpe:/o:suse:sle_hpc:12","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Public Cloud 12","cpe":"cpe:/o:suse:sle-module-public-cloud:12","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12","cpe":"cpe:/o:suse:sles:12","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP3","cpe":"cpe:/o:suse:sles:12:sp3","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP4","cpe":"cpe:/o:suse:sles:12:sp4","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP5","cpe":"cpe:/o:suse:sles:12:sp5","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP5-LTSS","cpe":"cpe:/o:suse:sles-ltss:12:sp5","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server LTSS Extended Security 12 SP5","cpe":"cpe:/o:suse:sles-ltss-extended-security:12:sp5","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12","cpe":"cpe:/o:suse:sles_sap:12","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12 SP3","cpe":"cpe:/o:suse:sles_sap:12:sp3","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12 SP4","cpe":"cpe:/o:suse:sles_sap:12:sp4","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12 SP5","cpe":"cpe:/o:suse:sles_sap:12:sp5","status":"not_affected","packages":["kubernetes","kubernetes-client"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-25740"}],"references":[{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2021-25740"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1188332"},{"type":"WEB","url":"https://www.suse.com/support/kb/doc/?id=000021013"}]},{"provider":"kubernetes-cve-feed","source_id":"CVE-2021-25740","relation":"self","url":"https://github.com/kubernetes/kubernetes/issues/103675","license":"CC-BY-4.0","published_at":"2021-07-14T03:30:07Z","summary":"Endpoint & EndpointSlice permissions allow cross-Namespace forwarding","details":"A security issue was discovered with Kubernetes that could enable users to send network traffic to locations they would otherwise not have access to via a confused deputy attack. \r\n\r\nThis issue has been rated **Low** severity ([CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N)), and assigned **CVE-2021-25740**.\r\n### Am I vulnerable?\r\nIf a potential attacker can create or edit Endpoints or EndpointSlices in the Kubernetes API, they can potentially direct a LoadBalancer or Ingress implementation to expose backend IPs the attacker should not have access to.\r\nImportantly, if the target’s NetworkPolicy already trusts the Load Balancer or Ingress implementation, NetworkPolicy can not be used to prevent exposure from other namespaces, potentially bypassing any security controls such as LoadBalancerSourceRanges.\r\nThis issue is a design flaw that cannot be fully mitigated without user-facing changes. With this public announcement, we can begin conversations about a long-term fix.\r\n#### Affected Versions\r\nAll Kubernetes versions are affected. \r\n### How do I mitigate this vulnerability?\r\nThere is no patch for this issue, and it can currently only be mitigated by restricting access to the vulnerable features. To mitigate the exposure, we recommend restricting write access to Endpoints and EndpointSlices by updating the system:aggregate-to-edit role using the [attached file](https://github.com/kubernetes/kubernetes/files/6823580/aggregate_to_edit_no_endpoints.yaml.txt). This will remove write access to Endpoints from the admin and edit roles:\r\n\r\n```shell\r\n# Allow kubectl auth reconcile to work\r\nkubectl annotate --overwrite clusterrole/system:aggregate-to-edit rbac.authorization.kubernetes.io/autoupdate=true\r\n\r\n# Test reconcile, then run for real if happy\r\nkubectl auth reconcile --remove-extra-permissions -f aggregate_to_edit_no_endpoints.yaml.txt --dry-run\r\nkubectl auth reconcile --remove-extra-permissions -f aggregate_to_edit_no_endpoints.yaml.txt\r\n\r\n# Prevent autoreconciliation back to old state\r\nkubectl annotate --overwrite clusterrole/system:aggregate-to-edit rbac.authorization.kubernetes.io/autoupdate=false\r\n```\r\n\r\nNote: This will prevent new versions of Kubernetes from reconciling new default permissions to this role. No new default permissions have been added to this role since v1.14.0, but we recommend you remove the autoupdate=false annotation as soon as a fix or other mitigation is possible.\r\n\r\nFor use-cases that need to edit these resources, we recommend creating a new purpose-built Role with the desired permissions, and using it only for those cases.\r\n### Detection\r\nServices with an empty selector rely on custom endpoints and are vulnerable to the attack described above. We recommend manually auditing any such usage. The following kubectl command will list all Services in a cluster with their selector:\r\n```\r\nkubectl get svc --all-namespaces -o=custom-columns='NAME:metadata.name,NAMESPACE:metadata.namespace,SELECTOR:spec.selector'\r\n```\r\n\r\nNote: Some Services without selectors specified may have their Endpoints managed by other controllers or tools. For example, endpoints for the default/kubernetes Service are managed by the Kubernetes API Server. \r\n\r\nIf you find evidence that this vulnerability has been exploited, please contact security@kubernetes.io \r\n#### Additional Advisory\r\nA similar attack is possible using Ingress implementations that support forwarding to ExternalName Services. This can be used to forward to Services in other namespaces or, in some cases, sensitive endpoints within the Ingress implementation. If you are using the Ingress API, we recommend confirming that the implementation you’re using either does not support forwarding to ExternalName Services or supports disabling the functionality.\r\n#### Additional Details\r\nSee the GitHub issue for more updates: https://github.com/kubernetes/kubernetes/issues/103675 \r\n \r\nThank You,\r\nRob Scott on behalf of Kubernetes SIG Network and CJ Cullen on behalf of the Kubernetes Product Security Committee","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"CVE-2021-25740"}],"affected":[],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/kubernetes/kubernetes/issues/103675"},{"type":"ADVISORY","url":"https://www.cve.org/cverecord?id=CVE-2021-25740"},{"type":"ADVISORY","url":"https://groups.google.com/g/kubernetes-announce/search?q=CVE-2021-25740"}]},{"provider":"osv","source_id":"AZL-89312","relation":"self","url":"https://osv.dev/vulnerability/AZL-89312","license":"MIT","published_at":"2021-09-20T17:15:08Z","modified_at":"2026-11-19T05:26:20Z","summary":"CVE-2021-25740 affecting package kubernetes 1.30.10-33","details":"A security issue was discovered with Kubernetes that could enable users to send network traffic to locations they would otherwise not have access to via a confused deputy attack.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"AZL-89312"}],"affected":[{"ecosystem":"Azure Linux:3","package":"kubernetes","purl":"pkg:rpm/azure-linux/kubernetes","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.30.10-33"}]}],"provider":"osv","source":"AZL-89312","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25740"}]},{"provider":"osv","source_id":"DEBIAN-CVE-2021-25740","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2021-25740","published_at":"2021-09-20T17:15:08.283Z","modified_at":"2026-10-23T18:02:57.606951Z","details":"A security issue was discovered with Kubernetes that could enable users to send network traffic to locations they would otherwise not have access to via a confused deputy attack.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"DEBIAN-CVE-2021-25740"}],"affected":[{"ecosystem":"Debian:12","package":"kubernetes","purl":"pkg:deb/debian/kubernetes?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.5+really1.20.2-1"}]}],"fixed":["1.20.5+really1.20.2-1"],"provider":"osv","source":"DEBIAN-CVE-2021-25740","relation":"self"},{"ecosystem":"Debian:13","package":"kubernetes","purl":"pkg:deb/debian/kubernetes?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.5+really1.20.2-1"}]}],"fixed":["1.20.5+really1.20.2-1"],"provider":"osv","source":"DEBIAN-CVE-2021-25740","relation":"self"},{"ecosystem":"Debian:14","package":"kubernetes","purl":"pkg:deb/debian/kubernetes?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.5+really1.20.2-1"}]}],"fixed":["1.20.5+really1.20.2-1"],"provider":"osv","source":"DEBIAN-CVE-2021-25740","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2021-25740"}]},{"provider":"osv","source_id":"GHSA-vw47-mr44-3jf9","relation":"self","url":"https://osv.dev/vulnerability/GHSA-vw47-mr44-3jf9","license":"CC-BY-4.0","published_at":"2021-09-21T18:28:30Z","modified_at":"2026-09-10T03:49:08.832153Z","summary":"Confused Deputy in Kubernetes","details":"A security issue was discovered with Kubernetes that could enable users to send network traffic to locations they would otherwise not have access to via a confused deputy attack.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"GHSA-vw47-mr44-3jf9"}],"affected":[{"ecosystem":"Go","package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.22.2"}]}],"provider":"osv","source":"GHSA-vw47-mr44-3jf9","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25740"},{"type":"WEB","url":"https://github.com/kubernetes/kubernetes/issues/103675"},{"type":"PACKAGE","url":"https://github.com/kubernetes/kubernetes"},{"type":"WEB","url":"https://groups.google.com/g/kubernetes-security-announce/c/WYE9ptrhSLE"},{"type":"WEB","url":"https://kubernetes.io/blog/2026/05/26/reconciling-unfixed-kubernetes-cves"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20211014-0001"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2021-25740","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2021-25740","license":"CC-BY-SA-4.0","published_at":"2021-09-20T17:15:00Z","modified_at":"2025-07-14T06:45:34.067098Z","withdrawn_at":"2025-08-28T17:00:31Z","details":"A security issue was discovered with Kubernetes that could enable users to send network traffic to locations they would otherwise not have access to via a confused deputy attack.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"UBUNTU-CVE-2021-25740"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2021-25740"}],"affected":[{"ecosystem":"Ubuntu:22.04:LTS","package":"kubernetes","purl":"pkg:deb/ubuntu/kubernetes@1.0?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0"],"provider":"osv","source":"UBUNTU-CVE-2021-25740","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"kubernetes","purl":"pkg:deb/ubuntu/kubernetes@1.0?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0"],"provider":"osv","source":"UBUNTU-CVE-2021-25740","relation":"self"},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"kubernetes","purl":"pkg:deb/ubuntu/kubernetes@1.0?arch=source&distro=esm-apps/focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0"],"provider":"osv","source":"UBUNTU-CVE-2021-25740","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-25740"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2021/07/14/1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-25740"}]},{"provider":"redhat-vex","source_id":"CVE-2021-25740","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2021-25740","license":"CC-BY-4.0","published_at":"2021-07-15T00:00:00Z","modified_at":"2026-06-01T23:20:07Z","summary":"kubernetes: Endpoint & EndpointSlice permissions allow cross-Namespace forwarding","details":"A flaw was found in Kubernetes. This issue enables users to send network traffic to locations they would otherwise not have access to via a confused deputy attack.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"CVE-2021-25740"},{"type":"Red Hat","score":"Low","source":"CVE-2021-25740"}],"affected":[{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-clients","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-clients-redistributable","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-docker-excluder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-excluder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-hyperkube","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-hypershift","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-master","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-node","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-pod","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-sdn-ovs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-template-service-broker","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"},{"ecosystem":"Red Hat:openshift:3.11","package":"atomic-openshift-tests","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-25740","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 3.11","cpe":"cpe:/a:redhat:openshift:3.11","status":"affected","packages":["atomic-openshift","atomic-openshift-clients","atomic-openshift-clients-redistributable","atomic-openshift-docker-excluder","atomic-openshift-excluder","atomic-openshift-hyperkube","atomic-openshift-hypershift","atomic-openshift-master","atomic-openshift-node","atomic-openshift-pod","atomic-openshift-sdn-ovs","atomic-openshift-template-service-broker","atomic-openshift-tests"],"package_count":13,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2021-25740"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["openshift","openshift-clients","openshift-clients-redistributable","openshift-hyperkube","openshift-kube-apiserver","openshift-kube-controller-manager","openshift-kube-scheduler","openshift-kubelet"],"package_count":8,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-25740"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-25740.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-25740"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1982470"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-25740"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25740"},{"type":"WEB","url":"https://groups.google.com/g/kubernetes-security-announce/c/WYE9ptrhSLE"}]}],"references":[{"type":"WEB","url":"https://kubernetes.io/blog/2026/05/26/reconciling-unfixed-kubernetes-cves/"},{"type":"WEB","url":"https://groups.google.com/g/kubernetes-security-announce/c/WYE9ptrhSLE"},{"type":"WEB","url":"https://github.com/kubernetes/kubernetes/issues/103675"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20211014-0001/"},{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2021/wid-sec-w-2023-0019.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-0019"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/6852449"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2021-25740"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1188332"},{"type":"WEB","url":"https://www.suse.com/support/kb/doc/?id=000021013"},{"type":"ADVISORY","url":"https://www.cve.org/cverecord?id=CVE-2021-25740"},{"type":"ADVISORY","url":"https://groups.google.com/g/kubernetes-announce/search?q=CVE-2021-25740"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25740"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2021-25740"},{"type":"PACKAGE","url":"https://github.com/kubernetes/kubernetes"},{"type":"WEB","url":"https://kubernetes.io/blog/2026/05/26/reconciling-unfixed-kubernetes-cves"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20211014-0001"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-25740"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2021/07/14/1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-25740"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-25740.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-25740"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1982470"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2021-25740","url":"https://www.cve.org/CVERecord?id=CVE-2021-25740","license":"CC-BY-4.0","modified_at":"2026-06-01T21:45:55.645Z","relation":"self"},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-0019","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-0019","license":"TLP:CLEAR, mirroring permitted","modified_at":"2023-01-03T23:00:00Z","relation":"self"},{"provider":"csaf-suse","source_id":"CVE-2021-25740","url":"https://www.suse.com/security/cve/CVE-2021-25740/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2025-10-07T02:35:49Z","relation":"self"},{"provider":"kubernetes-cve-feed","source_id":"CVE-2021-25740","url":"https://github.com/kubernetes/kubernetes/issues/103675","license":"CC-BY-4.0","relation":"self"},{"provider":"osv","source_id":"AZL-89312","url":"https://osv.dev/vulnerability/AZL-89312","license":"MIT","modified_at":"2026-11-19T05:26:20Z","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2021-25740","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2021-25740","modified_at":"2026-10-23T18:02:57.606951Z","relation":"self"},{"provider":"osv","source_id":"GHSA-vw47-mr44-3jf9","url":"https://osv.dev/vulnerability/GHSA-vw47-mr44-3jf9","license":"CC-BY-4.0","modified_at":"2026-09-10T03:49:08.832153Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2021-25740","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2021-25740","license":"CC-BY-SA-4.0","modified_at":"2025-07-14T06:45:34.067098Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2021-25740","url":"https://access.redhat.com/security/cve/CVE-2021-25740","license":"CC-BY-4.0","modified_at":"2026-06-01T23:20:07Z","relation":"self"}]}
