{"answers":{"affected":"10 open source packages ship an affected version, including org.springframework.integration:spring-integration-file. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40987 in the wild and no public exploit code.","fix":"Upgrade org.springframework.integration:spring-integration-file to a fixed version for your release line: 6.5.9 or 7.0.5.","what":"CVE-2026-40987 is a high-severity path traversal vulnerability in Spring Integration, published on 11 Jun 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-40987 and fix it if it is affected.\n\nWhat it is: CVE-2026-40987 is a high-severity path traversal vulnerability in Spring Integration, published on 11 Jun 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-40987 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.springframework.integration:spring-integration-file (Maven): affected all versions up to 5.5.20; no fix listed\n- org.springframework.integration:spring-integration-file (Maven): affected all versions up to 5.5.20; no fix listed\n- org.springframework.integration:spring-integration-file (Maven): affected from 6.3.0 up to 6.3.14; no fix listed\n- org.springframework.integration:spring-integration-file (Maven): affected from 6.3.0 up to 6.3.14; no fix listed\n- org.springframework.integration:spring-integration-file (Maven): affected from 6.4.0 up to 6.4.11; no fix listed\n- org.springframework.integration:spring-integration-file (Maven): affected from 6.4.0 up to 6.4.11; no fix listed\n- org.springframework.integration:spring-integration-file (Maven): affected from 6.5.0; fixed in 6.5.9\n- org.springframework.integration:spring-integration-file (Maven): affected from 6.5.0; fixed in 6.5.9\n- org.springframework.integration:spring-integration-file (Maven): affected from 7.0.0; fixed in 7.0.5\n- org.springframework.integration:spring-integration-file (Maven): affected from 7.0.0; fixed in 7.0.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40987/ (Markdown: https://insights.sbomify.com/CVE-2026-40987/index.md)","id":"CVE-2026-40987","markdown":"https://insights.sbomify.com/CVE-2026-40987/index.md","name":"CVE-2026-40987","record":{"aliases":["CLSA-2026-1785380362","CLSA-2026-1788470094","CLSA-2026-1791488248","GHSA-792x-6vq6-j8r9","ROOT-APP-MAVEN-CVE-2026-40987"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Spring Integration library","requires_auth":"low_privilege","summary":"A malicious remote server can write arbitrary files to the client filesystem via path traversal in Spring Integration's file synchronizer, potentially leading to code execution.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[{"product":"spring_integration","vendor":"vmware"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.\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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2026-05-11","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-05-11T18:17:53Z","kind":"github_poc","ref":"https://github.com/daehyuh/CVE-2026-40987","stars":0,"title":"CVE-2026-40987 PoC"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Spring Integration File Support: FTP/SFTP/SMB server can write arbitrary files anywhere on the client filesystem","id":"CVE-2026-40987","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":10,"n_references":1,"next":{"headline":"Unbounded DEFLATE Inflation in SAML 2.0 Service Provider","id":"CVE-2026-40988"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["5.5.20"],"package":"org.springframework.integration:spring-integration-file","purl":null,"source":"GHSA-792x-6vq6-j8r9"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["5.5.20"],"package":"org.springframework.integration:spring-integration-file","purl":"pkg:maven/org.springframework.integration/spring-integration-file","source":"GHSA-792x-6vq6-j8r9"},{"ecosystem":"Maven","fixed":[],"introduced":["6.3.0"],"last_affected":["6.3.14"],"package":"org.springframework.integration:spring-integration-file","purl":null,"source":"GHSA-792x-6vq6-j8r9"},{"ecosystem":"Maven","fixed":[],"introduced":["6.3.0"],"last_affected":["6.3.14"],"package":"org.springframework.integration:spring-integration-file","purl":"pkg:maven/org.springframework.integration/spring-integration-file","source":"GHSA-792x-6vq6-j8r9"},{"ecosystem":"Maven","fixed":[],"introduced":["6.4.0"],"last_affected":["6.4.11"],"package":"org.springframework.integration:spring-integration-file","purl":null,"source":"GHSA-792x-6vq6-j8r9"},{"ecosystem":"Maven","fixed":[],"introduced":["6.4.0"],"last_affected":["6.4.11"],"package":"org.springframework.integration:spring-integration-file","purl":"pkg:maven/org.springframework.integration/spring-integration-file","source":"GHSA-792x-6vq6-j8r9"},{"ecosystem":"Maven","fixed":["6.5.9"],"introduced":["6.5.0"],"last_affected":[],"package":"org.springframework.integration:spring-integration-file","purl":null,"source":"GHSA-792x-6vq6-j8r9"},{"ecosystem":"Maven","fixed":["6.5.9"],"introduced":["6.5.0"],"last_affected":[],"package":"org.springframework.integration:spring-integration-file","purl":"pkg:maven/org.springframework.integration/spring-integration-file","source":"GHSA-792x-6vq6-j8r9"},{"ecosystem":"Maven","fixed":["7.0.5"],"introduced":["7.0.0"],"last_affected":[],"package":"org.springframework.integration:spring-integration-file","purl":null,"source":"GHSA-792x-6vq6-j8r9"},{"ecosystem":"Maven","fixed":["7.0.5"],"introduced":["7.0.0"],"last_affected":[],"package":"org.springframework.integration:spring-integration-file","purl":"pkg:maven/org.springframework.integration/spring-integration-file","source":"GHSA-792x-6vq6-j8r9"}],"prev":{"headline":"Spring Web Flow JS RemotingHandler renders non-HTML Response as HTML","id":"CVE-2026-40986"},"products":["Spring Integration"],"published":"2026-06-11","related":[{"cvss_score":8.2,"headline":"fluxTransform shared RequestMessageHolder causes cross-message header leakage under async fluxFunction","id":"CVE-2026-59324","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":8,"headline":"Deserialization allow-list silently bypassed: setBeanClassLoader replaces deserializer but mapper keeps stale reference","id":"CVE-2026-59307","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":6.8,"headline":"Fixed predictable /tmp/ziptransformer work directory enables symlink pre-creation","id":"CVE-2026-59311","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":6.6,"headline":"SMB minimum protocol dialect defaults to SMB1","id":"CVE-2026-59293","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":6.5,"headline":"Unbounded decompression in UnZipTransformer enables zip-bomb DoS","id":"CVE-2026-59274","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":6.4,"headline":"Unsafe Java deserialization in SerializingHttpMessageConverter — remote code execution","id":"CVE-2026-47864","kev_date_added":null,"published":"2026-08-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-23","vendors":["Spring"]},"summary":"A malicious remote server can write arbitrary files to the client filesystem via path traversal in Spring Integration's file synchronizer, potentially leading to code execution.","url":"https://insights.sbomify.com/CVE-2026-40987/"}