CVE-2015-5589

The phar_convert_to_other function in ext/phar/phar_object.c in PHP before 5.4.43, 5.5.x before 5.5.27, and 5.6.x before 5.6.11 does not validate a file…

published May 16, 2016

CVSS
—
EPSS
6%
Percentile
93.5
In the wild
Unconfirmed
What it is

⚠️ A sneaky mishap in PHP could send your web application into a tailspin! The phar_convert_to_other function, in versions before 5.4.43, is allowing crafted TAR archives to crash the system without breaking a sweat. 🔥 Imagine a restaurant kitchen that accepts any dish order without checking the ingredients first. If someone orders something toxic, it could lead to a major health crisis! This vulnerability is just as reckless—without proper validation, a faulty TAR can lead to a denial of service or worse. An attacker could exploit this vulnerability to cause a segmentation fault, leading to a crash of your PHP application. The potential for denial of service is significant, disrupting service for users and affecting the overall reliability of your web presence.

Put simply

Imagine a restaurant kitchen that accepts any dish order without checking the ingredients first. If someone orders something toxic, it could lead to a major health crisis! This vulnerability is just as reckless—without proper validation, a faulty TAR can lead to a denial of service or worse. The issue lies in the lack of validation for a file pointer in the phar_convert_to_other function, allowing an attacker to trigger a segmentation fault via a crafted TAR archive during a Phar::convertToData call.

What to do

An attacker could exploit this vulnerability to cause a segmentation fault, leading to a crash of your PHP application. The potential for denial of service is significant, disrupting service for users and affecting the overall reliability of your web presence. To safeguard your PHP applications, upgrade to PHP versions 5.4.43, 5.5.27, or 5.6.11 or later. Implement strict input validation on any file handling to prevent mishandling of TAR archives in the future. You've got this! Following these steps will help you patch this vulnerability and keep your application running smoothly! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.06303 · 93.5th percentile
Published
2016-05-16T10:00Z
EPSS history
Timeline
  • 16 MAY 10:00Z
    The phar_convert_to_other function in ext/phar/phar_object.c in PHP before 5.4.43, 5.5.x before 5.5.27, and 5.6.x before 5.6.11 does not validate a file…
    cvelistv5