CVE-2026-40987 — spring-integration-file
HIGHCVE-2026-40987 is a high-severity (CVSS 7.1) Path Traversal vulnerability in org.springframework.integration:spring-integration-file. A fix is available for org.springframework.integration:spring-integration-file — see the affected versions and patch details below.
Remote-file synchronizer in Spring Integration writes server-supplied filename under localDirectory without canonicalization
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-40987.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2026-40987 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 379,842 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
org.springframework.integration:spring-integration-file☕org.springframework.integration:spring-integration-file☕org.springframework.integration:spring-integration-file☕org.springframework.integration:spring-integration-file☕org.springframework.integration:spring-integration-fileReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.springframework.integration:spring-integration-file | ≥ 7.0.0&&< 7.0.5 | 7.0.5org.springframework.integration:spring-integration-file:7.0.5 |
| ☕Maven | org.springframework.integration:spring-integration-file | ≥ 6.5.0&&< 6.5.9 | 6.5.9org.springframework.integration:spring-integration-file:6.5.9 |
| ☕Maven | org.springframework.integration:spring-integration-file | ≥ 6.4.0 | No fix |
| ☕Maven | org.springframework.integration:spring-integration-file | ≥ 6.3.0 | No fix |
| ☕Maven | org.springframework.integration:spring-integration-file | all versions | No fix |
Affected Products
spring integrationvmwareDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework.integration:spring-integration-file, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.springframework.integration:spring-integration-file to 7.0.5 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-40987 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Red Hat ships Spring Integration as a bundled dependency in several middleware products. A flaw was found in Spring Integration's FTP, SFTP, and SMB inbound file synchronization adapters where server-supplied filenames are written to the local filesystem without path canonicalization, allowing a malicious or…
Restrict network access so that applications using Spring Integration file synchronization (FTP, SFTP, SMB inbound adapters) can only connect to trusted, known servers. Use firewall rules or network policies to prevent connections to untrusted endpoints. Additionally, run the application with minimal filesystem permissions to limit the impact of any arbitrary file write.Source: Red Hat security advisory for CVE-2026-40987 (CC BY 4.0)
Frequently Asked Questions
Is CVE-2026-40987 in your dependencies?
Find it across Maven, including transitive dependencies.