Repository navigation
Add mitigations for CVE-2026-109618 and CVE-2026-109619 - #1022
Closed
Mr-Alidoosti wants to merge 1 commit into
Closed
Mr-Alidoosti wants to merge 1 commit into
Mr-Alidoosti wants to merge 1 commit into
Conversation
Official PHP security advisory released on 21 Oct 2026 reports two critical
unauthenticated Remote Code Execution vulnerabilities:
1. CVE-2026-109618 (RCE via OOM corruption):
- Out-of-memory handling can interrupt PHP while internal request data
is only partially initialized.
- Mitigation: set 'memory_limit = -1' to avoid controllable PHP internal
OOM failure, with conservative 'post_max_size = 32M' and 'upload_max_filesize = 30M'.
2. CVE-2026-109619 (RCE via stale global state):
- Request-owned internal state can survive after its backing memory has
been freed, allowing subsequent requests handled by the same worker
to reuse stale state.
- Mitigation: disable 'session.upload_progress.enabled = 0', and for PHP 8.5
set 'fatal_error_backtraces = 0'.
Ref: https://www.php.net/archive/2026.php#2026-10-21-5
GHSA: GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp
|
The new wordpress image builds will be done soon; these mitigations do not make the image safe. |
|
Um. why do you need mitigation when you have fix from PHP? |
|
Isn't the obvious solution to bump php to the patched versions? Also, your changes do not make the image safe. From the PHP News Archive:
|
|
Hey guys, German mainstream media are already reporting on the issue. Companies and organizations have already taken their websites offline. The matter is quite urgent. Thanks for your efforts! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR applies official recommended security mitigations for the critical unauthenticated Remote Code Execution vulnerabilities announced on 21 Oct 2026:
Advisory reference: https://www.php.net/archive/2026.php#2026-10-21-5
Changes
In
$PHP_INI_DIR/conf.d/security-mitigations.iniacross all web variants (Apache & FPM):session.upload_progress.enabled = 0.fatal_error_backtraces = 0.memory_limit = -1to eliminate controllable PHP internal memory limit aborts.post_max_size = 32Mandupload_max_filesize = 30M.CLI variants (
wp-cli) do not serve web requests and remain unchanged.Generated via
./apply-templates.sh.