CVE-2026-6103
Phar TAR phar_tar_number() Integer Overflow - Archive Entry Injection
Reported by php · Published September 25, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php-enchant | errata.rockylinux.org | 7.4.33-8.module, 0:7.4.33-8.module+el8.10.0+40393+c071e357.aarch64 |
| php8.4 | Amazon Linux | 8.4.26-1.amzn2023.0.1 |
| php8.3-fpm | Amazon Linux | 8.3.35-1.amzn2023.0.1 |
| php-enchant-debuginfo | errata.rockylinux.org | 7.4.33-8.module, 0:7.4.33-8.module+el8.10.0+40393+c071e357.x86_64 |
| php8.2-common | Amazon Linux | 8.2.34-1.amzn2023.0.1 |
| php-pgsql-debuginfo | errata.rockylinux.org | 7.4.33-8.module, 0:7.4.33-8.module+el8.10.0+40393+c071e357.x86_64 |
| php8.5-ffi | Amazon Linux | 8.5.11-1.amzn2023.0.1 |
| php-bcmath-debuginfo | errata.rockylinux.org | 7.4.33-8.module, 0:7.4.33-8.module+el8.10.0+40393+c071e357.x86_64, 0:7.4.33-8.module+el8.10.0+40393+c071e357.aarch64 |
| php-debuginfo | errata.rockylinux.org | 7.4.33-8.module, 0:7.4.33-8.module+el8.10.0+40393+c071e357.aarch64 |
| php8.5-pgsql | Amazon Linux | 8.5.11-1.amzn2023.0.1 |
| libzip-tools | errata.rockylinux.org | 1.6.1-1.module, 0:1.6.1-1.module+el8.10.0+1912+72767185.aarch64, 0:1.6.1-1.module+el8.10.0+1604+6558efc7.aarch64 |
| php-gmp-debuginfo | errata.rockylinux.org | 7.4.33-8.module, 0:7.4.33-8.module+el8.10.0+40393+c071e357.aarch64 |
80 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 8.2.*, 8.3.*, 8.4.* |
| amazon:2023 | php8.4 | 0 |
| amazon:2023 | php8.3-fpm | 0 |
| amazon:2023 | php8.2-common | 0 |
| amazon:2023 | php8.5-ffi | 0 |
| amazon:2023 | php8.5-pgsql | 0 |
| amazon:2023 | php8.3-modphp | 0 |
| amazon:2023 | php8.5-enchant | 0 |
| amazon:2023 | php8.2-opcache | 0 |
| amazon:2023 | php8.4-ffi | 0 |
| amazon:2023 | php8.2-xml | 0 |
| amazon:2023 | php8.2-gd | 0 |
| amazon:2023 | php8.2-zip | 0 |
| amazon:2023 | php8.3 | 0 |
| amazon:2023 | php8.3-enchant | 0 |
| amazon:2023 | php8.3-odbc | 0 |
| amazon:2023 | php8.2-ldap | 0 |
| amazon:2023 | php8.2-mysqlnd | 0 |
| amazon:2023 | php8.4-zip | 0 |
| amazon:2023 | php8.5-modphp | 0 |
…and 102 more
Timeline
- Sep 25, 2026 CVE Published
- Sep 26, 2026 EPSS Score (7 in total, the first dated here)
- Oct 21, 2026 Distribution Patch (2 in total, the first dated here)
- Oct 21, 2026 Security Advisory (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-6103
vulnetix vdb fixes CVE-2026-6103
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-6103/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart