BIT-libphp-2026-6103: Phar TAR phar_tar_number() Integer Overflow - Archive Entry Injection

Published Sep 25, 2026
·
Updated

phartarnumber() parses the octal size field of a TAR header into a uint32t with no overflow check. The field is 11 octal digits wide and holds values up to 0x1FFFFFFFF, so a size above 0xFFFFFFFF silently wraps. The parser then skips the wrong number of data blocks and interprets attacker-controlled file content as the next TAR header, which lets a crafted archive inject entries that PharData reports and extracts as if they were genuine.

Affected Software

1 affected component
PHP Phar

Event History

Sep 25, 2026
CVE Published
via OSV·08:08 PM
Data Sourced
via OSV·08:08 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are realistically exposed?

Applications using PHP PharData to parse TAR archives are exposed when they process a crafted archive supplied by an attacker. The issue affects how archive entries are reported and extracted after the parser loses alignment.

2

What does an attacker need to exploit this?

The attacker needs to provide a TAR archive containing an oversized octal size field and controlled content positioned to be interpreted as a subsequent TAR header. No privileges or user interaction are indicated by the supplied vector.

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