[Security] setAllowedClasses() now applies to objects stored inside SplDoublyLinkedList, SplQueue and SplStack, including subclasses. Security Advisory GHSA-xc2j-7c2r-wjjv
Object references shared between a list and the rest of the serialized data now survive a round trip
Add patch level to PHP version requirements in tests, by @williamdes in #84
Upgrade notes
The JSON written for these list classes changed. The elements are now a JSON array with a mode key, where before they were a PHP native-serialized string. 3.2.5 and earlier cannot read lists serialized by 3.2.6.
Lists serialized by 3.2.5 and earlier are still readable. With an allowlist set, an object in such a list whose class is not allowed comes back as an inert __PHP_Incomplete_Class.
The allowlist does not cover closures. Do not register a closure serializer on a serializer that reads untrusted input.
Manual fix · Fedora 44
Remediation
01Upgrade the php-zumba-json-serializer package to the fixed build.
sudo dnf upgrade php-zumba-json-serializer
02Verify the installed build is 3.2.6-1.fc44 or later.
rpm -q php-zumba-json-serializer
03Restart services that load the updated packages so the patched code is running.