PHP 8.0.8 is known vulnerabilities confirmed: 20 confirmed known vulnerabilities (6 critical, 8 high, 6 medium, 0 low, 5 RCE-related). Support status: End of life. This is a version-based check, not a full application audit. Recommended upgrade: PHP 8.6.0.
Security status
Known vulnerabilities confirmed
At least one CVE has a structured PHP runtime range that contains this version, and trusted sources do not disagree. Red means confirmed issues in the data, not that every deployment can be exploited.
Risk: Confirmed issues in the checked data
20 confirmed findings (6 critical, 8 high, 6 medium, 0 low). A match does not prove every deployment can be exploited.
This is a version-based check of published PHP runtime records. It is not a full application audit. Extensions, configuration, application code, and the SAPI can change the real risk.
Confirmed by severity: 6 critical, 8 high, 6 medium, 0 low. 4 still need verification.
Sources: NIST NVD API 2.0, php.net supported versions, end-of-life list, and releases, PHP ChangeLog, GitHub Security Advisories for php/php-src. Data last updated 24 Nov 2026, 03:47 UTC.
Data last updated: 24 Nov 2026, 03:47 UTC
Current version
8.0.8
Official support
End of life
PHP 8.0
Known vulnerabilities
20
4 need verification
Critical / high
6 / 8
Confirmed findings only
RCE-related CVEs
5
Confirmed, with a stated basis
Minimum security fix
8.0.30
Recommended upgrade
8.6.0
Last data update
24 Nov 2026, 03:47 UTC
Fresh cache
Upgrade recommendation
Minimum security fix on PHP 8.0
8.0.30 is the lowest release on PHP 8.0 that contains every verified fix for the confirmed issues in this result. PHP 8.0 is end of life, so 8.0.30 is only the newest verified fix on that unsupported branch. It is not a recommended long-term target.
Recommended long-term release
8.6.0 is the latest patch on PHP 8.6, which php.net lists as active support. It is the long-term upgrade, chosen because the branch is still supported. This check does not claim that release is vulnerability-free.
No PHP release should be treated as vulnerability-free. New issues are published after this dataset was synced, and some bugs depend on how PHP is installed.
PHP 8.0 no longer receives upstream fixes. Running its last patch still leaves the installation unsupported.
Moving from 8.0 to 8.6 can change language behavior, removed extensions, and default settings. Review each migration guide before upgrading: https://www.php.net/manual/en/migration81.php, https://www.php.net/manual/en/migration82.php, https://www.php.net/manual/en/migration83.php, https://www.php.net/manual/en/migration84.php, https://www.php.net/manual/en/migration85.php, https://www.php.net/manual/en/migration86.php.
If this PHP build comes from a Linux distribution (Debian, Ubuntu, RHEL, Alpine, and others), the package may include backported security fixes that do not change the MAJOR.MINOR.PATCH string. This check cannot see those patches. A match is not proof the distro package is still vulnerable, and a clean result is not proof every fix was included. Check the distribution's own security tracker for the package you installed.
Upgrade commands
Examples use the versions already named in this report. They do not claim a CVE is fixed, and they are not run here.
Confirm the installed version
php -v
Read the MAJOR.MINOR.PATCH line. This site never runs that command for you.
Minimum verified fix on the current branch
# Report named 8.0.30 as a verified fix on this branch.
# Install that release from php.net or your platform, then run php -v.
A same-branch patch is not a long-term target when the branch is out of support. No package version was invented for your distro.
Homebrew (macOS or Linux)
brew install php@8.6
php -v
Installs the php@8.6 formula. Homebrew does not pin the patch 8.6.0. Confirm php -v after install.
Docker official PHP image
FROM php:8.6.0-fpm-bookworm
# Rebuild the image after you change the tag.
Example pin for the recommended patch 8.6.0. Confirm the tag exists in the official php image before you deploy. A floating tag such as php:8.6-fpm is not a patch pin. See the Docker tool for the library's current mapping.
ondrej/php is a community archive, not a php.net or Debian project. Review it before you use it. Distro packages can lag or carry backports this checker cannot see.
Composer platform (does not upgrade PHP)
composer config platform.php 8.6.0
This only tells Composer which PHP version to resolve dependencies for. It does not change the runtime and does not fix vulnerabilities.
Support timeline
Initial release
26 Nov 2020
Active support end
26 Nov 2022
Security support end
26 Nov 2023
Latest patch on branch
8.0.30
Remote Code Execution & Shell Execution Risk
This section lists matched records whose CWE or description indicates remote code execution, command injection, shell execution, CGI argument injection, code execution, or unsafe runtime behavior. The basis is shown for each one. A matching version does not prove the bug is exploitable: the SAPI, operating system, web server, and extensions decide whether the vulnerable code path exists.
CVE-2021-21708Confirmed vulnerableCRITICAL
In PHP versions 7.4.x below 7.4.28, 8.0.x below 8.0.16, and 8.1.x below 8.1.3, when using filter functions with FILTER_VALIDATE_FLOAT filter and min/max limits, if the filter fails, there is a possibility to trigger use of allocated memory after free, which can result it crashes, and potentially in overwrite of other memory chunks and RCE. This issue affects: code that uses FILTER_VALIDATE_FLOAT with min/max limits.
Affected versions: PHP 8.0 only, 8.0.0 (including) to 8.0.16 (excluding); 8.0.0 (including) to 8.0.16 (excluding)
The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and resultant buffer overflow that allows attackers to execute arbitrary code or eliminate expected cryptographic properties. This occurs in the sponge function interface.
Affected versions: 8.0.0 (including) to 8.0.25 (excluding)
In PHP version 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8, when loading phar file, while reading PHAR directory entries, insufficient length checking may lead to a stack buffer overflow, leading potentially to memory corruption or RCE.
Affected versions: PHP 8.0 only, 8.0.0 (including) to 8.0.30 (excluding); 8.0.0 (including) to 8.0.30 (excluding); PHP 8.0 only, before 8.0.30
PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request. Some contexts may not properly account for this scenario and leave request memory in an uninitialized state before performing an allocation. The subsequent request cleanup procedure may read or branch on this memory. Multiple OOM strategies can consistently trigger this condition and lead to remote code execution (RCE).
Affected versions: 7.3.0 (including) to 8.2.35 (excluding)
PHP has various global state that temporarily points into request memory. In some scenarios, global state may not be correctly reset, or may be repopulated after being reset. The global state may then refer to request memory even after it has been freed. Subsequent requests may read or branch on this stale state before it is fully initialized. Multiple strategies can trigger this condition and produce remote code execution (RCE).
Affected versions: 5.4.0 (including) to 8.2.35 (excluding)
In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when pdo_mysql extension with mysqlnd driver, if the third party is allowed to supply host to connect to and the password for the connection, password of excessive length can trigger a buffer overflow in PHP, which can lead to a remote code execution vulnerability.
Affected versions: PHP 8.0 only, 8.0.0 (including) to 8.0.20 (excluding); 8.0.0 (including) to 8.0.20 (excluding)
In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when using Postgres database extension, supplying invalid parameters to the parametrized query may lead to PHP attempting to free memory using uninitialized data as pointers. This could lead to RCE vulnerability or denial of service.
Affected versions: PHP 8.0 only, 8.0.0 (including) to 8.0.20 (excluding); 8.0.0 (including) to 8.0.20 (excluding)
PHP 8.0 only, 8.0.0 (including) to 8.0.16 (excluding); 8.0.0 (including) to 8.0.16 (excluding)
8.0.16
CVE-2022-37454
Confirmed vulnerable
CRITICAL
9.8
8.0.0 (including) to 8.0.25 (excluding)
8.0.25
CVE-2023-3824
Confirmed vulnerable
CRITICAL
9.8
PHP 8.0 only, 8.0.0 (including) to 8.0.30 (excluding); 8.0.0 (including) to 8.0.30 (excluding); PHP 8.0 only, before 8.0.30
8.0.30
CVE-2026-109618
Potentially affected — verification required
CRITICAL
9.2
7.3.0 (including) to 8.2.35 (excluding)
Not verified
CVE-2026-109619
Potentially affected — verification required
CRITICAL
9.2
5.4.0 (including) to 8.2.35 (excluding)
Not verified
CVE-2022-31631
Confirmed vulnerable
CRITICAL
9.1
PHP 8.0 only, 8.0.0 (including) to 8.0.27 (excluding); 8.0.0 (including) to 8.0.27 (excluding)
8.0.27
CVE-2022-31626
Confirmed vulnerable
HIGH
8.8
PHP 8.0 only, 8.0.0 (including) to 8.0.20 (excluding); 8.0.0 (including) to 8.0.20 (excluding)
8.0.20
CVE-2022-31625
Confirmed vulnerable
HIGH
8.1
PHP 8.0 only, 8.0.0 (including) to 8.0.20 (excluding); 8.0.0 (including) to 8.0.20 (excluding)
8.0.20
CVE-2023-0568
Confirmed vulnerable
HIGH
8.1
PHP 8.0 only, 8.0.0 (including) to 8.0.28 (excluding); 8.0.0 (including) to 8.0.28 (excluding)
8.0.28
CVE-2017-9118
Confirmed vulnerable
HIGH
7.5
8.0.0 (including) to 8.0.14 (excluding)
8.0.14
CVE-2023-0662
Confirmed vulnerable
HIGH
7.5
PHP 8.0 only, 8.0.0 (including) to 8.0.28 (excluding); 8.0.0 (including) to 8.0.28 (excluding); PHP 8.0 only, before 8.0.27 (including that release)
8.0.28
CVE-2023-3823
Confirmed vulnerable
HIGH
7.5
PHP 8.0 only, 8.0.0 (including) to 8.0.30 (excluding); 8.0.0 (including) to 8.0.30 (excluding); PHP 8.0 only, before 8.0.30
8.0.30
CVE-2022-31630
Confirmed vulnerable
HIGH
7.1
PHP 8.0 only, 8.0.0 (including) to 8.0.25 (excluding); 8.0.0 (including) to 8.0.25 (excluding)
8.0.25
CVE-2021-21703
Confirmed vulnerable
HIGH
7
PHP 8.0 only, 8.0.0 (including) to 8.0.12 (excluding); 8.0.0 (including) to 8.0.12 (excluding)
8.0.12
CVE-2021-21706
Confirmed vulnerable
MEDIUM
6.5
PHP 8.0 only, 8.0.0 (including) to 8.0.11 (excluding); 8.0.0 (including) to 8.0.11 (excluding)
8.0.11
CVE-2022-31629
Confirmed vulnerable
MEDIUM
6.5
PHP 8.0 only, 8.0.0 (including) to 8.0.24 (excluding); 8.0.0 (including) to 8.0.24 (excluding)
8.0.24
CVE-2023-0567
Confirmed vulnerable
MEDIUM
6.2
PHP 8.0 only, 8.0.0 (including) to 8.0.28 (excluding); 8.0.0 (including) to 8.0.28 (excluding)
8.0.28
CVE-2022-31628
Confirmed vulnerable
MEDIUM
5.5
PHP 8.0 only, 8.0.0 (including) to 8.0.24 (excluding); 8.0.0 (including) to 8.0.24 (excluding)
8.0.24
CVE-2022-4900
Potentially affected — verification required
MEDIUM
5.5
PHP 8.0 only, before 8.0.22
Not verified
CVE-2021-21707
Confirmed vulnerable
MEDIUM
5.3
PHP 8.0 only, 8.0.0 (including) to 8.0.13 (excluding); 8.0.0 (including) to 8.0.13 (excluding)
8.0.13
CVE-2024-5458
Potentially affected — verification required
MEDIUM
5.3
8.0.2 (including) to 8.0.30 (including)
Not verified
CVE-2023-3247
Confirmed vulnerable
MEDIUM
4.3
PHP 8.0 only, 8.0.0 (including) to 8.0.29 (excluding); 8.0.0 (including) to 8.0.29 (excluding)
8.0.29
CVE-2017-8923
CRITICAL
CVSS 9.8
8.0.0 (including) to 8.0.11 (excluding)
Fixed: 8.0.11
The zend_string_extend function in Zend/zend_string.h in PHP through 7.1.5 does not prevent changes to string objects that result in a negative length, which allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact by leveraging a script's use of .= with a long string.
8.0.11 is the fixed release named by the matching range and it is published on php.net.
PHP 7.x through 7.1.5 allows remote attackers to cause a denial of service (buffer overflow and application crash) or possibly have unspecified other impact via a long string because of an Integer overflow in mysqli_real_escape_string.
8.0.10 is the fixed release named by the matching range and it is published on php.net.
PHP 8.0 only, 8.0.0 (including) to 8.0.16 (excluding); 8.0.0 (including) to 8.0.16 (excluding)
Fixed: 8.0.16
In PHP versions 7.4.x below 7.4.28, 8.0.x below 8.0.16, and 8.1.x below 8.1.3, when using filter functions with FILTER_VALIDATE_FLOAT filter and min/max limits, if the filter fails, there is a possibility to trigger use of allocated memory after free, which can result it crashes, and potentially in overwrite of other memory chunks and RCE. This issue affects: code that uses FILTER_VALIDATE_FLOAT with min/max limits.
8.0.16 is the fixed release named by the matching range and it is published on php.net.
RCE basis: Description says remote code execution
Sources: php.net via NVD affected data, NVD CPE configuration
The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and resultant buffer overflow that allows attackers to execute arbitrary code or eliminate expected cryptographic properties. This occurs in the sponge function interface.
8.0.25 is the fixed release named by the matching range and it is published on php.net.
PHP 8.0 only, 8.0.0 (including) to 8.0.30 (excluding); 8.0.0 (including) to 8.0.30 (excluding); PHP 8.0 only, before 8.0.30
Fixed: 8.0.30
In PHP version 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8, when loading phar file, while reading PHAR directory entries, insufficient length checking may lead to a stack buffer overflow, leading potentially to memory corruption or RCE.
8.0.30 is the fixed release named by the matching range and it is published on php.net.
PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request. Some contexts may not properly account for this scenario and leave request memory in an uninitialized state before performing an allocation. The subsequent request cleanup procedure may read or branch on this memory. Multiple OOM strategies can consistently trigger this condition and lead to remote code execution (RCE).
Not verified. No single fixed release could be confirmed from the structured ranges and the php.net release list.
Conflict: A CPE or GitHub range contains this version, but the php.net affected list does not.
RCE basis: Description says remote code execution
Sources: php.net via NVD affected data, NVD CPE configuration
PHP has various global state that temporarily points into request memory. In some scenarios, global state may not be correctly reset, or may be repopulated after being reset. The global state may then refer to request memory even after it has been freed. Subsequent requests may read or branch on this stale state before it is fully initialized. Multiple strategies can trigger this condition and produce remote code execution (RCE).
Not verified. No single fixed release could be confirmed from the structured ranges and the php.net release list.
Conflict: A CPE or GitHub range contains this version, but the php.net affected list does not.
RCE basis: Description says remote code execution
Sources: php.net via NVD affected data, NVD CPE configuration
PHP 8.0 only, 8.0.0 (including) to 8.0.27 (excluding); 8.0.0 (including) to 8.0.27 (excluding)
Fixed: 8.0.27
In PHP versions 8.0.* before 8.0.27, 8.1.* before 8.1.15, 8.2.* before 8.2.2 when using PDO::quote() function to quote user-supplied data for SQLite, supplying an overly long string may cause the driver to incorrectly quote the data, which may further lead to SQL injection vulnerabilities.
8.0.27 is the fixed release named by the matching range and it is published on php.net.
Prerequisites: NVD configuration also requires cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*
PHP 8.0 only, 8.0.0 (including) to 8.0.20 (excluding); 8.0.0 (including) to 8.0.20 (excluding)
Fixed: 8.0.20
In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when pdo_mysql extension with mysqlnd driver, if the third party is allowed to supply host to connect to and the password for the connection, password of excessive length can trigger a buffer overflow in PHP, which can lead to a remote code execution vulnerability.
8.0.20 is the fixed release named by the matching range and it is published on php.net.
PHP 8.0 only, 8.0.0 (including) to 8.0.20 (excluding); 8.0.0 (including) to 8.0.20 (excluding)
Fixed: 8.0.20
In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when using Postgres database extension, supplying invalid parameters to the parametrized query may lead to PHP attempting to free memory using uninitialized data as pointers. This could lead to RCE vulnerability or denial of service.
8.0.20 is the fixed release named by the matching range and it is published on php.net.
PHP 8.0 only, 8.0.0 (including) to 8.0.28 (excluding); 8.0.0 (including) to 8.0.28 (excluding)
Fixed: 8.0.28
In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, core path resolution function allocate buffer one byte too small. When resolving paths with lengths close to system MAXPATHLEN setting, this may lead to the byte after the allocated buffer being overwritten with NUL value, which might lead to unauthorized data access or modification.
8.0.28 is the fixed release named by the matching range and it is published on php.net.
Sources: php.net via NVD affected data, NVD CPE configuration
PHP 8.0 only, 8.0.0 (including) to 8.0.28 (excluding); 8.0.0 (including) to 8.0.28 (excluding); PHP 8.0 only, before 8.0.27 (including that release)
Fixed: 8.0.28
In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, excessive number of parts in HTTP form upload can cause high resource consumption and excessive number of log entries. This can cause denial of service on the affected server by exhausting CPU resources or disk space.
8.0.28 is the fixed release named by the matching range and it is published on php.net.
PHP 8.0 only, 8.0.0 (including) to 8.0.30 (excluding); 8.0.0 (including) to 8.0.30 (excluding); PHP 8.0 only, before 8.0.30
Fixed: 8.0.30
In PHP versions 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8 various XML functions rely on libxml global state to track configuration variables, like whether external entities are loaded. This state is assumed to be unchanged unless the user explicitly changes it by calling appropriate function. However, since the state is process-global, other modules - such as ImageMagick - may also use this library within the same process, and change that global state for their internal purposes, and leave it in a state where external entities loading is enabled. This can lead to the situation where external XML is parsed with external entities loaded, which can lead to disclosure of any local files accessible to PHP. This vulnerable state may persist in the same process across many requests, until the process is shut down.
8.0.30 is the fixed release named by the matching range and it is published on php.net.
PHP 8.0 only, 8.0.0 (including) to 8.0.25 (excluding); 8.0.0 (including) to 8.0.25 (excluding)
Fixed: 8.0.25
In PHP versions prior to 7.4.33, 8.0.25 and 8.1.12, when using imageloadfont() function in gd extension, it is possible to supply a specially crafted font file, such as if the loaded font is used with imagechar() function, the read outside allocated buffer will be used. This can lead to crashes or disclosure of confidential information.
8.0.25 is the fixed release named by the matching range and it is published on php.net.
PHP 8.0 only, 8.0.0 (including) to 8.0.12 (excluding); 8.0.0 (including) to 8.0.12 (excluding)
Fixed: 8.0.12
In PHP versions 7.3.x up to and including 7.3.31, 7.4.x below 7.4.25 and 8.0.x below 8.0.12, when running PHP FPM SAPI with main FPM daemon process running as root and child worker processes running as lower-privileged users, it is possible for the child processes to access memory shared with the main process and write to it, modifying it in a way that would cause the root process to conduct invalid memory reads and writes, which can be used to escalate privileges from local unprivileged user to the root user.
8.0.12 is the fixed release named by the matching range and it is published on php.net.
PHP 8.0 only, 8.0.0 (including) to 8.0.11 (excluding); 8.0.0 (including) to 8.0.11 (excluding)
Fixed: 8.0.11
In PHP versions 7.3.x below 7.3.31, 7.4.x below 7.4.24 and 8.0.x below 8.0.11, in Microsoft Windows environment, ZipArchive::extractTo may be tricked into writing a file outside target directory when extracting a ZIP file, thus potentially causing files to be created or overwritten, subject to OS permissions.
8.0.11 is the fixed release named by the matching range and it is published on php.net.
Prerequisites: Platform: Windows; NVD configuration also requires cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*
Sources: php.net via NVD affected data, NVD CPE configuration
PHP 8.0 only, 8.0.0 (including) to 8.0.24 (excluding); 8.0.0 (including) to 8.0.24 (excluding)
Fixed: 8.0.24
In PHP versions before 7.4.31, 8.0.24 and 8.1.11, the vulnerability enables network and same-site attackers to set a standard insecure cookie in the victim's browser which is treated as a `__Host-` or `__Secure-` cookie by PHP applications.
8.0.24 is the fixed release named by the matching range and it is published on php.net.
PHP 8.0 only, 8.0.0 (including) to 8.0.28 (excluding); 8.0.0 (including) to 8.0.28 (excluding)
Fixed: 8.0.28
In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, password_verify() function may accept some invalid Blowfish hashes as valid. If such invalid hash ever ends up in the password database, it may lead to an application allowing any password for this entry as valid.
8.0.28 is the fixed release named by the matching range and it is published on php.net.
PHP 8.0 only, 8.0.0 (including) to 8.0.24 (excluding); 8.0.0 (including) to 8.0.24 (excluding)
Fixed: 8.0.24
In PHP versions before 7.4.31, 8.0.24 and 8.1.11, the phar uncompressor code would recursively uncompress "quines" gzip files, resulting in an infinite loop.
8.0.24 is the fixed release named by the matching range and it is published on php.net.
PHP 8.0 only, 8.0.0 (including) to 8.0.13 (excluding); 8.0.0 (including) to 8.0.13 (excluding)
Fixed: 8.0.13
In PHP versions 7.3.x below 7.3.33, 7.4.x below 7.4.26 and 8.0.x below 8.0.13, certain XML parsing functions, like simplexml_load_file(), URL-decode the filename passed to them. If that filename contains URL-encoded NUL character, this may cause the function to interpret this as the end of the filename, thus interpreting the filename differently from what the user intended, which may lead it to reading a different file than intended.
8.0.13 is the fixed release named by the matching range and it is published on php.net.
In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, due to a code logic error, filtering functions such as filter_var when validating URLs (FILTER_VALIDATE_URL) for certain types of URLs the function will result in invalid user information (username + password part of URLs) being treated as valid user information. This may lead to the downstream code accepting invalid URLs as valid and parsing them incorrectly.
Not verified. No single fixed release could be confirmed from the structured ranges and the php.net release list.
Prerequisites: Module: filter
Conflict: A CPE or GitHub range contains this version, but the php.net affected list does not.
Sources: php.net via NVD affected data, NVD CPE configuration
PHP 8.0 only, 8.0.0 (including) to 8.0.29 (excluding); 8.0.0 (including) to 8.0.29 (excluding)
Fixed: 8.0.29
In PHP versions 8.0.* before 8.0.29, 8.1.* before 8.1.20, 8.2.* before 8.2.7 when using SOAP HTTP Digest Authentication, random value generator was not checked for failure, and was using narrower range of values than it should have. In case of random generator failure, it could lead to a disclosure of 31 bits of uninitialized memory from the client to the server, and it also made easier to a malicious server to guess the client's nonce.
8.0.29 is the fixed release named by the matching range and it is published on php.net.
4 records matched only loosely, or trusted sources disagree. Those are marked potentially affected and need verification.
Records that name the PHP runtime but publish no usable version range were excluded instead of guessed.
GREEN means no matching CVE was confirmed in the data that could be checked, and the branch is still supported. It does not mean the installation is secure.