Intel

AIKIDO-2026-48452

tar is vulnerable to Uncontrolled Recursion

CVE-2026-73566Published Jul 23, 2026
July 23, 2026

53

CVE Score

Medium

Uncontrolled Recursion

Are you affected? Scan for Free

TL;DR

The filesFilter helper in tar installs a recursive mapHas function whenever a caller lists or extracts an archive with a member-selection list. mapHas walks an entry path upward one directory segment per recursive call with no depth limit, so a crafted archive using a long-path header can supply tens of thousands of path segments. Parsing such an entry overflows the call stack and throws an uncatchable error that terminates the process on streaming and async consumers, before any depth guard runs. The fix caps the recursion depth in mapHas.

How do I fix this?

Upgrade the tar 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 lists or extracts untrusted archives with a member-selection list.

Package

Versions

3.0.0 - 7.5.20

Fixed in 7.5.21

Background info

tar is vulnerable to Uncontrolled Recursion in versions 3.0.0 - 7.5.20.

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