Skip to main content
← All vulnerabilities
CVE-2026-6103BIT-LIBPHP-2026-6103BIT-PHP-2026-6103BIT-PHP-MIN-2026-6103GHSA-J3WH-G957-2M85

Phar TAR phar_tar_number() Integer Overflow - Archive Entry Injection

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.2.34, 8.3.35, 8.4.26, 8.5.11
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

phar_tar_number() parses the octal size field of a TAR header into a uint32_t 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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • PHP Group PHP

    From 8.2.* · fixed in 8.2.34; From 8.3.* · fixed in 8.3.35; From 8.4.* · fixed in 8.4.26; From 8.5.* · fixed in 8.5.11

  • libphpBitnami

    From 8.2.0 · fixed in 8.2.34; From 8.3.0 · fixed in 8.3.35; From 8.4.0 · fixed in 8.4.26; From 8.5.0 · fixed in 8.5.11

  • phpBitnami

    From 8.2.0 · fixed in 8.2.34; From 8.3.0 · fixed in 8.3.35; From 8.4.0 · fixed in 8.4.26; From 8.5.0 · fixed in 8.5.11

  • php-minBitnami

    From 8.2.0 · fixed in 8.2.34; From 8.3.0 · fixed in 8.3.35; From 8.4.0 · fixed in 8.4.26; From 8.5.0 · fixed in 8.5.11

References 1

GitHub · php/php-src