CVE-2026-87910: tarfile hardlink fallback ignores custom extraction filter rejection via None

Published Sep 11, 2026
·
Updated

When tarfile extracts a link on a system that doesn't support links, it falls back to extracting a member from the archive. In this case, the filter function is run twice: once for the extracted member, and once with name set to the location of the link. For one of the calls, the return value was ignored. Instead, the member should be skipped if either call returns None.

Affected Software

1 affected component
tarfile=

Event History

Sep 11, 2026
CVE Published
via MITRE·05:27 PM
Data Sourced
via MITRE·05:27 PM
DescriptionWeakness

Frequently Asked Questions

1

Which environments are exposed to this behavior?

The issue occurs when tarfile extracts a link on a system that does not support links and therefore falls back to extracting a member from the archive. It is relevant where a custom extraction filter is used to reject members by returning None.

2

What must an attacker provide to exploit it?

An attacker would need an archive containing a link that triggers the no-link-support fallback and a target member involved in that fallback. The custom extraction filter must return None for one of the two filter calls whose result was ignored.

3

Are archives blocked by a custom extraction filter always skipped?

No. In the affected fallback path, tarfile runs the filter twice, but ignores one return value. A member can therefore be extracted even when either the member check or the link-location check returns None.

4

What is the intended safe behavior?

The member should be skipped if either of the two extraction-filter calls returns None. Systems relying on custom filters should ensure this condition is enforced for hardlink fallback extraction paths.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203