# CVE-2026-40987: VMware Spring Integration path traversal in FTP, SFTP, and SMB adapters

Source: https://junglewise.ai/threats/cve-2026-40987-vmware-spring-integration-path-traversal-in-ftp-sftp-and-smb  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-11. Updated: 2026-07-24  
License: CC BY 4.0 with a link back

CVE-2026-40987 · Severity: high · CVSS 7.1 · Published 2026-06-11

Spring Integration is a framework used by Java applications to connect with external systems like file servers. A vulnerability in its file support allows a malicious or compromised FTP, SFTP, or SMB server to write files to any location on the client's computer. This could allow an attacker to overwrite critical system files or plant malicious software, potentially leading to a full system compromise.

Technologies: [VMware Spring Integration](https://junglewise.ai/threats/technologies/spring-integration). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven), [VMware](https://junglewise.ai/threats/vendors/vmware).

## Quick answers

**Is CVE-2026-40987 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-40987 being exploited in the wild.

**How severe is CVE-2026-40987?** High severity, with a CVSS score of 7.1, published 11 June 2026.

**Which products and versions are affected?** org.springframework.integration:spring-integration-file (Maven) ECOSYSTEM:introduced=7.0.0,fixed=7.0.5; VMware 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, 7.0.0 to 7.0.4, 6.5.0 to 6.5.8, 6.4.0 to 6.4.11, 6.3.0 to 6.3.14, 5.5.0 to 5.5.20.

**Is there a fix for CVE-2026-40987?** Yes. org.springframework.integration:spring-integration-file (Maven): upgrade to 7.0.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-40987 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-40987?** Check whether you run org.springframework.integration:spring-integration-file (Maven) or VMware Spring Integration at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.springframework.integration:spring-integration-file (Maven): upgrade to 7.0.5 or later

  ```sh
  # set org.springframework.integration:spring-integration-file to 7.0.5 in your pom.xml or build.gradle
  ```


## Technical details

A path traversal vulnerability (CWE-22) exists in the Spring Integration File Support module. When a client application connects to a malicious or compromised FTP, SFTP, or SMB server, the server can provide file paths containing traversal sequences (e.g., ../) that the client does not properly neutralize. This allows the server to write files with attacker-controlled content outside of the intended local directory on the client's filesystem. The vulnerability affects the 'spring-integration-file' artifact across multiple major versions. Users should upgrade to version 7.0.5 or later to mitigate this issue.

## Affected products

- VMware Spring Integration 7.0.0 to 7.0.4, 6.5.0 to 6.5.8, 6.4.0 to 6.4.11, 6.3.0 to 6.3.14, 5.5.0 to 5.5.20

## Identifiers

- CVE-2026-40987
- GHSA-792x-6vq6-j8r9

## Timeline

- 2026-06-11: disclosed
- 2026-06-11: advisory
- 2026-07-24: patched: GitHub advisory updated with patched version 7.0.5

## References

- [https://api.github.com/users/julianladisch](https://api.github.com/users/julianladisch)
- [https://github.com/julianladisch](https://github.com/julianladisch)
- [https://api.github.com/users/julianladisch/gists%7B/gist_id%7D](https://api.github.com/users/julianladisch/gists%7B/gist_id%7D)
- [https://api.github.com/users/julianladisch/repos](https://api.github.com/users/julianladisch/repos)
- [https://avatars.githubusercontent.com/u/533612?v=4](https://avatars.githubusercontent.com/u/533612?v=4)
- [https://api.github.com/users/julianladisch/events%7B/privacy%7D](https://api.github.com/users/julianladisch/events%7B/privacy%7D)

## Related threats

- [Spring Integration insecure temporary file permissions in metadata store](https://junglewise.ai/threats/cve-2026-59292-spring-integration-insecure-temporary-file-permissions-in)
- [Spring Integration UnZipTransformer denial-of-service via zip bomb](https://junglewise.ai/threats/cve-2026-59274-spring-integration-unziptransformer-denial-of-service-via-zip)
- [Spring Integration JMS header injection via properties](https://junglewise.ai/threats/cve-2026-47880-spring-integration-jms-header-injection-via-properties)
- [Spring Framework UDP inbound adapter arbitrary datagram reflection](https://junglewise.ai/threats/cve-2026-47861-spring-framework-udp-inbound-adapter-arbitrary-datagram)
