scp in OpenSSH before 10.4 may place a file in the parent directory of an intended directory when the copy occurs between two remote destinations.
https://www.openwall.com/lists/oss-security/2026/07/06/5
https://www.openssh.org/releasenotes.html#10.4p1