Skip to main content

CVE-2026-6103: CWE-190 Integer overflow or wraparound in PHP Group PHP

0
Medium
VulnerabilityCVE-2026-6103cvecve-2026-6103cwe-190
Published: 09/25/2026 (09/25/2026, 20:08:49 UTC)
Source: CVE Database V5
Vendor/Project: PHP Group
Product: 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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N

Affected software

PHP Group

PHP

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/25/2026, 20:48:01 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses