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

Published Apr 29, 2021
·
Updated

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.

Other sources

A security issue was discovered in Kubernetes where an authorized user may be able to redirect traffic to private networks on a Node. An untrusted user could exploit this by creating or modifying EndpointSlices to point to localhost or link-local addresses.

A security issue was discovered in Kubernetes where an authorized user may be able to redirect traffic to private networks on a Node. Kubernetes clusters are only affected if an untrusted user can create or modify EndpointSlices. Kubernetes already prevents creation of Endpoint IPs in the localhost or link-local range, but the same validation was not performed on EndpointSlice IPs.

Red Hat

Affected Software

9 affected componentsFixes available
redhat/openshift<0:4.8.0-202107161820.p0.git.051ac4f.assembly.stream.el8
0:4.8.0-202107161820.p0.git.051ac4f.assembly.stream.el8
redhat/kubernetes<1.21.1
1.21.1
redhat/kubernetes<1.20.7
1.20.7
redhat/kubernetes<1.19.11
1.19.11
redhat/kubernetes<1.18.19
1.18.19
Kubernetes kubernetes>=1.16.0<1.18.19
Kubernetes kubernetes>=1.19.0<1.19.10
Kubernetes kubernetes>=1.20.0<1.20.7
Kubernetes kubernetes=1.21.0

Remediation

Information

* Prevent untrusted users from creating or modifying EndpointSlices * Creating a validating admission webhook that prevents EndpointSlices with endpoint addresses in the 127.0.0.0/8 and 169.254.0.0/16 ranges

Event History

May 18, 2021
CVE Published
12:00 AM
Sep 6, 2021
CVE Published
via MITRE·11:32 AM
Data Sourced
via MITRE·11:32 AM
DescriptionSeverityWeakness

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-25737?

The severity of CVE-2021-25737 is medium.

2

How can an authorized user exploit CVE-2021-25737?

An authorized user can exploit CVE-2021-25737 by redirecting pod traffic to private networks on a Node.

3

What software versions are affected by CVE-2021-25737?

The following software versions are affected by CVE-2021-25737: Kubernetes 1.21.1, Kubernetes 1.20.7, Kubernetes 1.19.11, Kubernetes 1.18.19, OpenShift 4.8.0-202107161820.p0.git.051ac4f.assembly.stream.el8.

4

How do I fix CVE-2021-25737?

To fix CVE-2021-25737, update your Kubernetes or OpenShift software to the appropriate remediation version: Kubernetes 1.21.1, Kubernetes 1.20.7, Kubernetes 1.19.11, Kubernetes 1.18.19, OpenShift 4.8.0-202107161820.p0.git.051ac4f.assembly.stream.el8.

5

Where can I find more information about CVE-2021-25737?

You can find more information about CVE-2021-25737 at the following references: [1] GitHub: https://github.com/kubernetes/kubernetes/pull/101084 [2] Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1962296 [3] Red Hat Advisory: https://access.redhat.com/errata/RHSA-2021:2437

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203