PHP 8.1.34 is known vulnerabilities confirmed: 2 confirmed known vulnerabilities (0 critical, 2 high, 0 medium, 0 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
2 confirmed findings (0 critical, 2 high, 0 medium, 0 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, 2 high, 0 medium, 0 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.34
Official support
End of life
PHP 8.1
Known vulnerabilities
2
2 need verification
Critical / high
0 / 2
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 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.
### Summary
A malicious HTTP server can cause PHP's built-in HTTP stream wrapper to consume excessive CPU while reading a response. Applications using `file_get_contents()`, `fopen()` or other stream functions to fetch an HTTP or HTTPS URL may become slow or unavailable if the response contains a header split across a large number of continuation lines.
### Details
When PHP receives a folded response header, it joins each continuation line to the accumulated header value. The vulnerable implementation allocates a new string and copies the entire value for every line. A response containing many short continuation lines therefore takes disproportionately more time to process as its size grows. PHP performs this work before returning the response body to the application.
This behaviour was introduced by the fix for GHSA-v8xr-gpvj-cx9g (CVE-2025-1217). The new fix accumulates the header in a growing buffer, avoiding a full copy for every continuation line while preserving the existing handling of folded headers.
### Impact
An attacker must control an HTTP response fetched by the application through PHP's built-in HTTP or HTTPS stream wrapper. Enabling `allow_url_fopen` alone does not make an application vulnerable to a remote attack. the attacker must also be able to trigger a suitable outbound request or influence a server that the application already contacts.
Repeated or concurrent requests can keep PHP workers busy and deny service to other users. Testing confirmed that two malicious responses could occupy both workers in a two-worker PHP-FPM pool and temporarily prevent an unrelated request from completing. The demonstrated impact is denial of service through excessive CPU consumption. No confidentiality or integrity impact was observed.
### Affected versions
The affected code was introduced by the fix for GHSA-v8xr-gpvj-cx9g, first released in PHP 8.1.32, 8.2.28, 8.3.19 and 8.4.5. Earlier versions are not affected.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. Until then, restrict outbound requests to trusted destinations, including redirect targets. An egress proxy that enforces response-header size and count limits can reject malicious responses before PHP processes them. Request execution limits and PHP-FPM's `request_terminate_timeout` can limit how long workers remain occupied, but do not remove the vulnerable parsing behaviour.
Not verified. No single fixed release could be confirmed from the structured ranges and the php.net release list.
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.