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.
[
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"190059343526321250718249722846150668288",
"265185899346947669849958001449947920961",
"207441580209763168162942788988296410514",
"96551852497919177171655564292665931904"
]
},
"id": "CVE-2018-20684-7e525f07",
"source": "https://github.com/winscp/winscp/commit/49d876f2c5fc00bcedaa986a7cf6dedd6bf16f54",
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "source/core/ScpFileSystem.cpp"
}
},
{
"signature_version": "v1",
"digest": {
"length": 7337.0,
"function_hash": "94415055861517891977301272192252666951"
},
"id": "CVE-2018-20684-8f05019a",
"source": "https://github.com/winscp/winscp/commit/49d876f2c5fc00bcedaa986a7cf6dedd6bf16f54",
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "TSCPFileSystem::SCPSink",
"file": "source/core/ScpFileSystem.cpp"
}
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-20684.json"