CVE-2026-42965
OpenShift Router Cloud Metadata Endpoint Credential Exposure
Publication date: 2026-05-29
Last updated on: 2026-05-29
Assigner: Red Hat, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| redhat | openshift_router | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-918 | The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability affects the OpenShift Router and involves Server-Side Request Forgery (SSRF) through FQDN-typed EndpointSlice objects.
An attacker who has write access to EndpointSlice can create a Service backed by an EndpointSlice with a Fully Qualified Domain Name (FQDN) that resolves to the cloud metadata IP address (169.254.169.254).
By creating a Route targeting this malicious Service, the OpenShift Router proxies requests to the cloud metadata endpoint, which leads to the disclosure of instance credentials and other sensitive metadata.
This attack bypasses previous security measures that only validated IP addresses and is not mitigated by IMDSv2 because the router's HAProxy runs as a hostNetwork process at Layer 7, allowing token exchange.
The attack requires the IngressController to use HostNetwork endpoint publishing, which is the default on bare metal or User-Provisioned Infrastructure (UPI) but not on cloud providers.
How can this vulnerability impact me? :
This vulnerability can lead to the unauthorized disclosure of instance credentials and other sensitive metadata from the cloud metadata service.
An attacker exploiting this flaw can gain access to sensitive information that could be used to further compromise the affected system or cloud environment.
Since the router proxies requests to the cloud metadata endpoint, it effectively allows an attacker to bypass security controls and retrieve confidential data.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
Detection of this vulnerability involves monitoring for creation of EndpointSlices with FQDNs that resolve to the cloud metadata IP address (169.254.169.254). Specifically, look for Services backed by FQDN EndpointSlices pointing to this IP, as well as Routes targeting these Services.
You can use commands to inspect EndpointSlices and Services in your OpenShift cluster to identify suspicious entries.
- kubectl get endpointslices -A -o json | jq '.items[] | select(.endpoints[].hostname | test("169.254.169.254"))'
- kubectl get services -A -o json | jq '.items[] | select(.spec.selector != null)'
- kubectl get routes -A -o wide | grep <suspicious-service-name>
Additionally, monitor network traffic for unexpected requests from the router to the cloud metadata endpoint (169.254.169.254).
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include restricting write access to EndpointSlices to trusted users only, preventing attackers from creating malicious FQDN EndpointSlices.
Avoid using HostNetwork endpoint publishing for the IngressController where possible, as this is required for the attack to succeed and is the default only on bare metal or UPI installations.
Review and apply any vendor patches or updates addressing CVE-2026-42965 as soon as they become available.
Monitor and audit EndpointSlice and Service creation events to detect and block suspicious configurations.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
This vulnerability allows unauthorized disclosure of instance credentials and sensitive metadata by exploiting the OpenShift Router. Such unauthorized access to sensitive information can lead to violations of data protection and privacy regulations like GDPR and HIPAA, which mandate strict controls over access to sensitive data and credentials.
By bypassing previous security measures and enabling Server-Side Request Forgery (SSRF) to cloud metadata endpoints, this flaw increases the risk of data breaches and unauthorized data exposure, potentially impacting compliance with standards that require confidentiality and integrity of sensitive information.