← All Advisories
Reported from OT-Advisories.com as of

Perl's Archive::Tar Hardlinks Extracted Files to Attacker-Chosen Targets Sharing the Victim's Inode, Then Applies the Tar Header's Permissions to It

Last refreshed2026-11-19

Status: UPDATED  |  Advisory ID: CVE-2026-42497

Key Details

CVECVE-2026-42497
CVSS Score / Version
7.5 (High) / CVSS v3.1
Updated2026-11-10
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS Prose
attack vector is network; attack complexity is low; privileges required is none; user interaction is none; scope is unchanged; confidentiality impact is none; integrity impact is high; availability impact is none.
Affected products
see table below
Classified as
CWE-59 (Improper Link Resolution Before File Access ('Link Following'))
Exploitation prediction (EPSS)
0.47% probability of exploitation in the next 30 days (42% percentile) -- FIRST.org's EPSS model.

Affected Products, Subsystems & Sectors

VendorProductAffected VersionsPatch Status
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)
archive\\
BINGOSArchive::Tar
SubsystemsControllers & Field I/O
SectorsMultiple

What to Know

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. (NVD)

What to Do

Currently no fix is available
Source: Siemens SSA-457936

References

SourceReference
NVDhttps://nvd.nist.gov/vuln/detail/CVE-2026-42497
CVEhttps://www.cve.org/CVERecord?id=CVE-2026-42497
Vendor advisoryhttps://cert-portal.siemens.com/productcert/html/ssa-457936.html
Report compilation © 2026 OT-Advisories.com  ·  CC BY 4.0  ·  Source materials remain the property of their respective publishers as cited.