rarfile is vulnerable to Argument Injection
70
CVE Score
High
Argument Injection
The library assembles unrar subprocess command lines and parses RAR5 metadata while trusting several archive-controlled fields. Member names beginning with a dash are appended to the unrar argument list without a separator, so crafted filenames inject extraction flags, and NUL bytes, oversized password key-derivation counts, unbounded declared file sizes, and unsafe symlink targets are validated inconsistently. Processing a malicious archive can redirect or escape extraction, overwrite sibling files, exhaust CPU or memory, or crash the parser. The fix adds argument delimiters and path prefixes, caps sizes and iteration counts, contains symlink targets, and tightens header validation.
Upgrade the rarfile library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application opens or extracts RAR archives from untrusted or externally supplied sources.
0.0.1 - 4.4.0
Fixed in 4.5.0rarfile is vulnerable to Argument Injection in versions 0.0.1 - 4.4.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.