Intel

AIKIDO-2026-95493

rarfile is vulnerable to Argument Injection

GHSA-94vx-95fq-wwvpPublished Aug 6, 2026
August 6, 2026

70

CVE Score

High

Argument Injection

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the rarfile library to the patch version.

Who does this affect?

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.

Package

Versions

0.0.1 - 4.4.0

Fixed in 4.5.0

Background info

rarfile is vulnerable to Argument Injection in versions 0.0.1 - 4.4.0.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea