CVE Vulnerabilities

CVE-2026-42496

Improper Link Resolution Before File Access ('Link Following')

Published: May 26, 2026 | Modified: Jun 17, 2026
CVSS 3.x
9.1
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
8.2 IMPORTANT
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Archive::Tar versions before 3.08 for Perl extract symlinks with attacker controlled targets outside the extraction directory.

_make_special_file() passes the tar headers linkname to symlink() without validating it against absolute paths or .. segments. The secure-extract mode check that guards regular file extraction does not cover the symlink target.

A subsequent open through the extracted name reads or writes the attacker chosen path.

Weakness

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Affected Software

NameVendorStart VersionEnd Version
Archive::tarArchive::tar_project*3.08 (excluding)
PerlUbuntuesm-infra-legacy/trusty*
PerlUbuntuesm-infra-legacy/xenial*
PerlUbuntuesm-infra/bionic*
PerlUbuntuesm-infra/focal*
PerlUbuntujammy*
PerlUbuntunoble*
PerlUbuntuquesting*
PerlUbunturesolute*

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References