PHP 7.4.10 is known vulnerabilities confirmed: 18 confirmed known vulnerabilities (3 critical, 6 high, 9 medium, 0 low, 4 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
18 confirmed findings (3 critical, 6 high, 9 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: 3 critical, 6 high, 9 medium, 0 low. 3 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
7.4.10
Official support
End of life
PHP 7.4
Known vulnerabilities
18
3 need verification
Critical / high
3 / 6
Confirmed findings only
RCE-related CVEs
4
Confirmed, with a stated basis
Minimum security fix
Not verified
Recommended upgrade
8.6.0
Last data update
24 Nov 2026, 03:47 UTC
Fresh cache
Upgrade recommendation
Minimum security fix on PHP 7.4
At least one confirmed issue does not have a single verified fixed release on this branch. The minimum security fix is not verified. Use the advisory links instead of assuming a patch level.
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 7.4 no longer receives upstream fixes. Running its last patch still leaves the installation unsupported.
Moving from 7.4 to 8.6 can change language behavior, removed extensions, and default settings. Review each migration guide before upgrading: https://www.php.net/manual/en/migration80.php, 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.
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
28 Nov 2019
Active support end
28 Nov 2021
Security support end
28 Nov 2022
Latest patch on branch
7.4.33
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 7.4 only, 7.4.0 (including) to 7.4.28 (excluding); 7.4.0 (including) to 7.4.28 (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: 7.2.0 (including) to 7.4.33 (excluding)
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 7.4 only, 7.4.0 (including) to 7.4.30 (excluding); 7.4.0 (including) to 7.4.30 (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 7.4 only, 7.4.0 (including) to 7.4.30 (excluding); 7.4.0 (including) to 7.4.30 (excluding)
PHP 7.4 only, 7.4.0 (including) to 7.4.28 (excluding); 7.4.0 (including) to 7.4.28 (excluding)
7.4.28
CVE-2022-37454
Confirmed vulnerable
CRITICAL
9.8
7.2.0 (including) to 7.4.33 (excluding)
7.4.33
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-31626
Confirmed vulnerable
HIGH
8.8
PHP 7.4 only, 7.4.0 (including) to 7.4.30 (excluding); 7.4.0 (including) to 7.4.30 (excluding)
7.4.30
CVE-2022-31625
Confirmed vulnerable
HIGH
8.1
PHP 7.4 only, 7.4.0 (including) to 7.4.30 (excluding); 7.4.0 (including) to 7.4.30 (excluding)
7.4.30
CVE-2017-9118
Confirmed vulnerable
HIGH
7.5
7.4.0 (including) to 7.4.27 (excluding)
7.4.27
CVE-2021-21702
Confirmed vulnerable
HIGH
7.5
PHP 7.4 only, 7.4.0 (including) to 7.4.15 (excluding); 7.4.0 (including) to 7.4.15 (excluding)
7.4.15
CVE-2022-31630
Confirmed vulnerable
HIGH
7.1
PHP 7.4 only, 7.4.0 (including) to 7.4.33 (excluding); 7.4.0 (including) to 7.4.33 (excluding)
7.4.33
CVE-2021-21703
Confirmed vulnerable
HIGH
7
PHP 7.4 only, 7.4.0 (including) to 7.4.25 (excluding); 7.4.0 (including) to 7.4.25 (excluding)
7.4.25
CVE-2020-7069
Confirmed vulnerable
MEDIUM
6.5
PHP 7.4 only, 7.4.0 (including) to 7.4.11 (excluding); 7.4.0 (including) to 7.4.11 (excluding)
7.4.11
CVE-2021-21706
Confirmed vulnerable
MEDIUM
6.5
PHP 7.4 only, 7.4.0 (including) to 7.4.24 (excluding); 7.4.0 (including) to 7.4.24 (excluding)
7.4.24
CVE-2022-31629
Confirmed vulnerable
MEDIUM
6.5
PHP 7.4 only, 7.4.0 (including) to 7.4.31 (excluding); PHP 7.4 only, before 7.4.31
Not verified
CVE-2021-21704
Confirmed vulnerable
MEDIUM
5.9
PHP 7.4 only, 7.4.0 (including) to 7.4.21 (excluding); 7.4.0 (including) to 7.4.21 (excluding)
7.4.21
CVE-2022-31628
Confirmed vulnerable
MEDIUM
5.5
PHP 7.4 only, 7.4.0 (including) to 7.4.31 (excluding); PHP 7.4 only, before 7.4.31
Not verified
CVE-2020-7070
Confirmed vulnerable
MEDIUM
5.3
PHP 7.4 only, 7.4.0 (including) to 7.4.11 (excluding); 7.4.0 (including) to 7.4.11 (excluding)
7.4.11
CVE-2020-7071
Confirmed vulnerable
MEDIUM
5.3
PHP 7.4 only, 7.4.0 (including) to 7.4.14 (excluding); 7.4.0 (including) to 7.4.14 (excluding)
7.4.14
CVE-2021-21705
Confirmed vulnerable
MEDIUM
5.3
PHP 7.4 only, 7.4.0 (including) to 7.4.21 (excluding); 7.4.0 (including) to 7.4.21 (excluding)
7.4.21
CVE-2021-21707
Confirmed vulnerable
MEDIUM
5.3
PHP 7.4 only, 7.4.0 (including) to 7.4.26 (excluding); 7.4.0 (including) to 7.4.26 (excluding)
7.4.26
CVE-2017-8923
CRITICAL
CVSS 9.8
PHP 7.4 only, before 7.4.24
Fixed: Not verified
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.
Sources name 7.4.24, but that release was not found in the php.net release list used for this check. Fixed version: not verified.
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.
7.4.23 is the fixed release named by the matching range and it is published on php.net.
PHP 7.4 only, 7.4.0 (including) to 7.4.28 (excluding); 7.4.0 (including) to 7.4.28 (excluding)
Fixed: 7.4.28
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.
7.4.28 is the fixed release named by the matching range and it is published on php.net.
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.
7.4.33 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 7.4 only, 7.4.0 (including) to 7.4.30 (excluding); 7.4.0 (including) to 7.4.30 (excluding)
Fixed: 7.4.30
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.
7.4.30 is the fixed release named by the matching range and it is published on php.net.
PHP 7.4 only, 7.4.0 (including) to 7.4.30 (excluding); 7.4.0 (including) to 7.4.30 (excluding)
Fixed: 7.4.30
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.
7.4.30 is the fixed release named by the matching range and it is published on php.net.
PHP 7.4 only, 7.4.0 (including) to 7.4.15 (excluding); 7.4.0 (including) to 7.4.15 (excluding)
Fixed: 7.4.15
In PHP versions 7.3.x below 7.3.27, 7.4.x below 7.4.15 and 8.0.x below 8.0.2, when using SOAP extension to connect to a SOAP server, a malicious SOAP server could return malformed XML data as a response that would cause PHP to access a null pointer and thus cause a crash.
7.4.15 is the fixed release named by the matching range and it is published on php.net.
PHP 7.4 only, 7.4.0 (including) to 7.4.33 (excluding); 7.4.0 (including) to 7.4.33 (excluding)
Fixed: 7.4.33
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.
7.4.33 is the fixed release named by the matching range and it is published on php.net.
PHP 7.4 only, 7.4.0 (including) to 7.4.25 (excluding); 7.4.0 (including) to 7.4.25 (excluding)
Fixed: 7.4.25
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.
7.4.25 is the fixed release named by the matching range and it is published on php.net.
PHP 7.4 only, 7.4.0 (including) to 7.4.11 (excluding); 7.4.0 (including) to 7.4.11 (excluding)
Fixed: 7.4.11
In PHP versions 7.2.x below 7.2.34, 7.3.x below 7.3.23 and 7.4.x below 7.4.11, when AES-CCM mode is used with openssl_encrypt() function with 12 bytes IV, only first 7 bytes of the IV is actually used. This can lead to both decreased security and incorrect encryption data.
7.4.11 is the fixed release named by the matching range and it is published on php.net.
PHP 7.4 only, 7.4.0 (including) to 7.4.24 (excluding); 7.4.0 (including) to 7.4.24 (excluding)
Fixed: 7.4.24
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.
7.4.24 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:-:*:*:*:*:*:*:*
PHP 7.4 only, 7.4.0 (including) to 7.4.31 (excluding); PHP 7.4 only, before 7.4.31
Fixed: Not verified
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.
Sources name 7.4.31, but that release was not found in the php.net release list used for this check. Fixed version: not verified.
PHP 7.4 only, 7.4.0 (including) to 7.4.21 (excluding); 7.4.0 (including) to 7.4.21 (excluding)
Fixed: 7.4.21
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.
7.4.21 is the fixed release named by the matching range and it is published on php.net.
PHP 7.4 only, 7.4.0 (including) to 7.4.31 (excluding); PHP 7.4 only, before 7.4.31
Fixed: Not verified
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.
Sources name 7.4.31, but that release was not found in the php.net release list used for this check. Fixed version: not verified.
PHP 7.4 only, 7.4.0 (including) to 7.4.11 (excluding); 7.4.0 (including) to 7.4.11 (excluding)
Fixed: 7.4.11
In PHP versions 7.2.x below 7.2.34, 7.3.x below 7.3.23 and 7.4.x below 7.4.11, when PHP is processing incoming HTTP cookie values, the cookie names are url-decoded. This may lead to cookies with prefixes like __Host confused with cookies that decode to such prefix, thus leading to an attacker being able to forge cookie which is supposed to be secure. See also CVE-2020-8184 for more information.
7.4.11 is the fixed release named by the matching range and it is published on php.net.
PHP 7.4 only, 7.4.0 (including) to 7.4.14 (excluding); 7.4.0 (including) to 7.4.14 (excluding)
Fixed: 7.4.14
In PHP versions 7.3.x below 7.3.26, 7.4.x below 7.4.14 and 8.0.0, when validating URL with functions like filter_var($url, FILTER_VALIDATE_URL), PHP will accept an URL with invalid password as valid URL. This may lead to functions that rely on URL being valid to mis-parse the URL and produce wrong data as components of the URL.
7.4.14 is the fixed release named by the matching range and it is published on php.net.
PHP 7.4 only, 7.4.0 (including) to 7.4.21 (excluding); 7.4.0 (including) to 7.4.21 (excluding)
Fixed: 7.4.21
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 URL validation functionality via filter_var() function with FILTER_VALIDATE_URL parameter, an URL with invalid password field can be accepted as valid. This can lead to the code incorrectly parsing the URL and potentially leading to other security implications - like contacting a wrong server or making a wrong access decision.
7.4.21 is the fixed release named by the matching range and it is published on php.net.
PHP 7.4 only, 7.4.0 (including) to 7.4.26 (excluding); 7.4.0 (including) to 7.4.26 (excluding)
Fixed: 7.4.26
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.
7.4.26 is the fixed release named by the matching range and it is published on php.net.
3 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.