{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "5.17.10"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c6cd72a4c5a1d3903aafeaab5b56a9c1b0363407"
            },
            {
              "fixed": "faa96e8144e6925a380f94a97aa382c9427f688d"
            }
          ],
          "repo": "https://github.com/winscp/winscp",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "WinSCP before 5.17.10 allows remote attackers to execute arbitrary programs when the URL handler encounters a crafted URL that loads session settings. (For example, this is exploitable in a default installation in which WinSCP is the handler for sftp:// URLs.)",
  "id": "CVE-2021-3331",
  "modified": "2026-04-01T23:09:34.665188380Z",
  "published": "2021-01-27T21:15:16.840Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://winscp.net/eng/docs/rawsettings"
    },
    {
      "type": "ADVISORY",
      "url": "https://winscp.net/eng/docs/history#5.17.10"
    },
    {
      "type": "FIX",
      "url": "https://winscp.net/tracker/1943"
    },
    {
      "type": "FIX",
      "url": "https://github.com/winscp/winscp/commit/faa96e8144e6925a380f94a97aa382c9427f688d"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}