VulnarioBlogPHP vulnerabilities
PHP Vulnerabilities: The 10 Most Critical PHP Security Bugs (CVEs)
PHP vulnerabilities are security flaws in PHP that attackers can abuse to steal data, take over a server or interrupt a service. PHP is the server-side language behind WordPress and most of the web. The National Vulnerability Database (NVD) lists 740 CVEs for PHP, 132 of them rated critical, and 30 were published in the last 12 months. CISA lists 5 of them in its Known Exploited Vulnerabilities (KEV) catalog, which means attackers have used them against real systems.
This guide lists the 10 most critical PHP security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers PHP security basics, the current end-of-life dates and a free way to be told about the next PHP CVE as soon as it is published.
Key takeaways
- 5 CVEs are in CISA's KEV catalog, so attackers have exploited them in the wild.
- 132 PHP CVEs are rated critical (CVSS v3), and 30 new ones were published in the last 12 months.
- The newest CVE in this guide is CVE-2026-109618, published Oct 21, 2026.
- Supported PHP releases today (per endoflife.date): 8.5, 8.4, 8.3, 8.2. Releases not on the list are past their announced end of life.
- You can monitor PHP for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.
How we ranked these PHP CVEs
We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.
Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.
The 10 most critical PHP CVEs at a glance
| # | CVE | CVSS | Published | Type | CISA KEV |
|---|---|---|---|---|---|
| 1 | CVE-2026-109618 | 9.8 Critical | 2026-10-21 | PHP Memory Corruption | Yes |
| 2 | CVE-2024-4577 | 9.8 Critical | 2024-06-09 | PHP-CGI OS Command Injection | Yes (ransomware use known) |
| 3 | CVE-2019-11043 | 9.8 Critical | 2019-10-28 | PHP FastCGI Process Manager (FPM) Buffer Overflow | Yes (ransomware use known) |
| 4 | CVE-2012-1823 | 9.8 Critical | 2012-05-11 | PHP-CGI Query String Parameter | Yes |
| 5 | CVE-2026-109619 | 8.1 High | 2026-10-21 | PHP Stale Internal Request-State | Yes |
| 6 | CVE-2026-17543 | 9.8 Critical | 2026-07-30 | SQL injection | No |
| 7 | CVE-2026-17544 | 9.8 Critical | 2026-07-30 | Out-of-bounds write | No |
| 8 | CVE-2025-14179 | 9.8 Critical | 2026-05-10 | SQL injection | No |
| 9 | CVE-2026-6722 | 9.8 Critical | 2026-05-10 | Use after free | No |
| 10 | CVE-2026-7261 | 9.8 Critical | 2026-05-10 | Use after free | No |
Each PHP CVE explained
1. CVE-2026-109618: PHP Memory Corruption
- What NVD says
- 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.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 7.3.0 to before 8.2.35; 8.3.0 to before 8.3.36; 8.4.0 to before 8.4.27; 8.5.0 to before 8.5.12
- What to do
- Upgrade to the fixed release for your branch (8.2.35, 8.3.36, 8.4.27) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
2. CVE-2024-4577: PHP-CGI OS Command Injection
- What NVD says
- In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, when using Apache and PHP-CGI on Windows, if the system is set up to use certain code pages, Windows may use "Best-Fit" behavior to replace characters in command line given to Win32 API functions.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 8.1.0 to before 8.1.29; 8.2.0 to before 8.2.20; 8.3.0 to before 8.3.8
- What to do
- Upgrade to the fixed release for your branch (8.1.29, 8.2.20, 8.3.8) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
3. CVE-2019-11043: PHP FastCGI Process Manager (FPM) Buffer Overflow
- What NVD says
- In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it is possible to cause FPM module to write past allocated buffers into the space reserved for FCGI protocol data, thus opening the possibility of remote code execution.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 7.1.0 to before 7.1.33; 7.2.0 to before 7.2.24; 7.3.0 to before 7.3.11
- What to do
- Upgrade to the fixed release for your branch (7.1.33, 7.2.24, 7.3.11) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
4. CVE-2012-1823: PHP-CGI Query String Parameter
- What NVD says
- sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 5.3.12; 5.4.0 to before 5.4.2
- What to do
- Upgrade to the fixed release for your branch (5.3.12, 5.4.2) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
5. CVE-2026-109619: PHP Stale Internal Request-State
- What NVD says
- 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.
- How it can be attacked
- Can be exploited remotely over the network with high attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 5.4.0 to before 8.2.35; 8.3.0 to before 8.3.36; 8.4.0 to before 8.4.27; 8.5.0 to before 8.5.12
- What to do
- Upgrade to the fixed release for your branch (8.2.35, 8.3.36, 8.4.27) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
6. CVE-2026-17543: SQL injection
- What NVD says
- Improper escaping of backslashes in attacker-provided parameters would allow for trivial SQL injection in PHP versions from 8.2.* before 8.2.33, from 8.3.* before 8.3.33, from 8.4.* before 8.4.24, and from 8.5.* before 8.5.9.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 8.2.0 to before 8.2.33; 8.3.0 to before 8.3.33; 8.4.0 to before 8.4.24; 8.5.0 to before 8.5.9
- What to do
- Upgrade to the fixed release for your branch (8.2.33, 8.3.33, 8.4.24) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
7. CVE-2026-17544: Out-of-bounds write
- What NVD says
- Attacker-provided inputs to bccomp() could lead to an out-of-bounds write with stack and heap corruption in PHP versions from 8.4.* before 8.4.24 and from 8.5.* before 8.5.9.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 8.4.0 to before 8.4.24; 8.5.0 to before 8.5.9
- What to do
- Upgrade to the fixed release for your branch (8.4.24, 8.5.9) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
8. CVE-2025-14179: SQL injection
- What NVD says
- In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, the PDO Firebird driver improperly handles NUL bytes when preparing SQL queries. During token-by-token query construction, a string token containing a NUL byte is copied via strncat(), which stops at the NUL byte, dropping the closing quote and causing subsequent SQL tokens to be interpreted as part of the string.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 8.2.0 to before 8.2.31; 8.3.0 to before 8.3.31; 8.4.0 to before 8.4.21; 8.5.0 to before 8.5.6
- What to do
- Upgrade to the fixed release for your branch (8.2.31, 8.3.31, 8.4.21) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
9. CVE-2026-6722: Use after free
- What NVD says
- In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, the SOAP extension's object deduplication mechanism stores pointers to PHP objects in a global map without incrementing their reference counts.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 8.2.0 to before 8.2.31; 8.3.0 to before 8.3.31; 8.4.0 to before 8.4.21; 8.5.0 to before 8.5.6
- What to do
- Upgrade to the fixed release for your branch (8.2.31, 8.3.31, 8.4.21) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
10. CVE-2026-7261: Use after free
- What NVD says
- In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, when SoapServer is configured with SOAP_PERSISTENCE_SESSION, the handler object is persisted across requests via session storage.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 8.2.0 to before 8.2.31; 8.3.0 to before 8.3.31; 8.4.0 to before 8.4.21; 8.5.0 to before 8.5.6
- What to do
- Upgrade to the fixed release for your branch (8.2.31, 8.3.31, 8.4.21) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
PHP end of life: which versions still get security fixes
Running a release that still receives security fixes is the most effective way to avoid PHP vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported PHP releases are 8.5, 8.4, 8.3, 8.2.
| Release | Released | End of life | Latest | Status |
|---|---|---|---|---|
| PHP 8.5 | Nov 20, 2025 | Dec 31, 2029 | 8.5.12 | Supported |
| PHP 8.4 | Nov 21, 2024 | Dec 31, 2028 | 8.4.27 | Supported |
| PHP 8.3 | Nov 23, 2023 | Dec 31, 2027 | 8.3.36 | Supported |
| PHP 8.2 | Dec 8, 2022 | Dec 31, 2026 | 8.2.35 | Supported |
| PHP 8.1 | Nov 25, 2021 | Dec 31, 2025 | 8.1.34 | End of life |
| PHP 8.0 | Nov 26, 2020 | Nov 26, 2023 | 8.0.30 | End of life |
| PHP 7.4 | Nov 28, 2019 | Nov 28, 2022 | 7.4.33 | End of life |
| PHP 7.3 | Dec 6, 2018 | Dec 6, 2021 | 7.3.33 | End of life |
Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.
How to check if your PHP is vulnerable
Find the exact version first, then compare it with the affected and fixed versions in each CVE above.
php -v
On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.
PHP security checklist
- Run a supported release and move to the next branch before the current one reaches end of life.
- Apply patch releases promptly.
- Pin and audit your dependencies, and update the vulnerable ones.
- Run applications as an unprivileged user.
- Disable features and functions your application does not need.
Where you run PHP matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating PHP: on most plans the operating system and applications are yours to patch unless the plan says otherwise.
Your stack is bigger than PHP. A flaw anywhere in the chain can be the way in, so also review our guides to WordPress vulnerabilities, Nginx vulnerabilities and Apache HTTP Server vulnerabilities.
How to get alerted about new PHP vulnerabilities
NVD received 30 new PHP CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:
- Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
- Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
- Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.
Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose PHP and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.
- Free: all technologies, alerts grouped at most every 12 hours.
- Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.
Related security guides
Few stacks run PHP alone. These guides cover the technologies it is most often deployed with.
- WordPress vulnerabilities: WordPress is the world's most used content management system.
- Nginx vulnerabilities: Nginx is a popular web server, reverse proxy and load balancer.
- Apache HTTP Server vulnerabilities: Apache HTTP Server is one of the most widely deployed open-source web servers.
- MySQL vulnerabilities: MySQL is the world's most widely used open-source relational database.
- Laravel vulnerabilities: Laravel is the most popular PHP web application framework.
- cPanel vulnerabilities: cPanel & WHM is the most widely used commercial web hosting control panel for Linux servers.
- CyberPanel vulnerabilities: CyberPanel is a web hosting control panel built around the OpenLiteSpeed web server.
- DirectAdmin vulnerabilities: DirectAdmin is a lightweight commercial web hosting control panel for Linux.
- HestiaCP vulnerabilities: HestiaCP is an open-source web hosting control panel for Linux servers, a fork of VestaCP.
- Plesk vulnerabilities: Plesk is a commercial web hosting and server management control panel for Linux and Windows.
Frequently asked questions about PHP vulnerabilities
What are the most critical PHP vulnerabilities?
Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical PHP CVEs include CVE-2026-109618 (CVSS 9.8), CVE-2024-4577 (CVSS 9.8), CVE-2019-11043 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.
Have PHP vulnerabilities been exploited in real attacks?
Yes. CISA's Known Exploited Vulnerabilities (KEV) catalog lists 5 PHP CVEs, including CVE-2026-109618, CVE-2024-4577, CVE-2019-11043. Treat these as the highest priority to patch.
How many vulnerabilities does PHP have?
As of Nov 3, 2026 the National Vulnerability Database lists 740 CVEs for PHP, with 132 rated critical by CVSS v3. 30 were published in the previous twelve months.
Which PHP versions are still supported?
As of Nov 3, 2026, endoflife.date lists these PHP releases as supported: 8.5, 8.4, 8.3, 8.2. Releases that are not listed are past their announced end of life.
How do I check which PHP version I run?
Run php -v on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.
How can I get alerted when a new PHP CVE is published?
Add PHP to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose PHP and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.
Is PHP secure?
PHP is as secure as its patch level. NVD published 30 new PHP CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.
What is CVE-2026-109618?
CVE-2026-109618 is a critical PHP vulnerability with a CVSS score of 9.8, published Oct 21, 2026. 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.
Sources
- National Vulnerability Database (NVD) (opens in a new tab), CVE records, CVSS scores and CPE counts, checked Nov 3, 2026.
- CISA Known Exploited Vulnerabilities (KEV) catalog (opens in a new tab), checked Nov 3, 2026.
- endoflife.date: PHP (opens in a new tab), release and support dates, checked Nov 3, 2026.
This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.