A path traversal vulnerability in LocalFolderExtractor allows an attacker to write arbitrary files with attacker-controlled content into sibling directories when a crafted RAR archive is extracted.
Given an extraction directory set to /tmp/extract, a crafted archive with an entry with the filename as ../extract_evil/file.txt would be actually extracted to /tmp/extract_evil/file.txt.
The createDirectory() and createFile() methods inLocalFolderExtractor validate extraction paths using a string prefix.
{
"cwe_ids": [
"CWE-22"
],
"github_reviewed": true,
"github_reviewed_at": "2026-04-16T21:14:33Z",
"nvd_published_at": "2026-04-20T16:16:49Z",
"severity": "MODERATE"
}