← Vulnerability feed

Vulnerability record · CVE-2021-21704 · published 4 October 2021

CVE-2021-21704: Php out-of-bounds read vulnerability

Php · Php

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(), execute(), fetch() and others by returning invalid response data that is not parsed correctly by the driver. This can result in crashes, denial of service or potentially memory corruption.

5.9 CVSS 3.1 Medium EPSS 1.8% · top 21.2% CWE-125 · Out-of-bounds readCWE-190 · Integer overflow
5.9CVSS 3.1 base score, v2 4.3
1.8%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
12References, 8 tagged exploit
17 Jun 2026Last modified by NVD

Description

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(), execute(), fetch() and others by returning invalid response data that is not parsed correctly by the driver. This can result in crashes, denial of service or potentially memory corruption.

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://bugs.php.net/bug.php?id=76448 ExploitIssue TrackingPatchVendor Advisory
https://bugs.php.net/bug.php?id=76449 ExploitIssue TrackingPatchVendor Advisory
https://bugs.php.net/bug.php?id=76450 ExploitIssue TrackingPatchVendor Advisory
https://bugs.php.net/bug.php?id=76452 ExploitIssue TrackingPatchVendor Advisory
https://security.gentoo.org/glsa/202209-20 Third Party Advisory
https://security.netapp.com/advisory/ntap-20211029-0006/ Third Party Advisory
https://bugs.php.net/bug.php?id=76448 ExploitIssue TrackingPatchVendor Advisory
https://bugs.php.net/bug.php?id=76449 ExploitIssue TrackingPatchVendor Advisory
https://bugs.php.net/bug.php?id=76450 ExploitIssue TrackingPatchVendor Advisory
https://bugs.php.net/bug.php?id=76452 ExploitIssue TrackingPatchVendor Advisory
https://security.gentoo.org/glsa/202209-20 Third Party Advisory
https://security.netapp.com/advisory/ntap-20211029-0006/ Third Party Advisory

Track CVE-2021-21704 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2019-11043PHP-FPM buffer overflow enables remote code executionPHP-FPM in certain configurations writes past allocated buffers into FCGI protocol data space, an out-of-bounds write (CWE-787, CWE-120). It affects …KEVEPSS 100%analysed9.8CVE-2012-1823PHP-CGI query string option injection enables remote code executionPHP versions before 5.3.12 and 5.4.x before 5.4.2, when run as a CGI script (php-cgi), mishandle query strings that lack an equals sign, allowing com…KEVEPSS 100%analysed9.2CVE-2026-109619Php use after free vulnerabilityPHP has various global state that temporarily points into request memory. In some scenarios, global state may not be correctly reset, or may be repop…KEVEPSS 100%9.2CVE-2026-109618Php use after free vulnerabilityPHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request. Some contexts may not properly accou…KEVEPSS 100%9.0CVE-2021-40438Apache HTTP Server mod_proxy SSRF via crafted URI pathA crafted request URI path can make mod_proxy forward the request to an origin server chosen by the remote user, an SSRF flaw in Apache HTTP Server 2…KEVEPSS 100%analysed7.5CVE-2015-5477ISC BIND TKEY Query Assertion Failure Denial of ServiceISC BIND 9.x before 9.9.7-P2 and 9.10.x before 9.10.2-P3 mishandle TKEY queries, triggering a REQUIRE assertion failure that terminates the named dae…KEVEPSS 100%analysed10.0CVE-2015-0235glibc gethostbyname heap buffer overflow (GHOST)CVE-2015-0235 is a heap-based buffer overflow in the __nss_hostname_digits_dots function in glibc 2.2 and other 2.x versions before 2.18. It is reach…EPSS 95%analysed

Source: NIST National Vulnerability Database (record CVE-2021-21704), CISA KEV, FIRST EPSS (scores of 2026-11-17). This page is refreshed as NVD updates the record.