Uncovering the Blind Spot: Bypassing a Security Patch (CVE-2026–24884) to Achieve Arbitrary File…
The compressing library's path validation used string comparison that ignored pre-existing symlinks on disk. An attacker could plant a symlink via a Git repository, then a tarball entry matching that symlink name would write files outside the extraction directory.
infosecwriteups.com
Published on infosecwriteups.com
Bug hunting is rarely about running an automated scanner and waiting for a critical alert. More often than not, it’s about staring at a piece of code that has already been “fixed,” brewing another cup of coffee, and asking yourself: “What did the developers assume here that isn’t actually true?”
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The validation relied on string comparison of resolved paths without checking the actual filesystem for symlinks in the destination path.
Impact
An attacker could overwrite arbitrary files outside the extraction directory, potentially compromising the system or CI/CD pipeline.
What the attacker needed
Victim clones attacker's repository; victim extracts a tarball with matching filename; compressing library used for extraction
The fix
The fix was to check each path segment on disk using lstat to detect symlinks and reject them, preventing the write.
How it was found
- Attacker creates a Git repository containing a symlink pointing to a sensitive file outside the working directory.
- Victim clones the repository, and Git creates the symlink on disk.
- Victim extracts a tarball using the compressing library into the cloned directory.
- The tarball contains a file entry whose name matches the symlink.
- The library validates the path string, deems it safe, and writes the file, following the symlink and overwriting the target file.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A library that unpacks archives checked only the text of file paths to ensure they stayed inside the target folder. But it never checked whether a folder on disk was actually a shortcut (symlink) pointing elsewhere. An attacker could create such a shortcut through a Git repository, and then the library would write files to unintended locations.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.