CVE-2015-4021: Apple Mac OS X

Medium severity, CVSS 5.0. EPSS: 21.3% chance of exploitation in the next 30 days.

The phar_parse_tarfile function in ext/phar/tar.c in PHP before 5.4.41, 5.5.x before 5.5.25, and 5.6.x before 5.6.9 does not verify that the first character of a filename is different from the \0 character, which allows remote attackers to cause a denial of service (integer underflow and memory corruption) via a crafted entry in a tar archive.

Affected products

  • Apple Mac OS X: up to and including 10.10.4
  • PHP PHP: up to and including 5.4.40; version 5.4.39 only; version 5.5.0 only; version 5.5.1 only; version 5.5.2 only; version 5.5.3 only; …
  • Red Hat Enterprise Linux: version 6.0 only; version 7.0 only
  • Red Hat Enterprise Linux Desktop: version 7.0 only
  • Red Hat Enterprise Linux Hpc Node: version 7.0 only
  • Red Hat Enterprise Linux Hpc Node Eus: version 7.1 only
  • Red Hat Enterprise Linux Server: version 7.0 only
  • Red Hat Enterprise Linux Server Eus: version 7.1 only
  • Red Hat Enterprise Linux Workstation: version 7.0 only

Published 2015-06-09. Last modified 2026-06-17.