Skip to content
High 7.1

Spring Integrationにリモートサーバーの指定でローカルの任意のパスへファイルを書き込まれる脆弱性

CVE-2026-59381 First seen on SecPulse

Summary

悪意のあるFTP・SFTP・SMBサーバーに接続すると、設定したローカルディレクトリの外の任意のパスにファイルを書き込まれるおそれがあります。影響はSpring Integrationの7.1.0以降7.1.2.1未満、7.0.0以降7.0.7.1未満、6.5.0以降6.5.12未満、6.4.0以降6.4.14未満、5.5.0以降5.5.23未満などの版です。修正版は7.1.2.1、7.0.7.1、6.5.12、6.4.14、5.5.23、7.1.3、7.0.8で、各版への更新をおすすめします。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

悪意のあるFTP・SFTP・SMBサーバーに接続すると、設定したローカルディレクトリの外の任意のパスにファイルを書き込まれるおそれがあります。影響はSpring Integrationの7.1.0以降7.1.2.1未満、7.0.0以降7.0.7.1未満、6.5.0以降6.5.12未満、6.4.0以降6.4.14未満、5.5.0以降5.5.23未満などの版です。修正版は7.1.2.1、7.0.7.1、6.5.12、6.4.14、5.5.23、7.1.3、7.0.8で、各版への更新をおすすめします。

Affected packages

PackageAffected → Fixed
SpringSpring Integration
≥ 7.1.0, < 7.1.2.1→ 7.1.2.1
≥ 7.0.0, < 7.0.7.1→ 7.0.7.1
≥ 6.5.0, < 6.5.12→ 6.5.12
≥ 6.4.0, < 6.4.14→ 6.4.14
≥ 5.5.0, < 5.5.23→ 5.5.23
≥ 7.1.0, < 7.1.3→ 7.1.3
≥ 7.0.0, < 7.0.8→ 7.0.8
Original description The description as published by the source.

The fix for CVE-2026-40987 validates only the file name against the local directory. For the remote file outbound gateway MGET command, the local directory itself can be derived from the server-controlled listing entry via the documented #remoteDirectory SpEL variable in a local-directory-expression . Since the directory is canonicalized before the containment check, the check passes even though the directory has already escaped the intended root, and the framework then creates the escaped directory.

As a result, a malicious FTP, SFTP or SMB server can write files with attacker-controlled content to arbitrary paths outside the configured local directory.

Applications are affected if they use the MGET command of an FTP, SFTP or SMB outbound gateway with a local directory expression that references #remoteDirectory (as in the reference documentation examples) and connect to a server that may be malicious or compromised.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details