CVE-2026-40987

HIGH

Remote-file synchronizer in Spring Integration writes server-supplied filename under localDirectory without canonicalization

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-40987. PoCs published by daehyuh.

AI-analyzed exploit summary This repository contains a functional proof-of-concept exploit for CVE-2026-40987, demonstrating a path traversal vulnerability in Spring Integration FTP. The test case simulates a malicious FTP server that serves a file with a crafted filename to escape the configured local directory.

Description

A malicious or compromised FTP/SFTP/SMB server can write arbitrary files anywhere on the client filesystem (outside the configured local-directory) with attacker-controlled content. Affected versions: Spring Integration 7.0.0 through 7.0.4; 6.5.0 through 6.5.8; 6.4.0 through 6.4.11; 6.3.0 through 6.3.14; 5.5.0 through 5.5.20.

Exploits (1)

github WORKING POC
by daehyuh · javapoc
https://github.com/daehyuh/CVE-2026-40987

This repository contains a functional proof-of-concept exploit for CVE-2026-40987, demonstrating a path traversal vulnerability in Spring Integration FTP. The test case simulates a malicious FTP server that serves a file with a crafted filename to escape the configured local directory.

Classification
Working Poc 95%
Attack Type
Other
Complexity
Moderate
Reliability
Reliable
Target: Spring Integration FTP 7.0.4
Auth required
Prerequisites: Access to a vulnerable Spring Integration FTP instance · Ability to control or simulate a malicious FTP server
devstral-2 · analyzed Jun 12, 2026 Full analysis →

References (1)

Core 1

Scores

CVSS v3 7.1
EPSS 0.0018
EPSS Percentile 7.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:L

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-22
Status published
Products (5)
Spring/Spring Integration 5.5.0 - 5.5.21
Spring/Spring Integration 6.3.0 - 6.3.15
Spring/Spring Integration 6.4.0 - 6.4.12
Spring/Spring Integration 6.5.0 - 6.5.9
Spring/Spring Integration 7.0.0 - 7.0.5
Published Jun 11, 2026
Tracked Since Jun 11, 2026