The vulnerability stems from how file transfer functions (put_file/fetch_file) in chroot/jail/zone connection plugins handled paths. Pre-patch versions constructed target paths by naively joining the restricted environment's root directory with user-supplied paths, then used shutil.copyfile. This allowed symlinks within the restricted environment to resolve to host filesystem paths. The patches replaced this with in-environment 'dd' execution, ensuring symlinks are resolved within the restricted environment. The affected functions are clearly identified in commit diffs and CVE descriptions, with high confidence due to direct correlation between the vulnerability mechanism and the patched code changes.