Critical Vulnerability in PHP Packages: Denial of Service Risk

php5 Updated 02 Oct 2025

Summary

02/07/2021
N/A
Yes i
Medium
5.9

UBUNTU-CVE-2021-21704: In PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21 and 8.0.x below 8.0.8, when using Firebird PDO driver extension, a malicious database server could cause crashes in various database functions, such as getAttribute(... Affects php5 versions < 5.5.9+dfsg-1ubuntu4.29+esm14. Fixed in 5.5.9+dfsg-1ubuntu4.29+esm14. 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 open-source scripting language designed for web development but also used as a general-purpose programming language. It is known for its ease of use and flexibility, making it a popular choice among developers. The affected packages include various versions of PHP (5, 7.0, 7.2, 7.4) that are utilized in numerous web applications. This vulnerability exposes these packages to potential crashes and denial of service due to improper handling of responses from malicious database servers.

Vulnerability Detail

In PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21, and 8.0.x below 8.0.8, a flaw exists in the Firebird PDO driver extension. A malicious database server can return invalid response data that is not parsed correctly, leading to crashes in various database functions such as getAttribute(), execute(), and fetch(). This can result in denial of service or potentially memory corruption, posing a significant risk to applications relying on these PHP versions.

How To Fix

Minimum fixed version

5.5.9+dfsg-1ubuntu4.29+esm14

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

If immediate patching is not feasible, consider disabling the Firebird PDO driver in your PHP configuration to mitigate the risk until the update can be applied. This can be done by commenting out the relevant extension line in your php.ini file:

;extension=php_pdo_firebird.dll

Restart your web server after making this change.

Conclusion

This report highlights a critical vulnerability affecting multiple PHP versions, which can lead to denial of service and memory corruption. It is essential to update to the patched versions of the affected packages to mitigate these risks. Users are encouraged to utilize tools like Vulert for ongoing vulnerability monitoring.

See every vulnerability recorded for php5 →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 5.9, indicating a medium severity level.

The affected PHP versions are 7.3.x below 7.3.29, 7.4.x below 7.4.21, and 8.0.x below 8.0.8.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The potential consequences include application crashes, denial of service, and possible memory corruption, which can disrupt service availability.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for php5.

How To Fix

Minimum fixed version

5.5.9+dfsg-1ubuntu4.29+esm14

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