PHP 5.x — End of Life
EOL Critical riskPHP 5.x reached end of life on Dec 31, 2018, 2837 days ago, and no longer receives security fixes. The most recent release in this series is 5.6.40. 2 CVEs are tracked for this series, including 1 critical. 2 of them were published after the end of life of the affected cycle and will not get an official patch. The next major version is PHP 7. See PHP 7 →
PHP 5.x — All releases
| Version | Released | Active support | EOL date | Latest patch | Status | Alert me |
|---|---|---|---|---|---|---|
| 5.6 | Aug 28, 2014 | Jan 19, 2017 | Dec 31, 2018 | 5.6.40 | EOL | |
| 5.5 | Jun 20, 2013 | Jul 10, 2015 | Jul 21, 2016 | 5.5.38 | EOL | |
| 5.4 | Mar 1, 2012 | Sep 14, 2014 | Sep 14, 2015 | 5.4.45 | EOL | |
| 5.3 | Jun 30, 2009 | Jun 30, 2011 | Aug 14, 2014 | 5.3.29 | EOL | |
| 5.2 | Nov 2, 2006 | Nov 2, 2008 | Jan 6, 2011 | 5.2.17 | EOL | |
| 5.1 | Nov 24, 2005 | Aug 24, 2006 | Aug 24, 2006 | 5.1.6 | EOL | |
| 5.0 | Jul 13, 2004 | Sep 5, 2005 | Sep 5, 2005 | 5.0.5 | EOL |
CVEs affecting PHP 5.x (9)
| CVE | Severity | CVSS | EPSS | KEV | Cycle | Description | Published |
|---|---|---|---|---|---|---|---|
| CVE-2024-3566 | CRITICAL | 9.8 | 6.88% | — | 5.5 | A command inject vulnerability allows an attacker to perform command injection on Windows applications that indirectly d… | Apr 10, 2024 |
| CVE-2024-3566 | CRITICAL | 9.8 | 6.88% | — | 5.0 | A command inject vulnerability allows an attacker to perform command injection on Windows applications that indirectly d… | Apr 10, 2024 |
| CVE-2024-3566 | CRITICAL | 9.8 | 6.88% | — | 5.6 | A command inject vulnerability allows an attacker to perform command injection on Windows applications that indirectly d… | Apr 10, 2024 |
| CVE-2024-3566 | CRITICAL | 9.8 | 6.88% | — | 5.1 | A command inject vulnerability allows an attacker to perform command injection on Windows applications that indirectly d… | Apr 10, 2024 |
| CVE-2024-3566 | CRITICAL | 9.8 | 6.88% | — | 5.4 | A command inject vulnerability allows an attacker to perform command injection on Windows applications that indirectly d… | Apr 10, 2024 |
| CVE-2024-3566 | CRITICAL | 9.8 | 6.88% | — | 5.3 | A command inject vulnerability allows an attacker to perform command injection on Windows applications that indirectly d… | Apr 10, 2024 |
| CVE-2024-3566 | CRITICAL | 9.8 | 6.88% | — | 5.2 | A command inject vulnerability allows an attacker to perform command injection on Windows applications that indirectly d… | Apr 10, 2024 |
| CVE-2006-3011 | MEDIUM | 4.6 | 1.34% | — | 5.0 | The error_log function in basic_functions.c in PHP before 4.4.4 and 5.x before 5.1.5 allows local users to bypass safe m… | Jun 26, 2006 |
| CVE-2006-3011 | MEDIUM | 4.6 | 1.34% | — | 5.1 | The error_log function in basic_functions.c in PHP before 4.4.4 and 5.x before 5.1.5 allows local users to bypass safe m… | Jun 26, 2006 |
PHP 5.x is EOL — migrate to PHP 7.x
PHP 7.x is the next major release. Plan your upgrade before PHP 5.x stops receiving security patches.
Add a PHP 5 EOL badge to your README
Show your users which PHP version your project runs and whether it is still supported. The badge updates automatically. More formats and options →
[](https://eolcanary.com/explore/php/5)Frequently asked questions
Is PHP 5 end of life?
Yes. All PHP 5.x releases have reached end of life and no longer receive security patches. There are 2 known CVEs affecting PHP 5.x, including 1 critical. Migrate to PHP 7.x as soon as possible.
What CVEs affect PHP 5?
There are 2 CVEs tracked for PHP 5.x, including 1 critical severity issue. See the full list above with CVSS and EPSS scores.
What is the latest PHP 5 version?
The latest PHP 5.x patch release is 5.6.40, released on January 10, 2019. Always run the latest patch to benefit from all security fixes.
How to migrate from PHP 5 to PHP 7?
To migrate from PHP 5 to PHP 7: (1) review the official PHP 7 migration guide for breaking changes, (2) update dependencies and configuration accordingly, (3) test thoroughly in a staging environment, (4) deploy with a rollback plan. Starting early gives you time to resolve compatibility issues before your current version reaches end of life.
Is it safe to run PHP 5 in production?
No. PHP 5 has reached end of life and security vulnerabilities are no longer patched. Upgrade to a supported version immediately.
Data sourced from endoflife.date · CVE data from NVD · EPSS from FIRST.org · KEV from CISA
