
Proof-of-concept exploit for CVE-2025-55188 demonstrating arbitrary file write via symlink traversal in vulnerable 7-Zip versions prior to 25.01.
This proof-of-concept demonstrates CVE-2025-55188, a vulnerability in 7-Zip versions prior to 25.01. The flaw occurs because 7-Zip does not properly handle symbolic links during extraction, allowing a crafted archive to overwrite arbitrary files on the target system.
If a victim extracts a malicious archive, the attacker can:
.bashrc, ~/.ssh/authorized_keys, configuration files).7z x or a vulnerable extraction tool../exploit.sh <payload-file> <symlink-target> <output-archive>
../../.ssh/authorized_keys)..7z archive.Example:
./exploit.sh mykey.pub ../../.ssh/authorized_keys exploit.7z
This PoC is provided for educational and testing purposes only. Do not use it on systems you do not own or have explicit permission to test. Unauthorized use may violate laws and result in criminal or civil penalties.