ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2026-6103

Details

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.

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:14.04:LTSphp5
All versions before 5.5.9+dfsg-1ubuntu4.29+esm17 (fixed in 5.5.9+dfsg-1ubuntu4.29+esm17)
Ubuntu:Pro:16.04:LTSphp7.0
All versions before 7.0.33-0ubuntu0.16.04.16+esm21 (fixed in 7.0.33-0ubuntu0.16.04.16+esm21)
Ubuntu:Pro:18.04:LTSphp7.2
All versions before 7.2.24-0ubuntu0.18.04.17+esm13 (fixed in 7.2.24-0ubuntu0.18.04.17+esm13)
Ubuntu:Pro:20.04:LTSphp7.4
All versions before 7.4.3-4ubuntu2.29+esm4 (fixed in 7.4.3-4ubuntu2.29+esm4)
Ubuntu:22.04:LTSphp8.1
All versions before 8.1.2-1ubuntu2.27 (fixed in 8.1.2-1ubuntu2.27)
Ubuntu:24.04:LTSphp8.3
All versions before 8.3.6-0ubuntu0.24.04.12 (fixed in 8.3.6-0ubuntu0.24.04.12)
Ubuntu:26.10php8.5
All versions before 8.5.9-0ubuntu2 (fixed in 8.5.9-0ubuntu2)
Ubuntu:26.04:LTSphp8.5
All versions before 8.5.4-0ubuntu1.4 (fixed in 8.5.4-0ubuntu1.4)

References