Advisory

DEBIAN-CVE-2026-42497

Also known as: CVE-2026-42497

Summary

The record has no summary.

Details

Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory. _make_special_file() passes the tar header's linkname to link() without validating it against absolute paths or .. segments, creating a hardlink that shares the victim file's inode. A subsequent write through the extracted name modifies the victim file, and the post-extraction chmod, chown, and utime block in _extract_file() (guarded only against symlinks via -l) applies the tar header's mode, owner, and timestamps to the shared inode during extraction alone.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Dates

Published
2026-05-26 02:16 UTC
Modified
2026-11-11 09:47 UTC

Affected packages and fixes

perl

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 5.36.0-7+deb12u4 (ecosystem)

Fixed versions

5.36.0-7+deb12u4

Fix

  • Fixed version 5.36.0-7+deb12u4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

perl

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 5.40.1-6+deb13u1 (ecosystem)

Fixed versions

5.40.1-6+deb13u1

Fix

  • Fixed version 5.40.1-6+deb13u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

perl

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 5.42.3-1 (ecosystem)

Fixed versions

5.42.3-1

Fix

  • Fixed version 5.42.3-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences