CVE-2026-9538: Archive::Tar versions before 3.10 for Perl allow memory exhaustion via attacker controlled entry size field in tar header

Published May 26, 2026
·
Updated

Archive::Tar versions before 3.10 for Perl allow memory exhaustion via attacker controlled entry size field in tar header.

readtar() reads each entry's payload with $handle->read($$data, $block), where $block is derived from the entry's 12-byte size field in the tar header with no upper bound on that value.

A crafted header declaring a multi-gigabyte size causes Perl to allocate a scalar of that size.

Affected Software

2 affected components
cpan/Archive/Tar<3.10
Archive\ \<3.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Archive::Tar for Perl to a version that resolves this vulnerability.

    Fixed in 3.10
  2. Upgrade

    Upgrade Archive::Tar for Perl to a version that resolves this vulnerability.

    Fixed in 3.10 or later

Event History

May 26, 2026
CVE Published
via MITRE·12:18 AM
Data Sourced
via MITRE·12:18 AM
RemedyDescriptionWeakness
Data Sourced
via Red Hat·02:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·02:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
May 8, 58583
Event
via FIRST·10:00 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-9538?

CVE-2026-9538 has a risk score of 28, indicating a moderate to high severity level.

2

How do I fix CVE-2026-9538?

To fix CVE-2026-9538, upgrade to Archive::Tar version 3.10 or later.

3

What is the impact of CVE-2026-9538?

CVE-2026-9538 allows for memory exhaustion through controlled entry size fields in the tar header, potentially leading to denial of service.

4

Which versions of Archive::Tar are affected by CVE-2026-9538?

Archive::Tar versions prior to 3.10 are affected by CVE-2026-9538.

5

Who is affected by CVE-2026-9538?

Anyone using Archive::Tar versions before 3.10 in their Perl applications may be affected by CVE-2026-9538.

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