Impact
Affected is the _recv_file and _recv_pushd functions in the SCP Receive Handler of scp.py up to version 0.16.1. An attacker can craft SCP commands that cause a path traversal condition, enabling the creation or modification of files outside the intended destination directory. This remote exploitation can compromise confidentiality by reading protected files, integrity by altering critical files, and availability if essential files are overwritten. The weakness aligns with CWE‑22.
Affected Systems
The vulnerability impacts jbardin:scp.py. All releases through 0.16.1 are susceptible, while the patch incorporated in commit 42fc3aaa71411daed60544e3b40179c1038bed5d is available in release v0.16.2. Earlier versions lacking this commit remain at risk.
Risk and Exploitability
The CVSS base score is 5.3, indicating a moderate severity. EPSS is not available, so the current exploitation probability is unknown. The issue is remote and the component is commonly used for SCP transfers, making it a potential attack vector. The vulnerability is not listed in CISA’s KEV catalog. Attackers can trigger the traversal by initiating an SCP session that sends a filename including directory jumps to reach paths outside the intended base directory.
OpenCVE Enrichment