Integer Overflow or Wraparound Affecting php package, versions [,8.2.34)[8.3.0RC1,8.3.35)[8.4.0RC1,8.4.26)[8.5.0RC1,8.5.11)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.17% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-PHP-20158683
  • published27 Sept 2026
  • disclosed25 Sept 2026
  • creditarnoldasr, Oblivionsage, OSTIF-Derek

Introduced: 25 Sep 2026

NewCVE-2026-6103  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade php to version 8.2.34, 8.3.35, 8.4.26, 8.5.11 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound in the phar_tar_number() function in ext/phar/tar.c, which accumulates the 11 digit octal size field of a TAR header into a 32-bit unsigned integer with no bound, so a value such as 40000000000 representing 0x100000000 wraps to 0. An attacker can have entries extracted that are not present in the archive as parsed correctly, by setting an entry's size field to a wrapping value so the parser skips the wrong number of data blocks and reads that entry's body content as the next TAR header. This requires the application to open an attacker-supplied archive with PharData or the phar:// stream wrapper, which puts package managers in scope, since Composer's TarDownloader opens downloaded archives with PharData and calls extractTo() into the vendor directory.

CVSS Base Scores

version 4.0
version 3.1