Heap-based Buffer Overflow in DNS TXT Record Parsing in php5

php5 Updated 02 Oct 2025

Summary

16/06/2014
N/A
Yes i
Unrated
Not published

DSA-2961-1: php5 - security update. Affects php5 versions < 5.4.4-14+deb7u11. Fixed in 5.4.4-14+deb7u11. 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

PHP is a widely used general-purpose scripting language for web application development. It is commonly used to create dynamic web pages and can be embedded into HTML. The php5 package is the PHP interpreter for Debian 7 (wheezy). It allows PHP code to be executed on a web server, enabling the server to generate dynamic web content. However, a vulnerability has been discovered in php5 that could allow a malicious server or man-in-the-middle attacker to execute arbitrary code on the PHP interpreter.

Vulnerability Detail

The vulnerability in php5 is a heap-based buffer overflow in the DNS TXT record parsing. This flaw can be exploited if a PHP application uses the dns_get_record() function to perform a DNS query. By sending a specially crafted DNS response, an attacker can trigger the buffer overflow and potentially execute arbitrary code on the PHP interpreter. This could lead to a complete compromise of the affected system.

How To Fix

Minimum fixed version

5.4.4-14+deb7u11

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 security update to php5 to mitigate the risk of exploitation.

Conclusion

The heap-based buffer overflow vulnerability in php5 can be exploited by a malicious server or man-in-the-middle attacker to execute arbitrary code on the PHP interpreter. To mitigate this risk, it is crucial to upgrade the php5 package to version 5.4.4-14+deb7u11. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for php5 →

Share this vulnerability

FAQ

php5 is the PHP interpreter for Debian 7 (wheezy). It allows PHP code to be executed on a web server, enabling the server to generate dynamic web content.

The vulnerability is a result of a heap-based buffer overflow in the DNS TXT record parsing. It can be triggered if a PHP application uses the dns_get_record() function to perform a DNS query.

If successfully exploited, this vulnerability could allow an attacker to execute arbitrary code on the PHP interpreter. This could lead to a complete compromise of the affected system.

No, there is no known workaround for this vulnerability. It is crucial to apply the security update to php5 to mitigate the risk of exploitation.

To fix this vulnerability, it is recommended to upgrade the php5 package to version 5.4.4-14+deb7u11 for Debian 7 (wheezy). This version includes a patch that addresses the heap-based buffer overflow.

Related vulnerabilities

Recent vulnerabilities recorded for php5.

How To Fix

Minimum fixed version

5.4.4-14+deb7u11

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