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

- Severity: Medium 4.3 (CVSS:3.1, scored by php) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-25T20:08:49.333Z
- Modified: 2026-10-26T08:45:06.718Z
- Also known as: BIT-LIBPHP-2026-6103, BIT-PHP-2026-6103, BIT-PHP-MIN-2026-6103, GHSA-j3wh-g957-2m85
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: php

## 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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 8.2.* before 8.2.34; from 8.3.* before 8.3.35; from 8.4.* before 8.4.26; from 8.5.* before 8.5.11
- php php: from 8.2.0 before 8.2.34; from 8.3.0 before 8.3.35; from 8.4.0 before 8.4.26; from 8.5.0 before 8.5.11
- libphp (Bitnami): from 8.2.0 before 8.2.34; from 8.3.0 before 8.3.35; from 8.4.0 before 8.4.26; from 8.5.0 before 8.5.11
- php (Bitnami): from 8.2.0 before 8.2.34; from 8.3.0 before 8.3.35; from 8.4.0 before 8.4.26; from 8.5.0 before 8.5.11
- php-min (Bitnami): from 8.2.0 before 8.2.34; from 8.3.0 before 8.3.35; from 8.4.0 before 8.4.26; from 8.5.0 before 8.5.11

## Every score

- php: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- NVD: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/php/php-src/security/advisories/GHSA-j3wh-g957-2m85> (exploit, advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6103> (web)

## Sources

- CVE List: [CVE-2026-6103](https://www.cve.org/CVERecord?id=CVE-2026-6103), CVE Terms of Use, modified 2026-09-25
- NVD: [CVE-2026-6103](https://nvd.nist.gov/vuln/detail/CVE-2026-6103), Public domain, modified 2026-10-23
- Bitnami Vulnerability Database: [BIT-LIBPHP-2026-6103](https://osv.dev/vulnerability/BIT-LIBPHP-2026-6103), Apache-2.0, modified 2026-10-26
- Bitnami Vulnerability Database: [BIT-PHP-2026-6103](https://osv.dev/vulnerability/BIT-PHP-2026-6103), Apache-2.0, modified 2026-10-26
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2026-6103](https://osv.dev/vulnerability/BIT-PHP-MIN-2026-6103), Apache-2.0, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-6103 · Whole record: https://cve.day/CVE-2026-6103.json · Rebuilt by cve.day 2026-11-25T22:59:41.155Z
