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

Most critical PHP vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2026-1096189.8 Critical2026-10-21PHP Memory CorruptionYes
2CVE-2024-45779.8 Critical2024-06-09PHP-CGI OS Command InjectionYes (ransomware use known)
3CVE-2019-110439.8 Critical2019-10-28PHP FastCGI Process Manager (FPM) Buffer OverflowYes (ransomware use known)
4CVE-2012-18239.8 Critical2012-05-11PHP-CGI Query String ParameterYes
5CVE-2026-1096198.1 High2026-10-21PHP Stale Internal Request-StateYes
6CVE-2026-175439.8 Critical2026-07-30SQL injectionNo
7CVE-2026-175449.8 Critical2026-07-30Out-of-bounds writeNo
8CVE-2025-141799.8 Critical2026-05-10SQL injectionNo
9CVE-2026-67229.8 Critical2026-05-10Use after freeNo
10CVE-2026-72619.8 Critical2026-05-10Use after freeNo

Each PHP CVE explained

1. CVE-2026-109618: PHP Memory Corruption

  • CVSS 9.8 Critical
  • In CISA KEV (added 2026-10-26)
  • Published 2026-10-21
  • CWE-416
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)

NVD record for CVE-2026-109618 (opens in a new tab)

2. CVE-2024-4577: PHP-CGI OS Command Injection

  • CVSS 9.8 Critical
  • In CISA KEV (added 2024-06-12)
  • Published 2024-06-09
  • CWE-78
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)

NVD record for CVE-2024-4577 (opens in a new tab)

3. CVE-2019-11043: PHP FastCGI Process Manager (FPM) Buffer Overflow

  • CVSS 9.8 Critical
  • In CISA KEV (added 2022-03-25)
  • Published 2019-10-28
  • CWE-120
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)

NVD record for CVE-2019-11043 (opens in a new tab)

4. CVE-2012-1823: PHP-CGI Query String Parameter

  • CVSS 9.8 Critical
  • In CISA KEV (added 2022-03-25)
  • Published 2012-05-11
  • CWE-77
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)

NVD record for CVE-2012-1823 (opens in a new tab)

5. CVE-2026-109619: PHP Stale Internal Request-State

  • CVSS 8.1 High
  • In CISA KEV (added 2026-10-26)
  • Published 2026-10-21
  • CWE-416
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)

NVD record for CVE-2026-109619 (opens in a new tab)

6. CVE-2026-17543: SQL injection

  • CVSS 9.8 Critical
  • Published 2026-07-30
  • CWE-89
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)

NVD record for CVE-2026-17543 (opens in a new tab)

7. CVE-2026-17544: Out-of-bounds write

  • CVSS 9.8 Critical
  • Published 2026-07-30
  • CWE-787
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)

NVD record for CVE-2026-17544 (opens in a new tab)

8. CVE-2025-14179: SQL injection

  • CVSS 9.8 Critical
  • Published 2026-05-10
  • CWE-89
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)

NVD record for CVE-2025-14179 (opens in a new tab)

9. CVE-2026-6722: Use after free

  • CVSS 9.8 Critical
  • Published 2026-05-10
  • CWE-416
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)

NVD record for CVE-2026-6722 (opens in a new tab)

10. CVE-2026-7261: Use after free

  • CVSS 9.8 Critical
  • Published 2026-05-10
  • CWE-416
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)

NVD record for CVE-2026-7261 (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.

PHP release support (source: endoflife.date, checked Nov 3, 2026)
ReleaseReleasedEnd of lifeLatestStatus
PHP 8.5Nov 20, 2025Dec 31, 20298.5.12Supported
PHP 8.4Nov 21, 2024Dec 31, 20288.4.27Supported
PHP 8.3Nov 23, 2023Dec 31, 20278.3.36Supported
PHP 8.2Dec 8, 2022Dec 31, 20268.2.35Supported
PHP 8.1Nov 25, 2021Dec 31, 20258.1.34End of life
PHP 8.0Nov 26, 2020Nov 26, 20238.0.30End of life
PHP 7.4Nov 28, 2019Nov 28, 20227.4.33End of life
PHP 7.3Dec 6, 2018Dec 6, 20217.3.33End 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

  1. Run a supported release and move to the next branch before the current one reaches end of life.
  2. Apply patch releases promptly.
  3. Pin and audit your dependencies, and update the vulnerable ones.
  4. Run applications as an unprivileged user.
  5. 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.

Few stacks run PHP alone. These guides cover the technologies it is most often deployed with.

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

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.