Skip to content

Backport security fixes to 1.x#120

Open
markstory wants to merge 2 commits into
1.xfrom
1x-backports
Open

Backport security fixes to 1.x#120
markstory wants to merge 2 commits into
1.xfrom
1x-backports

Conversation

@markstory

Copy link
Copy Markdown
Member

Backport #119 and #118 to 1.x

Ensure that all relative and absolute file paths are contained by
a template path. We're looking at the string values so that any `../`
tricks don't work.

Thanks to Volker Dusch and the PHP Ecosystem security team for reporting this.
The unserialize filter has a weakness to arbitrary class usage which
can be combined with user input to create unserialization gadgets
which are used in RCE vulnerability chains.

I've also chosen to deprecate these functions. I see no reason to
continue having them when they have so many sharp edges. Applications
relying on these features, can add their own filters.

Thanks to Volker Dusch and the PHP Ecosystem security team for reporting this.
@markstory markstory added this to the 1.2.x milestone Jun 20, 2026
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.

1 participant