Skip to content

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

LowCVSS 3.3 EPSS 0.16%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
PHPUbuntuDebianRed Hat

Description

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.

Upgrade path

29 packages: 20 fixed, 9 with no fix yet.

PackageAffectedFixed inStatus
redhat/php(Red Hat enterprise_linux 10) All versions No fix listed No fix yet
redhat/php(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/php(Red Hat rhel_els 7) All versions No fix listed No fix yet
redhat/php8.4(Red Hat enterprise_linux 10) All versions No fix listed No fix yet
redhat/php:7.4-8100020261021081045.f7998665(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
redhat/php:8.2/php(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
redhat/php:8.2/php(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/php:8.3/php(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/php:8.4/php(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
alpine/php82(Alpine v3.22) < 8.2.35-r0 8.2.35-r0 Fixed
alpine/php83(Alpine v3.22) < 8.3.36-r0 8.3.36-r0 Fixed
alpine/php83(Alpine v3.23) < 8.3.36-r0 8.3.36-r0 Fixed
alpine/php83(Alpine v3.24) < 8.3.35-r0 8.3.35-r0 Fixed
alpine/php84(Alpine v3.22) < 8.4.27-r0 8.4.27-r0 Fixed
alpine/php84(Alpine v3.23) < 8.4.27-r0 8.4.27-r0 Fixed
alpine/php84(Alpine v3.24) < 8.4.26-r0 8.4.26-r0 Fixed
alpine/php85(Alpine v3.23) < 8.5.12-r0 8.5.12-r0 Fixed
alpine/php85(Alpine v3.24) < 8.5.11-r0 8.5.11-r0 Fixed
debian/php8.2(Debian 12) < 8.2.34-1~deb12u1; = 8.2.5-2; = 8.2.7-1; = 8.2.7-1.1 +26 more 8.2.34-1~deb12u1 Fixed
debian/php8.4(Debian 13) < 8.4.26-1~deb13u1; = 8.4.11-1; = 8.4.16-1; = 8.4.16-1~deb13u1 +8 more 8.4.26-1~deb13u1 Fixed
debian/php8.4(Debian 14) < 8.4.26-1; = 8.4.11-1; = 8.4.16-1; = 8.4.16-1~deb13u1 +9 more 8.4.26-1 Fixed
PHP < 8.2.34; < 8.3.35; < 8.4.26; < 8.5.11 +4 more 8.2.34, 8.3.35, 8.4.26, 8.5.11 Fixed
PHP(Azure Linux 3.0) < 8.3.35-1 8.3.35-1 Fixed
PHP(Azure Linux 4.0) < 0:8.4.26-5.azl4 0:8.4.26-5.azl4 Fixed
redhat/php-main(Red Hat hummingbird 1) < 8.5.11-2.hum1 8.5.11-2.hum1 Fixed
ubuntu/php8.1(Ubuntu 22.04) < 8.1.2-1ubuntu2.27 8.1.2-1ubuntu2.27 Fixed
ubuntu/php8.3(Ubuntu 24.04) < 8.3.6-0ubuntu0.24.04.12 8.3.6-0ubuntu0.24.04.12 Fixed
ubuntu/php8.5(Ubuntu 26.04) < 8.5.4-0ubuntu1.4 8.5.4-0ubuntu1.4 Fixed
ubuntu/php8.5(Ubuntu 26.10) < 8.5.9-0ubuntu2 8.5.9-0ubuntu2 Fixed

Affected products

ProductAffected versionsFixed in
redhat/php:7.4-8100020261021081045.f7998665(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/php-main(Red Hat:hummingbird:1) < 8.5.11-2.hum1 8.5.11-2.hum1
redhat/php(Red Hat:enterprise_linux:10) All versions No fix listed
redhat/php8.4(Red Hat:enterprise_linux:10) All versions No fix listed
redhat/php(Red Hat:rhel_els:6) All versions No fix listed
redhat/php(Red Hat:rhel_els:7) All versions No fix listed
redhat/php:8.2/php(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/php(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/php:8.2/php(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/php:8.3/php(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/php:8.4/php(Red Hat:enterprise_linux:9) All versions No fix listed
PHP < 8.2.34 8.2.34
PHP < 8.3.35 8.3.35
PHP < 8.4.26 8.4.26
PHP < 8.5.11 8.5.11
debian/php8.2(Debian:12) < 8.2.34-1~deb12u1 8.2.34-1~deb12u1
debian/php8.2(Debian:12) = 8.2.10-1 No fix listed
debian/php8.2(Debian:12) = 8.2.10-2 No fix listed
debian/php8.2(Debian:12) = 8.2.12-1 No fix listed
debian/php8.2(Debian:12) = 8.2.16-1 No fix listed
debian/php8.2(Debian:12) = 8.2.16-2 No fix listed
debian/php8.2(Debian:12) = 8.2.17-1 No fix listed
debian/php8.2(Debian:12) = 8.2.18-1 No fix listed
debian/php8.2(Debian:12) = 8.2.18-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.20-1~deb12u1 No fix listed
Show 64 more
ProductAffected versionsFixed in
debian/php8.2(Debian:12) = 8.2.20-2 No fix listed
debian/php8.2(Debian:12) = 8.2.20-3 No fix listed
debian/php8.2(Debian:12) = 8.2.21-1 No fix listed
debian/php8.2(Debian:12) = 8.2.23-1 No fix listed
debian/php8.2(Debian:12) = 8.2.24-1 No fix listed
debian/php8.2(Debian:12) = 8.2.24-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.26-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.26-4 No fix listed
debian/php8.2(Debian:12) = 8.2.27-1 No fix listed
debian/php8.2(Debian:12) = 8.2.28-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.29-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.30-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.31-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.32-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.33-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.5-2 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1.1 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1.2 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1~deb12u1 No fix listed
debian/php8.4(Debian:13) < 8.4.26-1~deb13u1 8.4.26-1~deb13u1
debian/php8.4(Debian:13) = 8.4.11-1 No fix listed
debian/php8.4(Debian:13) = 8.4.16-1 No fix listed
debian/php8.4(Debian:13) = 8.4.16-1~deb13u1 No fix listed
debian/php8.4(Debian:13) = 8.4.20-1 No fix listed
debian/php8.4(Debian:13) = 8.4.21-1 No fix listed
debian/php8.4(Debian:13) = 8.4.21-1~deb13u1 No fix listed
debian/php8.4(Debian:13) = 8.4.22-1 No fix listed
debian/php8.4(Debian:13) = 8.4.23-1 No fix listed
debian/php8.4(Debian:13) = 8.4.23-1~deb13u1 No fix listed
debian/php8.4(Debian:13) = 8.4.24-1 No fix listed
debian/php8.4(Debian:13) = 8.4.24-1~deb13u1 No fix listed
debian/php8.4(Debian:14) < 8.4.26-1 8.4.26-1
debian/php8.4(Debian:14) = 8.4.11-1 No fix listed
debian/php8.4(Debian:14) = 8.4.16-1 No fix listed
debian/php8.4(Debian:14) = 8.4.16-1~deb13u1 No fix listed
debian/php8.4(Debian:14) = 8.4.20-1 No fix listed
debian/php8.4(Debian:14) = 8.4.21-1 No fix listed
debian/php8.4(Debian:14) = 8.4.21-1~deb13u1 No fix listed
debian/php8.4(Debian:14) = 8.4.22-1 No fix listed
debian/php8.4(Debian:14) = 8.4.23-1 No fix listed
debian/php8.4(Debian:14) = 8.4.23-1~deb13u1 No fix listed
debian/php8.4(Debian:14) = 8.4.24-1 No fix listed
debian/php8.4(Debian:14) = 8.4.24-1~deb13u1 No fix listed
debian/php8.4(Debian:14) = 8.4.26-1~deb13u1 No fix listed
ubuntu/php8.1(Ubuntu:22.04) < 8.1.2-1ubuntu2.27 8.1.2-1ubuntu2.27
alpine/php82(Alpine:v3.22) < 8.2.35-r0 8.2.35-r0
alpine/php83(Alpine:v3.22) < 8.3.36-r0 8.3.36-r0
alpine/php83(Alpine:v3.23) < 8.3.36-r0 8.3.36-r0
alpine/php83(Alpine:v3.24) < 8.3.35-r0 8.3.35-r0
alpine/php84(Alpine:v3.22) < 8.4.27-r0 8.4.27-r0
alpine/php84(Alpine:v3.23) < 8.4.27-r0 8.4.27-r0
alpine/php84(Alpine:v3.24) < 8.4.26-r0 8.4.26-r0
alpine/php85(Alpine:v3.23) < 8.5.12-r0 8.5.12-r0
alpine/php85(Alpine:v3.24) < 8.5.11-r0 8.5.11-r0
ubuntu/php8.3(Ubuntu:24.04) < 8.3.6-0ubuntu0.24.04.12 8.3.6-0ubuntu0.24.04.12
ubuntu/php8.5(Ubuntu:26.04) < 8.5.4-0ubuntu1.4 8.5.4-0ubuntu1.4
ubuntu/php8.5(Ubuntu:26.10) < 8.5.9-0ubuntu2 8.5.9-0ubuntu2
PHP >= 8.2.0, < 8.2.34 8.2.34
PHP >= 8.3.0, < 8.3.35 8.3.35
PHP >= 8.4.0, < 8.4.26 8.4.26
PHP >= 8.5.0, < 8.5.11 8.5.11
PHP(Azure Linux:3.0) < 8.3.35-1 8.3.35-1
PHP(Azure Linux:4.0) < 0:8.4.26-5.azl4 0:8.4.26-5.azl4

References