In sftp in OpenSSH before 10.6, a server can trigger directory traversal (causing files to be written to unintended locations) during a recursive copy operation.
10.6Exploitability
AV:NAC:HPR:NUI:RScope
S:UImpact
C:NI:LA:L4.2/CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:LInput Validation