CVE-2026-6103: CWE-190 Integer overflow or wraparound in PHP Group PHP
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.
AI Analysis
Technical Summary
The vulnerability exists in PHP's phar_tar_number() function, which parses the octal size field of a TAR header into a 32-bit unsigned integer without checking for overflow. The size field can hold values up to 0x1FFFFFFFF, but values above 0xFFFFFFFF cause silent wraparound. This causes the parser to skip an incorrect number of data blocks and interpret attacker-controlled file content as a subsequent TAR header. As a result, a crafted Phar archive can inject entries that the PharData component reports and extracts as if they were legitimate, potentially leading to integrity violations.
Potential Impact
An attacker can craft a malicious Phar archive that exploits the integer overflow to inject unauthorized entries during archive extraction. This can lead to integrity issues where files extracted are not those intended by the archive creator. There is no direct impact on confidentiality or availability according to the CVSS vector. The attack requires local access (AV:L) and has low complexity (AC:L) with no privileges required (PR:N) and no user interaction (UI:N).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, avoid processing untrusted Phar archives or use alternative archive handling methods that do not rely on the vulnerable parsing function.
CVE-2026-6103: CWE-190 Integer overflow or wraparound in PHP Group 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.
CVSS v3.1
Score 4.3medium
Affected software
PHP Group
PHP
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in PHP's phar_tar_number() function, which parses the octal size field of a TAR header into a 32-bit unsigned integer without checking for overflow. The size field can hold values up to 0x1FFFFFFFF, but values above 0xFFFFFFFF cause silent wraparound. This causes the parser to skip an incorrect number of data blocks and interpret attacker-controlled file content as a subsequent TAR header. As a result, a crafted Phar archive can inject entries that the PharData component reports and extracts as if they were legitimate, potentially leading to integrity violations.
Potential Impact
An attacker can craft a malicious Phar archive that exploits the integer overflow to inject unauthorized entries during archive extraction. This can lead to integrity issues where files extracted are not those intended by the archive creator. There is no direct impact on confidentiality or availability according to the CVSS vector. The attack requires local access (AV:L) and has low complexity (AC:L) with no privileges required (PR:N) and no user interaction (UI:N).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, avoid processing untrusted Phar archives or use alternative archive handling methods that do not rely on the vulnerable parsing function.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- php
- Date Reserved
- 2026-04-11T04:13:04.238Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ab6da8af7a7c5410640caa2
Added to database: 09/25/2026, 20:33:14 UTC
Last enriched: 09/25/2026, 20:48:01 UTC
Last updated: 09/25/2026, 20:53:58 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.