{"id":"CVE-2026-6103","summary":"Phar TAR phar_tar_number() Integer Overflow - Archive Entry Injection","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.","aliases":["BIT-libphp-2026-6103","BIT-php-2026-6103","BIT-php-min-2026-6103","GHSA-j3wh-g957-2m85"],"modified":"2026-11-04T10:47:25.806621871Z","published":"2026-09-25T20:08:49.333Z","related":["ALSA-2026:87080","SUSE-SU-2026:24158-1","SUSE-SU-2026:4602-1","SUSE-SU-2026:4603-1","SUSE-SU-2026:4651-1","SUSE-SU-2026:4853-1","openSUSE-SU-2026:11901-1","openSUSE-SU-2026:22045-1"],"database_specific":{"cna_assigner":"php","cwe_ids":["CWE-190"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6103.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6103.json"},{"type":"ADVISORY","url":"https://github.com/php/php-src/security/advisories/GHSA-j3wh-g957-2m85"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6103"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"70ee6c20ad97e02c2b8098aeea96fefbbc3ac5c2"},{"fixed":"0be211a0cf752780881a9611224f8adc516af573"},{"introduced":"d26068059e83fe40de3430a512471d194119bee0"},{"fixed":"2d3433d24d59f45703be2b4fb40d74e5a41b136b"},{"introduced":"b437f2b32eb364c9496d24abcc734272e5c9c980"},{"fixed":"c31ae58ecbedc7a85dac0eee5a6a88da73543e70"},{"introduced":"685e99655ae97c667950f7f7d176985958718f56"},{"fixed":"678778973bb4d4185c06ef1320de50f1a975d3c8"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","range":[{"introduced":"8.2.0"},{"fixed":"8.2.34"}],"source":"CPE_RANGE"},{"range":[{"introduced":"8.3.0"},{"fixed":"8.3.35"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","range":[{"introduced":"8.4.0"},{"fixed":"8.4.26"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","range":[{"introduced":"8.5.0"},{"fixed":"8.5.11"}]}]}}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-6103.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N"}]}