Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-21436 — Proof-of-concept exploit for CVE-2026-21436, demonstrating path traversal in Solus OS eopkg package manager allowing arbitrary file write during package installation. | Kitploit
Tools/GitHubGitHub/osmancanvural/cve-2026-21436
Vulnerability AnalysisExploitationMalware AnalysisSupply Chain SecurityBinary Exploitation
GitHubosmancanvural/cve-2026-21436

CVE-2026-21436

Proof-of-concept exploit for CVE-2026-21436, demonstrating path traversal in Solus OS eopkg package manager allowing arbitrary file write during package installation.

View Repository
38 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-21436

eopkg <= 4.3.4, the Solus OS package manager, writes files containing absolute paths in package contents directly to the specified directory during the installation of packages with the .eopkg extension.

Even if the --destdir parameter, used to install the package to a specific directory, is used, this restriction can be bypassed thanks to the ../ (traversal) characters in the package, allowing attacker-crafted files to be written to any directory on the system. Since the eopkg tool runs with root privileges during package installation, it is also possible to overwrite existing files on the system.

The cause of the vulnerability is that eopkg does not use the filter parameter with Python's .extract() method when extracting packages, nor does it validate file paths in any way.

POC

root@kitploit:~
$ git clone https://github.com/osmancanvural/CVE-2026-21436/
$ cd CVE-2026-21436
  1. Download the .eopkg file you want to modify.
  2. Extract the contents of the install.tar.xz archive inside it into the tarcontent folder.
  3. Run the script to create the malicious archive:
root@kitploit:~
$ python3 archiveCreator.py
  1. Rename the generated malicious-install.tar.xz file to install.tar.xz and replace the file in the original package with it.
  2. When the package is installed on Solus OS, you can see that the /tmp/hello.txt file has been created.

Note: You can edit the archiveCreator.py file and the tarcontent folder to change the target directory and file content.

Download Tool