Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2025-55188 PoC — 7-Zip 安全漏洞

Source
Associated Vulnerability
Title:7-Zip 安全漏洞 (CVE-2025-55188)
Description:7-Zip是7-Zip开源的一个压缩软件。 7-Zip 25.01之前版本存在安全漏洞,该漏洞源于解压时未正确处理符号链接。
Readme
# CVE-2025-55188-7z-exploit
7-Zip Symlink Arbitrary File Write PoC (CVE-2025-55188)
---

#### Description
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:

- Overwrite sensitive files (e.g., .bashrc, ~/.ssh/authorized_keys, configuration files).
- Potentially gain code execution or unauthorized access.


#### How it Works
An attacker creates a symbolic link pointing to a target file outside the extraction directory.
The link is added to a tar archive along with a payload file.
When the archive is extracted with a vulnerable version of 7-Zip, the symlink is followed, and the payload overwrites the target file.

#### Requirements
7-Zip version older than 25.01.
Target must extract the archive with 7z x or a vulnerable extraction tool.
The extraction location must allow symlink traversal to the intended target file.
#### Usage
```bash
./exploit.sh <payload-file> <symlink-target> <output-archive>
```
- payload-file: File containing the malicious content to write.
- symlink-target: Path to the file you want to overwrite (e.g., ../../.ssh/authorized_keys).
- output-archive: Name of the crafted .7z archive.
### Example:
```bash
./exploit.sh mykey.pub ../../.ssh/authorized_keys exploit.7z
```
---

### Disclaimer
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.
File Snapshot

[4.0K] /data/pocs/3df744046b630e903de28dcbf391e5c8fe605a2b ├── [ 493] exploit.sh └── [1.7K] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.