Skip to content

Security: path traversal (tar slip) in untar_dir() — CVE-2026-65320 #974

Open

Description

@rahulreddykarne

fastcore.xtras.untar_dir() (via _unpack) extracts tar archives with
shutil.unpack_archive() and no path validation, letting a crafted tar write
files outside the intended directory (arbitrary file write).

Vulnerable code:
shutil.unpack_archive(str(fname), str(out)) # no filter / no validation

Reported privately via CNA; no maintainer response.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions