Skip to content

fix(docker): bump PHP to 8.5.12 for PHP2Shell (CVE-2026-109618, CVE-2026-109619) - #4816

Merged
thorsten merged 1 commit into
thorsten:mainfrom
bercedev:fix/php-8.5.12-php2shell
Oct 23, 2026
Merged

thorsten merged 1 commit into
thorsten:mainfrom
bercedev:fix/php-8.5.12-php2shell

Conversation

@bercedev

@bercedev bercedev commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

PHP2Shell (CVE-2026-109618 and CVE-2026-109619) is a critical RCE in PHP 5.4 to 8.5. it got patched on oct 21 in 8.2.35, 8.3.36, 8.4.27 and 8.5.12.

both stages of the Dockerfile still use php:8.5.2-cli, so this bumps them to php:8.5.12-cli. same minor and same variant, the tag is already on docker hub. only the FROM lines change, i didn't build the image here.

advisories:

Summary by CodeRabbit

  • Chores
    • Updated the PHP version used during dependency installation and application runtime to 8.5.12, replacing 8.5.2. This keeps both stages on the same newer PHP patch release and provides a more up-to-date environment for running the application. No end-user-facing features or behavior changes are noted.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 80b6997d-1351-4393-8a10-8fc064910e79
📥 Commits

Reviewing files that changed from the base of the PR and between 46053ef and 816034c.

📒 Files selected for processing: 1
  • Dockerfile

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

📝 Walkthrough

The Composer and runtime stages in the Dockerfile now use the php:8.5.12-cli base image instead of php:8.5.2-cli.

Changes: PHP image update

Layer / File(s) Summary
Update Docker stage images
Dockerfile
The Composer and runtime stages now use php:8.5.12-cli as their base image.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 81603

No actionable issue is established for this image update. It is mergeable after normal build and test checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: updating both Dockerfile PHP base images to PHP 8.5.12 to address the stated PHP2Shell vulnerabilities.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@bercedev
bercedev force-pushed the fix/php-8.5.12-php2shell branch from 63ca14c to 816034c Compare October 22, 2026 13:34
@bercedev bercedev changed the title Bump PHP to 8.5.12 for PHP2Shell (CVE-2026-109618, CVE-2026-109619) fix(docker): bump PHP to 8.5.12 for PHP2Shell (CVE-2026-109618, CVE-2026-109619) Oct 22, 2026
@coderabbitai

coderabbitai Bot commented Oct 23, 2026

Copy link
Copy Markdown

Add Carrot credits or activate Agent usage billing to use Autofix

@thorsten
thorsten merged commit 6086130 into thorsten:main Oct 23, 2026
12 checks passed
@thorsten

Copy link
Copy Markdown
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants