cd /news/ai-tools/claudecode-skill-to-easily-protect-y… · home › topics › ai-tools › article
[ARTICLE · art-155659] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

ClaudeCode skill to easily protect your website from the PHP2Shell bug

A Claude Code skill called PHP2Shell-SKILL scans PHP projects and local machines for the PHP2Shell remote-code-execution vulnerabilities, tracked as CVE-2026-109618 and CVE-2026-109619, and offers to bump affected PHP versions to the patched releases 8.2.35, 8.3.36, 8.4.27 and 8.5.12. The skill, installed via a curl script and run with the /php2shell command, checks Dockerfiles, docker-compose and GitLab CI files, GitHub Actions workflows, .php-version and .tool-versions files, Composer's config.platform.php and local php/php-fpm installs, exiting with code 1 when something is vulnerable so the check can run in CI. A mitigate mode writes a conf.d drop-in disabling session.upload_progress, the path Wiz Research documented as exploited in the wild, which the author describes as a stopgap because upgrading PHP is the real fix.

read2 min views5 publishedOct 22, 2026
ClaudeCode skill to easily protect your website from the PHP2Shell bug
Image: Michielbdejong (auto-discovered)

Is your PHP app affected by PHP2Shell? Find out in one command, and let Claude fix it.

PHP2Shell (CVE-2026-109618 / CVE-2026-109619) is a pair of critical RCE bugs in PHP itself. Every PHP app is affected, whatever its framework. Fixed in 8.2.35 · 8.3.36 · 8.4.27 · 8.5.12.

curl -fsSL https://raw.githubusercontent.com/DavidHuji/PHP2Shell-SKILL/main/install.sh | bash

Then, in Claude Code, from your project folder:

/php2shell

That's it. Claude scans your project, shows what's vulnerable, and offers to bump the versions for you.

Where Example
Dockerfiles FROM php:8.3.10-fpm
docker-compose / GitLab CI image: php:8.2.20-apache
GitHub Actions php-version: '8.4.5'
Version files .php-version ,.tool-versions
Composer config.platform.php
Your machine local php /php-fpm , running Docker containers
Project files in .
  ✘ docker/Dockerfile: PHP 8.3.10 is vulnerable → bump to 8.3.36
  ! docker-compose.yml: floating PHP 8.4 tag → rebuild with --pull so it picks up 8.4.27+
  ✔ .github/workflows/ci.yml: PHP 8.4.27 is patched

The script works on its own too:

bash ~/.claude/skills/php2shell/php2shell.sh check            # scan project + machine (read-only)
bash ~/.claude/skills/php2shell/php2shell.sh mitigate         # server stopgap, dry run
sudo bash ~/.claude/skills/php2shell/php2shell.sh mitigate --apply
bash ~/.claude/skills/php2shell/php2shell.sh hunt             # look for signs of exploitation

check exits with code 1 when something is vulnerable, so you can drop it into CI.

Install for the whole team: add | bash -s -- --project to the install command. It installs the skill into ./.claude/skills/, and you commit it with the rest of the repo.

mitigate writes a small conf.d drop-in that turns off session.upload_progress (the path seen exploited in the wild). Restart PHP-FPM / Apache afterwards. This is a stopgap. Upgrading PHP is the real fix.

MIT. Provided as-is, with no warranty. Review every change before it goes to production.

── more in #ai-tools 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/claudecode-skill-to-…] indexed:0 read:2min 2026-10-22 · —