BIT-php-2026-6103: Phar TAR phar_tar_number() Integer Overflow - Archive Entry Injection
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
Event History
Frequently Asked Questions
Does exploitation require authentication or user interaction?
No. The CVSS vector lists privileges required as none and user interaction as none.
Is this exposed over the network by the CVSS assessment?
No. The CVSS attack vector is local (AV:L), so the assessment does not describe a network-reachable attack path.
What security impact is assigned by the CVSS vector?
The vector assigns low integrity impact and no confidentiality or availability impact. It also indicates a changed scope (S:C).