{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "7.0.0"
              },
              {
                "fixed": "7.0.4"
              },
              {
                "introduced": "6.5.0"
              },
              {
                "fixed": "6.5.8"
              },
              {
                "introduced": "5.5.0"
              },
              {
                "fixed": "5.5.20"
              }
            ],
            "source": "DESCRIPTION"
          },
          "events": [
            {
              "introduced": "02cc1446de420deb1c6a84314f7e3d40cfa6ad07"
            },
            {
              "fixed": "48e3a3355e575103a108d1226db9640a6b8620bb"
            },
            {
              "introduced": "57110e69a935c587df9c0d67541857faea2645c3"
            },
            {
              "fixed": "7a11e90ae02af3dd3bb0b148124731b7005f944a"
            },
            {
              "introduced": "349aad36d8f254b15763b2ffee83653a96832eba"
            },
            {
              "fixed": "90f81a979854b07c9fd9535983df20782a3bf236"
            }
          ],
          "repo": "https://github.com/spring-projects/spring-integration",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "vmware",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40987.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "7.0.0"
          },
          {
            "fixed": "7.0.4.1"
          },
          {
            "introduced": "6.5.0"
          },
          {
            "fixed": "6.5.8.1"
          },
          {
            "introduced": "6.4.0"
          },
          {
            "fixed": "6.4.12"
          },
          {
            "introduced": "6.3.0"
          },
          {
            "fixed": "6.3.15"
          },
          {
            "introduced": "5.5.0"
          },
          {
            "fixed": "5.5.21"
          }
        ],
        "source": "AFFECTED_FIELD"
      },
      {
        "extracted_events": [
          {
            "introduced": "7.0.0"
          },
          {
            "fixed": "7.0.4"
          },
          {
            "introduced": "6.5.0"
          },
          {
            "fixed": "6.5.8"
          },
          {
            "introduced": "6.4.0"
          },
          {
            "fixed": "6.4.11"
          },
          {
            "introduced": "6.3.0"
          },
          {
            "fixed": "6.3.14"
          },
          {
            "introduced": "5.5.0"
          },
          {
            "fixed": "5.5.20"
          }
        ],
        "source": "DESCRIPTION"
      }
    ]
  },
  "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.",
  "id": "CVE-2026-40987",
  "modified": "2026-09-06T03:31:00.061793334Z",
  "published": "2026-06-11T05:03:32.606Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://spring.io/security/cve-2026-40987"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40987.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40987"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:L",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Remote-file synchronizer in Spring Integration writes server-supplied filename under localDirectory without canonicalization"
}