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...
Medium CVSS 5.9
- CVE id
- CVE-2021-21704
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| PHP Runtimes and servers |
>= 7.3.0, < 7.3.29 >= 7.4.0, < 7.4.21 >= 8.0.0, < 8.0.8 |
7.3.29, 7.4.21, 8.0.8 |
How to fix it
Upgrade PHP to the fixed release of the line you run: 7.3.29, 7.4.21, 8.0.8.
php --version
- Install the patched PHP release of your minor line (the php image tag or your OS packages) and restart PHP-FPM.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2021-21704 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2021-21704
- Web: https://bugs.php.net/bug.php?id=76448
- Web: https://bugs.php.net/bug.php?id=76449
- Web: https://bugs.php.net/bug.php?id=76450
- Web: https://bugs.php.net/bug.php?id=76452
- Web: https://security.gentoo.org/glsa/202209-20
- Web: https://security.netapp.com/advisory/ntap-20211029-0006/
- Web: https://bugs.php.net/bug.php?id=76448
- Web: https://bugs.php.net/bug.php?id=76449
- Web: https://bugs.php.net/bug.php?id=76450
- Web: https://bugs.php.net/bug.php?id=76452
- Web: https://security.gentoo.org/glsa/202209-20
- Web: https://security.netapp.com/advisory/ntap-20211029-0006/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.