CVE-2026-40564

MEDIUM

Apache Flink Kubernetes Operator: Server-Side Request Forgery and local file access in Kubernetes Operator

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-40564. PoCs published by oscerd.

AI-analyzed exploit summary This repository contains a functional exploit PoC for CVE-2026-40564, demonstrating an SSRF vulnerability in the Apache Flink Kubernetes Operator. The exploit leverages the operator's lack of validation on the `spec.job.jarURI` field in `FlinkSessionJob` resources, allowing an attacker to coerce the operator into fetching arbitrary URLs from its network position.

Description

Files or Directories Accessible to External Parties, Server-Side Request Forgery (SSRF) vulnerability in Apache Flink Kubernetes Operator. The FlinkSessionJob jarURI is currently not validated so that it points to user-owned files or addresses.  This lets a user with CR create permissions read files from the operator pod's filesystem and pull content from any backing store reachable through Flink's pluggable filesystem layer and access them through the submitted Flink job. Furthermore for fetching from http/https addresses there is currently no allowlist on the URI scheme, no host check, no IP-range restriction, and no protection against pointing the URI at internal or link-local addresses.This issue affects Apache Flink Kubernetes Operator: from 1.3.0 before 1.15.0. Users are recommended to upgrade to version 1.15.0, which fixes the issue.

Exploits (1)

github WORKING POC
by oscerd · makefilepoc
https://github.com/oscerd/CVE-2026-40564

This repository contains a functional exploit PoC for CVE-2026-40564, demonstrating an SSRF vulnerability in the Apache Flink Kubernetes Operator. The exploit leverages the operator's lack of validation on the `spec.job.jarURI` field in `FlinkSessionJob` resources, allowing an attacker to coerce the operator into fetching arbitrary URLs from its network position.

Classification
Working Poc 100%
Attack Type
Ssrf
Complexity
Moderate
Reliability
Reliable
Target: Apache Flink Kubernetes Operator 1.14.0
Auth required
Prerequisites: Ability to create `FlinkSessionJob` resources in the target Kubernetes cluster · Network access to the target cluster
devstral-2 · analyzed May 29, 2026 Full analysis →

References (2)

Core 2

Scores

CVSS v3 6.5
EPSS 0.0005
EPSS Percentile 17.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-552 CWE-918
Status published
Products (2)
apache/flink_kubernetes_operator 1.3.0 - 1.15.0
Apache Software Foundation/Apache Flink Kubernetes Operator 1.3.0 - 1.15.0
Published May 26, 2026
Tracked Since May 26, 2026