Repository navigation
Conversation
…n every PHP install Covers RunCloud phpXXrc (Nginx), OpenLiteSpeed lsphpXX (lsws-rc) and Ubuntu/Ondrej /etc/php, found by globbing and by asking each PHP binary for its loaded php.ini. Patches conf.d overrides, reports fpm.d / .user.ini / .htaccess values. --audit, --dry-run, --rollback; php-fpm -t before reload; exits 1 when a service could not be reloaded. Defence in depth for the October 2026 PHP core advisory, not a fix. Same script as codetot/ec2-bash-scripts#17. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Context
php.net scheduled a security release for 2026-10-21 14:00 UTC fixing two critical PHP core vulnerabilities (both CVSS v4.0 9.2). Third-party research (Sansec "php2shell", watchTowr) ties them to CVE-2026-109618 / 109619 and a
session.upload_progresstrigger path — not yet confirmed by PHP. Turningsession.upload_progress.enabledOff removes that reported path while PHP builds are updated. Not a fix.What this adds
php-cve-mitigation.sh(same script as codetot/ec2-bash-scripts#17), which finds every PHP install without a version list:/etc/phpXXrc/php.ini(+ the file the binary reports)phpXXrc-fpm(afterphp-fpm -t)/usr/local/lsws/lsphpXX/bin/lsphp -ilswsctrl restart(unitlsws-rc) + stop detachedlsphpworkers/etc/php/<X.Y>/*/php.iniphpX.Y-fpm,apache2conf.dfiles that turn the setting On; reports per-appfpm.dpool values and.user.ini/.htaccessunder/home/*/webapps.--audit,--dry-run,--rollback(newest*.bak-pre-cve-<UTC stamp>per file).tests/php-cve-mitigation.test.sh— 25 function checks on fake ini files.Note: uses the ec2 repo's
log/pass/warn/failhelpers rather than this repo'sinfo/success/warn/error, to keep one identical script in both repos.Test plan
bash -n,shellcheckclean; tests 25/25--auditthen--dry-runon one Nginx and one OpenLiteSpeed server--rollbackon a staging server, check sites and uploadsgit pulldeploy; optional dashboard action in runcloud-go--audit