Repository navigation
Publish the image on demand after PHP security releases; turn off session upload progress (CVE-2026-109618/109619) - #867
Merged
Conversation
…progress PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix CVE-2026-109618 and CVE-2026-109619, which allow unauthenticated remote code execution with Apache mod_php. The images are rebuilt on Sundays only, so a maintainer needs a way to publish a rebuild right after a base image security release: add workflow_dispatch to the Docker workflow. The second advisory also names the session upload progress feature as a way to reach the vulnerable path. LibreSpeed does not use it, so it is turned off in the image.
Contributor
PR Summary by QodoEnable on-demand Docker publishing and disable PHP upload progress
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Contributor
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can start a comment with 'qodo' or '@qodo' to chat about any finding |
A rebuild after a security release of the php or alpine image should not reuse a cached older base (the job uses cache-from type=gha).
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.
PHP security release: publish the image on demand, and turn off a feature LibreSpeed does not use
PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 (released 21 Oct 2026) fix two critical remote code execution
vulnerabilities, CVE-2026-109618 (GHSA-w8hw-w9fx-j79w) and CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp). The PHP
advisory says Apache with mod_php (what the
php:8-apacheimage uses, with the default prefork setup) wasvalidated as exploitable over HTTP, and that updating PHP is the only complete fix.
The Docker image is already built
FROM php:8-apache, so a rebuild picks up the fixed PHP once the officialimage has it (it does now:
php:8-apacheis PHP 8.5.12, Apache 2.4.69). The problem is only timing: the imagesare rebuilt on Sundays at 20:30 UTC, so the published
latestwould stay on the vulnerable PHP until 25 Oct.What this changes
.github/workflows/docker-publish.yml: addsworkflow_dispatch, so a maintainer can run Actions > Docker >Run workflow on
masterright after a base image security release and publishlatest(andlatest-alpine)at once. On
masterthe metadata step already tagslatest, so nothing else is needed.pull: trueon the build step, so every build fetches the base image again instead ofpossibly reusing a cached older one (the job uses
cache-from: type=gha). Without it a manual rebuild could intheory keep the vulnerable base.
docker/librespeed-php.ini:session.upload_progress.enabled = 0. The second advisory names the sessionupload progress feature (on by default) as one way to reach the vulnerable path and recommends keeping it off
if it is not needed. LibreSpeed does not use it (nothing in the repository refers to it), so this removes
exposure at no cost. It is a hardening measure, not a replacement for updating PHP.
Checked
docker run php:8-apache php -vgives PHP 8.5.12 and Apache 2.4.69 today.php -ishowssession.upload_progress.enabled => Offandpost_max_size => 32Munchanged.workflow_dispatchnext to the existing triggers.For the maintainers (after merging)
Run the Docker workflow once on
master, then checkdocker run --rm ghcr.io/librespeed/speedtest php -vshows8.5.12 or newer. The Alpine image takes its PHP from the Alpine package repository, so its version depends on
when Alpine publishes the fix; its changelog should name the CVEs.
No change to the PHP code of LibreSpeed was needed.