{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:winscp:winscp:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "5.13.7"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "d3f40c5aa777f9f8ccf8f49bbd1e10a49deee337"
            },
            {
              "fixed": "49d876f2c5fc00bcedaa986a7cf6dedd6bf16f54"
            }
          ],
          "repo": "https://github.com/winscp/winscp",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {},
  "details": "In WinSCP before 5.14 beta, due to missing validation, the scp implementation would accept arbitrary files sent by the server, potentially overwriting unrelated files. This affects TSCPFileSystem::SCPSink in core/ScpFileSystem.cpp.",
  "id": "CVE-2018-20684",
  "modified": "2026-07-08T05:37:59.905457342Z",
  "published": "2019-01-10T21:29:00.297Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://www.oracle.com/security-alerts/cpujan2020.html"
    },
    {
      "type": "ADVISORY",
      "url": "http://www.securityfocus.com/bid/106526"
    },
    {
      "type": "ADVISORY",
      "url": "https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt"
    },
    {
      "type": "ADVISORY",
      "url": "https://winscp.net/eng/docs/history"
    },
    {
      "type": "FIX",
      "url": "https://github.com/winscp/winscp/commit/49d876f2c5fc00bcedaa986a7cf6dedd6bf16f54"
    },
    {
      "type": "FIX",
      "url": "https://winscp.net/tracker/1675"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ]
}