PHP versions
PHP: update to 8.6.0, 8.5.13, 8.4.28, 8.3.37 or 8.2.36. 8.1 and older have reached end of life in the lifecycle data.
Data: .
Which PHP branch to run
The newest safe release is the newest release of a branch that still gets fixes and that no CVE record we read names as affected. Records whose versions we cannot place on a branch are counted at the end of the page.
| Branch | Status | Newest safe release | Upgrade to |
|---|---|---|---|
| 8.6 | Bug and security fixes until 31 December 2028 | 8.6.0 | 8.6.0 (this branch) |
| 8.537 CVE records | Bug and security fixes until 31 December 2027 | 8.5.13 | 8.5.13 (this branch) |
| 8.443 CVE records | Bug and security fixes until 31 December 2026 | 8.4.28 | 8.4.28 (this branch) |
| 8.356 CVE records | Security fixes only until 31 December 2027 | 8.3.37 | 8.3.37 (this branch) |
| 8.260 CVE records | Security fixes only until 31 December 2026 | 8.2.36 | 8.2.36 (this branch) |
| 8.143 CVE records | Ended on 31 December 2025 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 8.020 CVE records | Ended on 26 November 2023 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 7.431 CVE records | Ended on 28 November 2022 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 7.333 CVE records | Ended on 6 December 2021 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 7.223 CVE records | Ended on 30 November 2020 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 7.18 CVE records | Ended on 1 December 2019 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 7.0 | Ended on 10 January 2019 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 5.6 | Ended on 31 December 2018 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 5.5 | Ended on 21 July 2016 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 5.4 | Ended on 14 September 2015 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 5.3 | Ended on 14 August 2014 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 5.2 | Ended on 6 January 2011 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 5.1 | Ended on 24 August 2006 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 4.4 | Ended on 7 August 2008 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 5.0 | Ended on 5 September 2005 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 4.3 | Ended on 31 March 2005 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 4.2 | Ended on 6 September 2002 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 4.1 | Ended on 12 March 2002 | None, the branch has ended | 8.2.36 (move to 8.2) |
| 4.0 | Ended on 23 June 2001 | None, the branch has ended | 8.2.36 (move to 8.2) |
Exploited, or likely to be
CVE records for PHP that CISA lists as exploited, that have a public exploit, or that EPSS rates 0.50 or more, with the releases that fix each where the record names them. 6 of the 8 records shown name one.
| Record | Signs of exploitation | Fixed in |
|---|---|---|
| CVE-2024-4577Argument Injection in PHP-CGI9.8 Critical · published 9 June 2024 | On CISA's list Metasploit module Exploit-DB entry EPSS 0.50 or more | Fixed in 8.3.8, 8.2.20, 8.1.29 |
| CVE-2019-11043Underflow in PHP-FPM can lead to RCE8.7 High · published 28 October 2019 | On CISA's list Metasploit module Exploit-DB entry EPSS 0.50 or more | Fixed in 7.3.11, 7.2.24, 7.1.33 |
| CVE-2012-1823PHP-CGI Query String Parameter9.8 Critical · published 11 May 2012 | On CISA's list Metasploit module Exploit-DB entry EPSS 0.50 or more | No record that we read gives its versions, so this page does not place it on a branch. |
| CVE-2026-109618RCE via OOM corruption9.2 Critical · published 21 October 2026 | On CISA's list Exploit-DB entry EPSS 0.50 or more | Fixed in 8.5.12, 8.4.27, 8.3.36, 8.2.35 |
| CVE-2026-109619RCE via stale global state9.2 Critical · published 21 October 2026 | On CISA's list EPSS 0.50 or more | Fixed in 8.5.12, 8.4.27, 8.3.36, 8.2.35 |
| CVE-2026-115560Session serializer mismatch can lead to remote code execution9.2 Critical · published 19 November 2026 | EPSS 0.50 or more | This page does not place it on a branch. |
| CVE-2022-31626mysqlnd/pdo password buffer overflow7.5 High · published 16 June 2022 | EPSS 0.50 or more | Fixed in 8.1.7, 8.0.20, 7.4.30 |
| CVE-2022-31629$_COOKIE names string replacement (. -> _): cookie integrity vulnerabilities6.5 Medium · published 28 September 2022 | EPSS 0.50 or more | Fixed in 8.1.11, 8.0.24, 7.4.31 |
CISA's list for the vendor
The entries CISA lists under the vendor names it uses for PHP, each with its patch-first group.
- PHP: exploited vulnerabilities3 entries
- PHP Group: exploited vulnerabilities3 entries
What this page counts
The branches, their dates and the newest release of each are from the product lifecycle data credited under Sources. A later release that a CVE record names as a fix counts as the newest too.
The fixes are from 110 CVE records that PHP's own CVE Numbering Authority published and that name PHP. A record says a release fixes a flaw when its affected range for a branch ends before that release. A record from any other source gives no version here.
A branch that has ended is rarely named in a new record. That is not a sign that it is safe. Not tested by the project, treat as affected.
A release gets a page of its own when it fixes three or more CVE records, or any record that CISA lists as exploited or that EPSS rates 0.50 or more, and keeps it. Any other release is a row on its branch page.
12 records are not placed on a branch, so no branch or release row counts them: CVE-2019-11038, CVE-2020-7067, CVE-2026-15353, CVE-2026-115560, CVE-2026-126714, CVE-2026-128064, CVE-2026-128090, CVE-2026-129289, CVE-2026-129292 and CVE-2026-129496 and 2 others.
Sources
- CVE records: Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation (source). Licence: CVE Program Terms of Use
- Product lifecycle dates from endoflife.date, Copyright 2020 endoflife.date contributors (MIT License) (source). Licence: MIT License
- EPSS scores by FIRST (https://www.first.org/epss/), generated by Empirical Security (source)