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

CVE-2026-6103 affects 47 listed versions of PHP in the Dawnsentry catalogue.

3.3CVSS low
Proof of concept publicexploitation
under 1%EPSS (next 30 days)
25 September 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PHP

47 of 250 listed versions are affected. Fixed in 8.5.11, 8.4.26, 8.3.35, 8.2.34. The newest release, 8.6.0, is not affected.

8.5.10 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 8.5.2 8.5.1 8.5.0 8.4.25 8.4.24 8.4.23 8.4.22 8.4.21 8.4.20 8.4.19 8.4.18 8.4.17 8.4.16 8.4.15 8.4.14 8.3.33 8.3.32 8.3.31 8.3.30 8.3.29 8.3.28 8.3.27 8.3.26 8.3.25 8.3.24 8.3.23 8.3.22 8.2.33 8.2.32 8.2.31 8.2.30 8.2.29 8.2.28 8.2.27 8.2.26 8.2.25 8.2.24 8.2.23 8.2.22

What it is

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.

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N (NVD)

Published by Php on 25 September 2026. Last changed 23 October 2026.

Sources

Check one version you run: look CVE-2026-6103 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.