CVE-2026-6103
Phar TAR phar_tar_number() Integer Overflow - Archive Entry Injection
MEDIUM 4.3
At a glance
- Source
- NVD
- EPSS
- EPSS 0.16 % · percentile 5 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- php
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-190 — Integer Overflow or Wraparound
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N | php |
| CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N | NVD · security@php.net (Secondary) |
| CVSS 3.1 | LOW 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N | NVD · nvd@nist.gov (Primary) |
European references
- ENISA EUVD · EUVD-2026-87322
- GCVE · GCVE-0-2026-6103
CERT-FR advisories
- CERTFR-2026-AVI-1227 — Multiples vulnérabilités dans PHP · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*≥ 8.2.0 < 8.2.34cpe:2.3:a:php:php:*:*:*:*:*:*:*:*≥ 8.3.0 < 8.3.35cpe:2.3:a:php:php:*:*:*:*:*:*:*:*≥ 8.4.0 < 8.4.26cpe:2.3:a:php:php:*:*:*:*:*:*:*:*≥ 8.5.0 < 8.5.11
Affected products
| Product | Versions |
|---|---|
| PHP Group · PHP | affected 8.2.* < 8.2.34 ; affected 8.3.* < 8.3.35 ; affected 8.4.* < 8.4.26 ; affected 8.5.* < 8.5.11 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |