High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-20684
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:27 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-20684
Complete source record
{
"id": "6a27eb2c5805b298d62193fd0d8c5177c51e67ff4bc21f3adcd91fd7571add56",
"url": "https://osv.dev/vulnerability/CVE-2018-20684",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-20684",
"summary": "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.",
"evidence": "osv:CVE-2018-20684",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2018-20684",
"aliases": [
"CVE-2018-20684"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/winscp/winscp",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "d3f40c5aa777f9f8ccf8f49bbd1e10a49deee337"
},
{
"fixed": "49d876f2c5fc00bcedaa986a7cf6dedd6bf16f54"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:winscp:winscp:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "5.13.7"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "49d876f2c5fc00bcedaa986a7cf6dedd6bf16f54"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"5.13.7",
"5.13.6",
"5.13.5",
"5.13.4",
"5.13.3",
"5.13.2",
"5.13.1",
"5.13",
"5.12.2",
"5.12.1",
"5.12",
"5.11.3",
"5.11.2",
"5.11.1",
"5.11",
"5.10.4",
"5.10.3",
"5.10.2",
"5.9.6",
"5.10.1",
"5.10",
"5.9.5",
"5.9.4",
"5.9.3",
"5.9.2",
"5.9.1",
"5.9",
"5.8.4",
"5.8.3",
"5.8.2",
"5.7.7",
"5.8.1",
"5.8",
"5.7.6"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-20684.json",
"vanir_signatures": [
{
"id": "CVE-2018-20684-7e525f07",
"digest": {
"threshold": 0.9,
"line_hashes": [
"190059343526321250718249722846150668288",
"265185899346947669849958001449947920961",
"207441580209763168162942788988296410514",
"96551852497919177171655564292665931904"
]
},
"source": "https://github.com/winscp/winscp/commit/49d876f2c5fc00bcedaa986a7cf6dedd6bf16f54",
"target": {
"file": "source/core/ScpFileSystem.cpp"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-20684-8f05019a",
"digest": {
"length": 7337,
"function_hash": "94415055861517891977301272192252666951"
},
"source": "https://github.com/winscp/winscp/commit/49d876f2c5fc00bcedaa986a7cf6dedd6bf16f54",
"target": {
"file": "source/core/ScpFileSystem.cpp",
"function": "TSCPFileSystem::SCPSink"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:35:10Z"
}
}
],
"modified": "2026-10-20T13:35:10.173981326Z",
"provider": "osv",
"references": [
"https://www.oracle.com/security-alerts/cpujan2020.html",
"https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt",
"https://winscp.net/eng/docs/history",
"https://github.com/winscp/winscp/commit/49d876f2c5fc00bcedaa986a7cf6dedd6bf16f54",
"https://winscp.net/tracker/1675"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-20684",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387844,
"published_at": "2019-01-10T21:29:00.297+00:00"
}