Vendors › PHP

CVE-2026-6103

Medium (4.0) EPSS 0.1% PHP · Phar

Phar TAR phar_tar_number() Integer Overflow - Archive Entry Injection

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.

Published2026-09-24
Updated2026-09-25
AffectedPHP versions < 8.2.34; PHP versions < 8.3.35; PHP versions < 8.4.26; PHP versions < 8.5.11
FixUpgrade to 8.2.34, 8.3.35, 8.4.26, 8.5.11 (first fixed release per supported branch).
CVEMesh analysisThe vulnerability is an integer overflow in the phar_tar_number() function, which can be exploited to inject malicious archive entries. Exploitation requires a specially crafted TAR archive. The most important action is to upgrade to PHP version 8.2.34, 8.3.35, 8.4.26, or 8.5.11.
AI-generated — see the vendor advisory for the authoritative text.
Vendor advisoryhttps://github.com/php/php-src/security/advisories/GHSA-j3wh-g957-2m85

CVEs (1)

CVECWETypeImpactLinks
CVE-2026-6103CWE-190OverflowOtherNVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Same CVE in other advisories

Open in the CVEMesh app Create a free account

Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.

CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.