Intel

AIKIDO-2026-48452

tar is vulnerable to Uncontrolled Recursion

Uncontrolled RecursionGHSA-r292-9mhp-454m Published 4 days ago

53

Medium Risk

This Affects:

JStar
3.0.0 - 7.5.20
Fixed in 7.5.21
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.

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.

Background info

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

How to fix this

Upgrade the tar library to the patch version.