PHP 8.1.31 is known vulnerabilities confirmed: 14 confirmed known vulnerabilities (0 critical, 4 high, 8 medium, 2 low, 0 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
14 confirmed findings (0 critical, 4 high, 8 medium, 2 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: 0 critical, 4 high, 8 medium, 2 low. 2 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
8.1.31
Official support
End of life
PHP 8.1
Known vulnerabilities
14
2 need verification
Critical / high
0 / 4
Confirmed findings only
RCE-related CVEs
0
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 8.1
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 8.1 no longer receives upstream fixes. Running its last patch still leaves the installation unsupported.
Moving from 8.1 to 8.6 can change language behavior, removed extensions, and default settings. Review each migration guide before upgrading: 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
25 Nov 2021
Active support end
25 Nov 2023
Security support end
31 Dec 2025
Latest patch on branch
8.1.34
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.
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)
PHP 8.1 only, 8.1.0 (including) to 8.1.34 (excluding); 8.1.0 (including) to 8.1.34 (excluding)
8.1.34
CVE-2025-14180
Confirmed vulnerable
HIGH
8.2
PHP 8.1 only, 8.1.0 (including) to 8.1.34 (excluding); 8.1.0 (including) to 8.1.34 (excluding)
8.1.34
CVE-2025-1735
Confirmed vulnerable
HIGH
7.5
PHP 8.1 only, 8.1.0 (including) to 8.1.33 (excluding); 8.1.0 (including) to 8.1.33 (excluding)
8.1.33
CVE-2025-1217
Confirmed vulnerable
MEDIUM
6.3
PHP 8.1 only, 8.1.0 (including) to 8.1.32 (excluding); 8.1.0 (including) to 8.1.32 (excluding)
8.1.32
CVE-2025-1219
Confirmed vulnerable
MEDIUM
6.3
PHP 8.1 only, 8.1.0 (including) to 8.1.32 (excluding); 8.1.0 (including) to 8.1.32 (excluding)
8.1.32
CVE-2025-14177
Confirmed vulnerable
MEDIUM
6.3
PHP 8.1 only, 8.1.0 (including) to 8.1.34 (excluding); 8.1.0 (including) to 8.1.34 (excluding)
8.1.34
CVE-2025-1734
Confirmed vulnerable
MEDIUM
6.3
PHP 8.1 only, 8.1.0 (including) to 8.1.32 (excluding); 8.1.0 (including) to 8.1.32 (excluding)
8.1.32
CVE-2025-1736
Confirmed vulnerable
MEDIUM
6.3
PHP 8.1 only, 8.1.0 (including) to 8.1.32 (excluding); 8.1.0 (including) to 8.1.32 (excluding)
8.1.32
CVE-2025-1861
Confirmed vulnerable
MEDIUM
6.3
PHP 8.1 only, 8.1.0 (including) to 8.1.32 (excluding)
8.1.32
CVE-2025-6491
Confirmed vulnerable
MEDIUM
5.9
PHP 8.1 only, 8.1.0 (including) to 8.1.33 (excluding); 8.1.0 (including) to 8.1.33 (excluding)
8.1.33
CVE-2025-1220
Confirmed vulnerable
MEDIUM
5.3
PHP 8.1 only, 8.1.0 (including) to 8.1.33 (excluding); 8.1.0 (including) to 8.1.33 (excluding)
8.1.33
GHSA-wg4p-4hqh-c3g9
Confirmed vulnerable
LOW
Not provided
PHP 8.1 only, 8.1.0 (including) to 8.1.32 (excluding)
8.1.32
GHSA-www2-q4fc-65wf
Confirmed vulnerable
LOW
Not provided
PHP 8.1 only, 8.1.0 (including) to 8.1.34 (excluding)
8.1.34
CVE-2026-109618
CRITICAL
CVSS 9.2
7.3.0 (including) to 8.2.35 (excluding)
Fixed: Not verified
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
### Summary
PHP-FPM can dispatch an epoll event that refers to a freed worker record when worker output capture is enabled. An attacker who can execute PHP code in an unprivileged FPM worker can exploit this use-after-free to execute commands with the privileges of the FPM master, which commonly runs as root.
### Details
When `catch_workers_output` is enabled, the FPM master monitors pipes connected to worker stdout and stderr. The epoll registrations store pointers to event structures embedded in the corresponding worker record.
When a worker exits, `fpm_child_close()` attempts to drain its output pipes. If a helper process still holds a pipe's write end open, the read can return `EAGAIN` instead of reaching EOF. In this case, the master closes the pipe's read descriptor without first removing its event or invalidating the descriptor number stored in the worker record. Cleanup of that record is deferred for one second.
An attacker can stop a newly forked sibling after it drops to the pool user but before it closes inherited descriptors. The stopped sibling retains the original pipe readers and epoll descriptor, keeping the original watch alive after the master closes its own descriptors. The delayed cleanup can then use a descriptor number that has already been reused, removing the wrong watch or failing to remove the original one before freeing the worker record. A subsequent write to the old pipe makes epoll return a pointer into the freed record.
The master passes that pointer to `fpm_event_fire()`, which reads and calls the event callback. The demonstrated exploit uses the stale output callback to write through a freed logging buffer, corrupt the allocator's free list, and replace the callback with a function that executes a command. Root command execution was reproduced from a `www-data` worker against unmodified PHP 8.5.12 Docker images on Linux arm64 and x86-64. The exploit is dependent on memory layout and process timing. Curl and OPcache were used to obtain memory addresses for the demonstrated chain; they are not required to trigger the underlying epoll use-after-free.
The affected delayed-cleanup path was introduced in PHP 8.1.20 and 8.2.7. The fix unregisters each stdio event while its original descriptor is still valid, closes the descriptor, and sets the stored descriptor to `-1` so that delayed cleanup cannot act on it again.
### Impact
Exploitation requires local code execution in an FPM worker, an affected pool with `catch_workers_output` enabled, the epoll event backend, and the ability to manipulate worker lifetimes and retain inherited pipe descriptors. A root FPM master permits escalation from the pool user to root. If the master runs as an unprivileged user, successful exploitation is limited to that user's privileges. In a container, this grants the master's container privileges and does not by itself establish a container escape.
The underlying descriptor-lifetime error can also close another worker's reused descriptor, disrupt logging or request handling, cause repeated worker respawns, or crash the master. Common affected configurations include the official PHP-FPM Docker images, which enable worker output capture. The default PHP-FPM setting outside such configurations is `catch_workers_output = no`.
### Affected versions
The affected delayed-cleanup path was introduced by the fix for GH-10461, first released in PHP 8.1.20 and 8.2.7.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. As a temporary workaround, disable `catch_workers_output` in affected pools. Running the FPM master without root limits the privileges obtainable through this vulnerability, but does not correct the use-after-free. Disabling Curl or OPcache only removes parts of the demonstrated exploit chain and should not be treated as a complete mitigation.
Not verified. No single fixed release could be confirmed from the structured ranges and the php.net release list.
PHP 8.1 only, 8.1.0 (including) to 8.1.34 (excluding); 8.1.0 (including) to 8.1.34 (excluding)
Fixed: 8.1.34
In PHP versions:8.1.* before 8.1.34, 8.2.* before 8.2.30, 8.3.* before 8.3.29, 8.4.* before 8.4.16, 8.5.* before 8.5.1, a heap buffer overflow occurs in array_merge() when the total element count of packed arrays exceeds 32-bit limits or HT_MAX_SIZE, due to an integer overflow in the precomputation of element counts using zend_hash_num_elements(). This may lead to memory corruption or crashes and affect the integrity and availability of the target server.
8.1.34 is the fixed release named by the matching range and it is published on php.net.
PHP 8.1 only, 8.1.0 (including) to 8.1.34 (excluding); 8.1.0 (including) to 8.1.34 (excluding)
Fixed: 8.1.34
In PHP versions 8.1.* before 8.1.34, 8.2.* before 8.2.30, 8.3.* before 8.3.29, 8.4.* before 8.4.16, 8.5.* before 8.5.1 when using the PDO PostgreSQL driver with PDO::ATTR_EMULATE_PREPARES enabled, an invalid character sequence (such as \x99) in a prepared statement parameter may cause the quoting function PQescapeStringConn to return NULL, leading to a null pointer dereference in pdo_parse_params() function. This may lead to crashes (segmentation fault) and affect the availability of the target server.
8.1.34 is the fixed release named by the matching range and it is published on php.net.
PHP 8.1 only, 8.1.0 (including) to 8.1.33 (excluding); 8.1.0 (including) to 8.1.33 (excluding)
Fixed: 8.1.33
In PHP versions:8.1.* before 8.1.33, 8.2.* before 8.2.29, 8.3.* before 8.3.23, 8.4.* pgsql and pdo_pgsql escaping functions do not check if the underlying quoting functions returned errors. This could cause crashes if Postgres server rejects the string as invalid.
8.1.33 is the fixed release named by the matching range and it is published on php.net.
PHP 8.1 only, 8.1.0 (including) to 8.1.32 (excluding); 8.1.0 (including) to 8.1.32 (excluding)
Fixed: 8.1.32
In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when http request module parses HTTP response obtained from a server, folded headers are parsed incorrectly, which may lead to misinterpreting the response and using incorrect headers, MIME types, etc.
8.1.32 is the fixed release named by the matching range and it is published on php.net.
PHP 8.1 only, 8.1.0 (including) to 8.1.32 (excluding); 8.1.0 (including) to 8.1.32 (excluding)
Fixed: 8.1.32
In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when requesting a HTTP resource using the DOM or SimpleXML extensions, the wrong content-type header is used to determine the charset when the requested resource performs a redirect. This may cause the resulting document to be parsed incorrectly or bypass validations.
8.1.32 is the fixed release named by the matching range and it is published on php.net.
PHP 8.1 only, 8.1.0 (including) to 8.1.34 (excluding); 8.1.0 (including) to 8.1.34 (excluding)
Fixed: 8.1.34
In PHP versions:8.1.* before 8.1.34, 8.2.* before 8.2.30, 8.3.* before 8.3.29, 8.4.* before 8.4.16, 8.5.* before 8.5.1, the getimagesize() function may leak uninitialized heap memory into the APPn segments (e.g., APP1) when reading images in multi-chunk mode (such as via php://filter). This occurs due to a bug in php_read_stream_all_chunks() that overwrites the buffer without advancing the pointer, leaving tail bytes uninitialized. This may lead to information disclosure of sensitive heap data and affect the confidentiality of the target server.
8.1.34 is the fixed release named by the matching range and it is published on php.net.
PHP 8.1 only, 8.1.0 (including) to 8.1.32 (excluding); 8.1.0 (including) to 8.1.32 (excluding)
Fixed: 8.1.32
In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when receiving headers from HTTP server, the headers missing a colon (:) are treated as valid headers even though they are not. This may confuse applications into accepting invalid headers.
8.1.32 is the fixed release named by the matching range and it is published on php.net.
PHP 8.1 only, 8.1.0 (including) to 8.1.32 (excluding); 8.1.0 (including) to 8.1.32 (excluding)
Fixed: 8.1.32
In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when user-supplied headers are sent, the insufficient validation of the end-of-line characters may prevent certain headers from being sent or lead to certain headers be misinterpreted.
8.1.32 is the fixed release named by the matching range and it is published on php.net.
PHP 8.1 only, 8.1.0 (including) to 8.1.32 (excluding)
Fixed: 8.1.32
In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when parsing HTTP redirect in the response to an HTTP request, there is currently limit on the location value size caused by limited size of the location buffer to 1024. However as per RFC9110, the limit is recommended to be 8000. This may lead to incorrect URL truncation and redirecting to a wrong location.
8.1.32 is the fixed release named by the matching range and it is published on php.net.
PHP 8.1 only, 8.1.0 (including) to 8.1.33 (excluding); 8.1.0 (including) to 8.1.33 (excluding)
Fixed: 8.1.33
In PHP versions:8.1.* before 8.1.33, 8.2.* before 8.2.29, 8.3.* before 8.3.23, 8.4.* before 8.4.10 when parsing XML data in SOAP extensions, overly large (>2Gb) XML namespace prefix may lead to null pointer dereference. This may lead to crashes and affect the availability of the target server.
8.1.33 is the fixed release named by the matching range and it is published on php.net.
PHP 8.1 only, 8.1.0 (including) to 8.1.33 (excluding); 8.1.0 (including) to 8.1.33 (excluding)
Fixed: 8.1.33
In PHP versions:8.1.* before 8.1.33, 8.2.* before 8.2.29, 8.3.* before 8.3.23, 8.4.* before 8.4.10 some functions like fsockopen() lack validation that the hostname supplied does not contain null characters. This may lead to other functions like parse_url() treat the hostname in different way, thus opening way to security problems if the user code implements access checks before access using such functions.
8.1.33 is the fixed release named by the matching range and it is published on php.net.
PHP 8.1 only, 8.1.0 (including) to 8.1.32 (excluding)
Fixed: 8.1.32
This is a reocurrence of bug #72714 .
### Impact
Out of bounds read can leak heap contents.
```php
<?php
$sample = "<?xml version=\"1.0\"?><test><child/></test>";
$parser = xml_parser_create();
xml_parser_set_option($parser, XML_OPTION_SKIP_TAGSTART, 100);
$res = xml_parse_into_struct($parser,$sample,$vals,$index);
var_dump($vals);
```
If we set `XML_OPTION_SKIP_TAGSTART` to a high value, we can read out of bounds.
It doesn't even have to be a crazy high value, as long as an attacker can supply XML with shorter tag names than expected they can trigger an OOB read.
I coincidentally came across this by reviewing `xml.c`, I noticed this is a reocurrence of https://bugs.php.net/bug.php?id=72714
This was originally fixed in https://github.com/php/php-src/commit/9164dc11e2323b8b80c389bb13d70789799b44fc, but it seems the fix was either incomplete or not merged properly.
Granted, this option is rarely used.
### Workarounds
Don't use `XML_OPTION_SKIP_TAGSTART`.
8.1.32 is the fixed release named by the matching range and it is published on php.net.
PHP 8.1 only, 8.1.0 (including) to 8.1.34 (excluding)
Fixed: 8.1.34
### Summary
As GHSA-3cr5-j632-f35r, same null termination is occuring
### Details
dns_get_record() and other DNS functions don't have any null contain check, leads potential SSRF or unexpected behavior.
### PoC
```php
<?php
var_dump(dns_get_record("php.net\0aa"));
```
Result: DNS records of `php.net`
Expect: Fails to call
### Security impact
(Even though it's too low but,) Probability of SSRF
8.1.34 is the fixed release named by the matching range and it is published on php.net.
2 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.