New from Wiz Research: Critical NGINX flaw. Understand the risk and impact.
Vulnerability DatabaseGHSA-xc2j-7c2r-wjjv

GHSA-xc2j-7c2r-wjjv: 
PHP vulnerability analysis and mitigation

Summary

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.

Details

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.

Impact

PHP object injection (CWE-502) despite an active allowlist. An attacker can reach it only when all of these hold:

  • the application calls setAllowedClasses() with SplDoublyLinkedList, SplQueue, SplStack or a subclass of one in the list
  • the application passes attacker-influenced JSON to unserialize()
  • a class with exploitable magic methods is loadable in the application Applications that leave the allowlist unset (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.

Workarounds

Remove SplDoublyLinkedList, SplQueue, SplStack and their subclasses from the list passed to setAllowedClasses() until you upgrade.

Closure serializers

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

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-mm3h-q67x-4779HIGH7.4
  • PHP logoPHP
  • flipboxfactory/saml-sp
NoYesNov 18, 2026
CVE-2026-63389MEDIUM5
  • PHP logoPHP
  • awcodes/filament-curator
NoYesNov 17, 2026
GHSA-vrxr-rp64-42vqMEDIUM4.8
  • PHP logoPHP
  • bitpay/module-bpcheckout
NoYesNov 17, 2026
GHSA-58h6-g9mx-7ffrLOWN/A
  • PHP logoPHP
  • hengstverzeichnis/framework
NoYesNov 18, 2026
GHSA-xc2j-7c2r-wjjvMEDIUMN/A
  • PHP logoPHP
  • zumba/json-serializer
NoYesNov 17, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management