Skip to content

Publish the image on demand after PHP security releases; turn off session upload progress (CVE-2026-109618/109619) - #867

Merged
sstidl merged 2 commits into
librespeed:masterfrom
HyakoV3:security-php-rce-hardening
Oct 21, 2026
Merged

sstidl merged 2 commits into
librespeed:masterfrom
HyakoV3:security-php-rce-hardening

Conversation

@HyakoV3

@HyakoV3 HyakoV3 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

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-apache image uses, with the default prefork setup) was
validated 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 official
image has it (it does now: php:8-apache is PHP 8.5.12, Apache 2.4.69). The problem is only timing: the images
are rebuilt on Sundays at 20:30 UTC, so the published latest would stay on the vulnerable PHP until 25 Oct.

What this changes

  1. .github/workflows/docker-publish.yml: adds workflow_dispatch, so a maintainer can run Actions > Docker >
    Run workflow
    on master right after a base image security release and publish latest (and latest-alpine)
    at once. On master the metadata step already tags latest, so nothing else is needed.
  2. Same workflow: pull: true on the build step, so every build fetches the base image again instead of
    possibly reusing a cached older one (the job uses cache-from: type=gha). Without it a manual rebuild could in
    theory keep the vulnerable base.
  3. docker/librespeed-php.ini: session.upload_progress.enabled = 0. The second advisory names the session
    upload 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 -v gives PHP 8.5.12 and Apache 2.4.69 today.
  • With the ini file mounted into that image, php -i shows session.upload_progress.enabled => Off and
    post_max_size => 32M unchanged.
  • The workflow file still parses and lists workflow_dispatch next to the existing triggers.

For the maintainers (after merging)

Run the Docker workflow once on master, then check docker run --rm ghcr.io/librespeed/speedtest php -v shows
8.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.

…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.
@qodo-free-for-open-source-projects

Copy link
Copy Markdown
Contributor

PR Summary by Qodo

Enable on-demand Docker publishing and disable PHP upload progress

✨ Enhancement ⚙️ Configuration changes 🕐 10-20 Minutes

Grey Divider

AI Description

• Let maintainers rebuild and publish Docker images after base-image security releases instead of
 waiting until Sunday.
• Disable unused PHP session upload progress to reduce exposure to CVE-2026-109619.
Diagram

graph TD
  M["Maintainer"] --> W["Docker workflow"] --> T["E2E gate"] --> B["Image builds"] --> R[("GHCR images")]
  P["Base images"] --> B
  I["PHP ini"] --> B
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Automatically rebuild when base images change
  • ➕ Reduces reliance on a maintainer noticing and acting on security releases.
  • ➖ Requires new detection and publishing automation; Alpine package fixes may not coincide with base-image changes.

Recommendation: Use the existing workflow with manual dispatch for this time-sensitive need: it retains the E2E gate and publishing rules without adding a second pipeline. Consider automated upstream-update detection if delayed rebuilds become a recurring problem. Disabling upload progress is defense in depth, not a substitute for verifying fixed PHP versions in published images.

Files changed (2) +9 / -0

Other (2) +9 / -0
docker-publish.ymlAllow maintainers to trigger Docker publishing on demand +3/-0

Allow maintainers to trigger Docker publishing on demand

• Adds workflow_dispatch alongside the scheduled and repository-event triggers. A run on the default branch uses the existing E2E gate, build matrix, and latest-tag publishing configuration.

.github/workflows/docker-publish.yml

librespeed-php.iniDisable unused PHP session upload progress +6/-0

Disable unused PHP session upload progress

• Turns off session upload progress as a hardening measure for a path identified in the PHP security advisory. Both Docker variants already install this shared ini file; the existing upload size setting is unchanged.

docker/librespeed-php.ini

@qodo-free-for-open-source-projects

Copy link
Copy Markdown
Contributor

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can start a comment with 'qodo' or '@qodo' to chat about any finding

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

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).
@sstidl
sstidl merged commit 9ae2f9e into librespeed:master Oct 21, 2026
3 checks passed
@HyakoV3
HyakoV3 deleted the security-php-rce-hardening branch October 21, 2026 22:56
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