Vulnerabilities in pkg:maven/org.springframework.integration/spring-integration-file
PACKAGECVE-2026-40987 is a HIGH (CVSS 7.1) ftp/sftp/smb server can write arbitrary vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Spring Integration File Support libraries in the Maven ecosystem. The issue involves ftp/sftp/smb server can write arbitrary files anywhere on the client filesystem. Remediation is available by upgrading affected packages to version 7.0.5, 6.5.9.
pkg:maven/org.springframework.integration/spring-integration-file
Vulnerability advisories affecting package pkg:maven/org.springframework.integration/spring-integration-file. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-792x-6vq6-j8r9 | CVE-2026-40987 | HIGH | Spring Integration File Support: FTP/SFTP/SMB server can write arbitrary files anywhere on the client filesystem |
CVE-2026-40987 at a Glance
Security Impact
CVSS: 7.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:L).
How to Fix CVE-2026-40987
To remediate this vulnerability, upgrade all affected Spring Integration File Support dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-file</artifactId>
<version>7.0.5</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-file</artifactId>
<version>6.5.9</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-file</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-file</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-file</artifactId>
<version>Latest secure release</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.springframework.integration
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-40987, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.springframework.integration
Analyze the terminal output to locate any version of Spring Integration File Support in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.5), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.springframework.integration command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Spring Integration File Support, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-40987 Affected Spring Integration File Support Versions
5 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.springframework.integration:spring-integration-file
|
Maven |
≥ 7.0.0
< 7.0.5
|
7.0.5
|
|
org.springframework.integration:spring-integration-file
|
Maven |
≥ 6.5.0
< 6.5.9
|
6.5.9
|
|
org.springframework.integration:spring-integration-file
|
Maven |
≥ 6.4.0
≤ 6.4.11
|
|
|
org.springframework.integration:spring-integration-file
|
Maven |
≥ 6.3.0
≤ 6.3.14
|
|
|
org.springframework.integration:spring-integration-file
|
Maven |
≤ 5.5.20
|
|
References
Frequently Asked Questions
What is CVE-2026-40987?
Which Spring Integration File Support versions are affected?
What version fixes CVE-2026-40987?
Is spring-integration-file affected?
What is the CVSS score of CVE-2026-40987?
What CWE is associated with CVE-2026-40987?
How can I check Maven dependencies for CVE-2026-40987?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-792x-6vq6-j8r9",
"modified" : "2026-08-07T18:59:34Z",
"published" : "2026-06-11T09:31:55Z",
"aliases" : [ "CVE-2026-40987" ],
"summary" : "Spring Integration File Support: FTP/SFTP/SMB server can write arbitrary files anywhere on the client filesystem",
"details" : "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.\n\nAffected versions:\nSpring 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.integration:spring-integration-file"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.0.5"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 7.0.4"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.integration:spring-integration-file"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.5.0"
}, {
"fixed" : "6.5.9"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 6.5.8"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.integration:spring-integration-file"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.4.0"
}, {
"last_affected" : "6.4.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.integration:spring-integration-file"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.3.0"
}, {
"last_affected" : "6.3.14"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.integration:spring-integration-file"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "5.5.20"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40987"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/spring-projects/spring-integration"
}, {
"type" : "WEB",
"url" : "https://spring.io/security/cve-2026-40987"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-24T20:35:04Z",
"nvd_published_at" : "2026-06-11T07:16:27Z"
}
}