CVE-2026-6103
published medium CVSS 3.1 · 4.3Phar TAR phar_tar_number() Integer Overflow - Archive Entry Injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| PHP Group | — | PHP8.2.* to < 8.2.34 · 8.3.* to < 8.3.35 · 8.4.* to < 8.4.26 · 8.5.* to < 8.5.11 · Other versions: unaffected | Affected | Not stated | php |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2PHP8.2-2026-014 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3161 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3162 | Fixed | Not stated | Amazon Linux assessment |
Show 2 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3163 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3164 | Fixed | Not stated | Amazon Linux assessment |
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.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.3 / 10
- Severity
- medium
- Provider
- php · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| PHP Group | PHP | 8.2.* to < 8.2.34 (affected · semver)8.3.* to < 8.3.35 (affected · semver)8.4.* to < 8.4.26 (affected · semver)8.5.* to < 8.5.11 (affected · semver)Default: unaffected | php · cna |
Weaknesses
1- CWE-190 CWE-190 Integer overflow or wraparound
References
1Provider assertions
2php · cna
Phar TAR phar_tar_number() Integer Overflow - Archive Entry Injection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5b9daec0fbbd411e494b47f2cadb7d678aebc25609325f5a103a0a11c3fc390d
- Ingested
- 30 Sep 2026, 15:31:17 UTC
- Source record
- Official CVE record