
Cloud Vulnerability DB
A community-led vulnerabilities database
setAllowedClasses(), added in 3.2.3 for GHSA-v7m3-fpcr-h7m2, does not apply to objects stored inside an SplDoublyLinkedList, SplQueue or SplStack. If one of those classes, or a subclass of one, is on the allowlist, a crafted payload can instantiate a class that is not on it.
The serializer stores the contents of these list classes as a PHP native-serialized string in the value key. On the way back, unserializeObject() checks the outer @type against the allowlist and then passes value to SplDoublyLinkedList::unserialize(). That method runs PHP's native unserialize on the string with no class restriction, so every object embedded in it is created and its __wakeup() and __destruct() methods run.
The branch tests instanceof \SplDoublyLinkedList, so an allowlisted application class that extends one of the three list classes is affected as well.
PHP object injection (CWE-502) despite an active allowlist. An attacker can reach it only when all of these hold:
setAllowedClasses() with SplDoublyLinkedList, SplQueue, SplStack or a subclass of one in the listunserialize()null) get no added exposure from this issue, because that mode already instantiates any class. Applications whose allowlist has no list class are not affected.Remove SplDoublyLinkedList, SplQueue, SplStack and their subclasses from the list passed to setAllowedClasses() until you upgrade.
Payloads with the @closure key are not checked against the allowlist either. This only matters if the application registered a closure serializer with addClosureSerializer(). Do not register one on a serializer that reads untrusted input, since unserializing a closure is code execution by design.
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."