Skip to content

Docker: disable session.upload_progress to mitigate CVE-2026-109618/9 - #9476

Merged
Alkarex merged 2 commits into
FreshRSS:edgefrom
icco:docker-upload-progress-off
Oct 21, 2026
Merged

Alkarex merged 2 commits into
FreshRSS:edgefrom
icco:docker-upload-progress-off

Conversation

@icco

@icco icco commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Mitigates #9475

Changes proposed in this pull request:

How to test the feature manually:

  1. Build and run any image, then docker exec <container> php -i | grep session.upload_progress.enabled should report Off.

Pull request checklist:

  • clear commit messages
  • code manually tested
  • unit tests written (optional if too hard)
  • documentation updated

@bosth

bosth commented Oct 21, 2026

Copy link
Copy Markdown

Not a mitigation according to PHP core dev: https://phpc.social/@Girgias/117476477429221001

@Alkarex Alkarex added this to the 1.30.3 milestone Oct 21, 2026

@Frenzie Frenzie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Alkarex Alkarex modified the milestones: 1.30.3, 1.30.4 Oct 21, 2026
@Alkarex

Alkarex commented Oct 21, 2026

Copy link
Copy Markdown
Member

I am pondering whether it would be good to merged anyway (without planned revert), since we do not use this feature at the moment.
https://www.php.net/session.upload-progress
Thoughts welcome

@Frenzie

Frenzie commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Indeed, it looks like XHR upload progress events don't depend on this PHP setting, and the docs even recommend to disable it (in which case why is it even enabled by default, but oh well):

Warning Upload progress writes the client-supplied file name and field name to the session store while the upload in progress, to allow polling the process from a separate request. In applications that do not use upload progress bars, consider disabling this option; file names and field names are not validated and may contain PHP code, making any » local file inclusion vulnerability trivial to exploit.

@Frenzie Frenzie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But change the commit message while squashing.

@Alkarex
Alkarex merged commit 2258f41 into FreshRSS:edge Oct 21, 2026
3 checks passed
@Alkarex Alkarex added the php Pull requests that update Php code label Oct 21, 2026
@Alkarex

Alkarex commented Oct 23, 2026

Copy link
Copy Markdown
Member

@Alkarex

Alkarex commented Oct 24, 2026

Copy link
Copy Markdown
Member

https://www.php.net/archive/2026.php#2026-10-23-1

We suggest you set session.upload_progress.enabled=0 until the next regular bugfix release, to fully protect from an unlikely RCE vector.

@Inverle

Inverle commented Nov 20, 2026

Copy link
Copy Markdown
Member

#9587 (comment)

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

Labels

php Pull requests that update Php code Security 🛡️

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants