Vulnerabilities in pkg:maven/org.springframework.integration/spring-integration-file

PACKAGE
Advisory Identifier: GHSA-792x-6vq6-j8r9
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.springframework.integration/spring-integration-file

1 Known Advisory Record(s)

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

CVE Identifier CVE-2026-40987
GHSA Identifier GHSA-792x-6vq6-j8r9
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Spring Integration File Support
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability Low (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.

org.springframework.integration:spring-integration-file fixed: 7.0.5
<dependency>
    <groupId>org.springframework.integration</groupId>
    <artifactId>spring-integration-file</artifactId>
    <version>7.0.5</version>
</dependency>
org.springframework.integration:spring-integration-file fixed: 6.5.9
<dependency>
    <groupId>org.springframework.integration</groupId>
    <artifactId>spring-integration-file</artifactId>
    <version>6.5.9</version>
</dependency>
org.springframework.integration:spring-integration-file fixed: Latest secure release
<dependency>
    <groupId>org.springframework.integration</groupId>
    <artifactId>spring-integration-file</artifactId>
    <version>Latest secure release</version>
</dependency>
org.springframework.integration:spring-integration-file fixed: Latest secure release
<dependency>
    <groupId>org.springframework.integration</groupId>
    <artifactId>spring-integration-file</artifactId>
    <version>Latest secure release</version>
</dependency>
org.springframework.integration:spring-integration-file fixed: Latest secure release
<dependency>
    <groupId>org.springframework.integration</groupId>
    <artifactId>spring-integration-file</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2026-40987 Affected Spring Integration File Support Versions

5 component(s)
Fixed Versions:
7.0.56.5.9
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?
CVE-2026-40987 is a security vulnerability in Spring Integration File Support involving FTP/SFTP/SMB server can write arbitrary files anywhere on the client filesystem under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Spring Integration File Support versions are affected?
Affected versions include releases prior to 7.0.5, 6.5.9 across affected packages: org.springframework.integration:spring-integration-file.
What version fixes CVE-2026-40987?
Upgrading to 7.0.5, 6.5.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring-integration-file affected?
Yes, org.springframework.integration:spring-integration-file is affected in releases prior to 7.0.5, 6.5.9, Latest secure release. Upgrade your dependency to 7.0.5, 6.5.9, Latest secure release or later.
What is the CVSS score of CVE-2026-40987?
CVE-2026-40987 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:L.
What CWE is associated with CVE-2026-40987?
CVE-2026-40987 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (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.).
How can I check Maven dependencies for CVE-2026-40987?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springframework.integration'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}