Summary
When run as root, legacy scp could retain setuid or setgid bits without a request to preserve permissions. Fixed in OpenSSH 10.3.
Technical analysis
The accompanying research article explains the finding, reproduction, and remediation status.
Read the technical write-upDisclosure timeline
- Public disclosure
Credits
Reported by Christos Papakonstantinou of Cantina and Spearbit.