CVE Database›Document archive›CVE-2026-6103

CVE-2026-6103

php: PHP: Archive entry injection via integer overflow in TAR parser

Loading…

Severity

Moderate

Red Hat Product Security

4.3

CVSS 3.1

Review impact separately from score.

Published · September 26, 2026

Updated · October 24, 2026

Description

A flaw was found in PHP. An integer overflow vulnerability in the Phar extension occurs when parsing TAR archive headers containing excessively large size fields. An attacker can exploit this issue by supplying a specially crafted archive file to an application that processes TAR archives, causing the parser to miscalculate data boundaries and treat file content as valid header data. This allows an attacker to inject unauthorized entries that the application extracts as authentic files, potentially leading to unauthorized data modification.

Statement

This vulnerability is rated Moderate because a crafted TAR archive can cause PHP's Phar TAR parser to mishandle oversized size fields and inject archive entries, undermining integrity of extracted content. Exploitation requires an application to open or extract an untrusted archive (for example via PharData or phar://).

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Do not open or extract untrusted TAR/Phar archives with PharData or phar:// streams. Validate package archives with independent tooling before extraction, and restrict write destinations used for extracted content.

CVSS / CWE

CVSS 3.1 · 4.3
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N

CWE-190 · Integer Overflow or Wraparound