CVE-2017-11147

In PHP before 5.6.30 and 7.x before 7.0.15, the PHAR archive handler could be used by attackers supplying malicious archive files to crash the PHP interpreter…

published July 10, 2017

CVSS
—
EPSS
5%
Percentile
91.7
In the wild
Unconfirmed
What it is

⚠️ A sneaky malformed PHAR file can crash your PHP interpreter! It’s like serving a surprise ingredient that causes the whole kitchen to shut down! Think of a malfunctioning delivery vehicle that accidentally spills its contents all over the road, causing a massive traffic jam. That’s how a malicious PHAR archive can disrupt the smooth operation of your PHP environment, leading to crashes and unwanted information leaks. If an attacker sends a specially crafted PHAR file, it could cause the PHP interpreter to crash, leaving your application vulnerable to downtime. Even worse, it could potentially expose sensitive information from memory due to a buffer over-read. That's a recipe for disaster!

Put simply

Think of a malfunctioning delivery vehicle that accidentally spills its contents all over the road, causing a massive traffic jam. That’s how a malicious PHAR archive can disrupt the smooth operation of your PHP environment, leading to crashes and unwanted information leaks. This vulnerability in PHP versions before 5.6.30 and 7.x before 7.0.15 allows attackers to exploit the PHAR archive handler. The flaw in the `phar_parse_pharfile` function can lead to crashes or information disclosure due to mishandled buffer reads.

What to do

If an attacker sends a specially crafted PHAR file, it could cause the PHP interpreter to crash, leaving your application vulnerable to downtime. Even worse, it could potentially expose sensitive information from memory due to a buffer over-read. That's a recipe for disaster! To protect your PHP environment, upgrade to at least PHP version 5.6.30 or 7.0.15 immediately. Additionally, consider auditing your code for any usage of PHAR files and implement strict validation to ensure only safe files are processed. Don’t leave your application exposed! You’ve got this! With the right updates and vigilance, you’ll keep your PHP environment safe and sound! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.04710 · 91.7th percentile
Published
2017-07-10T14:00Z
EPSS history
Timeline
  • 10 JUL 14:00Z
    In PHP before 5.6.30 and 7.x before 7.0.15, the PHAR archive handler could be used by attackers supplying malicious archive files to crash the PHP interpreter…
    cvelistv5