Use-after-free vulnerability in php5

php5 Updated 02 Oct 2025

Summary

20/03/2015
N/A
Yes i
Unrated
Not published

DSA-3198-1: php5 - security update. Affects php5 versions < 5.4.39-0+deb7u1. Fixed in 5.4.39-0+deb7u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

php5 is a popular programming language used for web development. It provides a wide range of features and functionalities for creating dynamic websites and applications. However, a vulnerability has been discovered in the phar extension of php5, which can lead to a use-after-free condition. This vulnerability can be exploited by an attacker to execute arbitrary code or cause a denial of service.

Vulnerability Detail

The use-after-free vulnerability in the phar extension of php5 allows an attacker to manipulate memory that has already been freed. By carefully crafting a malicious phar archive, an attacker can trigger this vulnerability and potentially execute arbitrary code or crash the application. This can lead to a complete compromise of the affected system or disruption of services.

How To Fix

Minimum fixed version

5.4.39-0+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade php5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the provided fix by upgrading to the patched version of php5.

Conclusion

The use-after-free vulnerability in the phar extension of php5 can have severe consequences, including the execution of arbitrary code and denial of service. It is highly recommended to upgrade to version 5.4.39-0+deb7u1 of php5 to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for php5 →

Share this vulnerability

FAQ

A use-after-free vulnerability occurs when a program continues to use memory after it has been freed. This can lead to memory corruption and potentially allow an attacker to execute arbitrary code or crash the application.

An attacker can exploit this vulnerability by crafting a malicious phar archive and tricking a user or system into opening it. When the phar archive is processed, the use-after-free vulnerability can be triggered, allowing the attacker to execute arbitrary code or crash the application.

The potential consequences of this vulnerability include the execution of arbitrary code by an attacker, leading to a complete compromise of the affected system. It can also result in a denial of service, causing disruption to services and impacting the availability of the application or website.

Yes, a fix is available for this vulnerability. Users are advised to upgrade their php5 packages to version 5.4.39-0+deb7u1, which includes a patch that addresses the use-after-free vulnerability in the phar extension.

No, there are no known workarounds for this vulnerability. It is crucial to apply the provided fix by upgrading to the patched version of php5.

Related vulnerabilities

Recent vulnerabilities recorded for php5.

How To Fix

Minimum fixed version

5.4.39-0+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade php5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback