CVE-2026-23524: Php Unserialize Without Allowed Classes

Call to unserialize() without an 'allowed_classes' option (or with 'allowed_classes' => true) deserializes attacker-controllable data and will instantiate ANY class registered in the autoloader. This enables PHP Object Injection / unserialize gadget chains leading to Remote Code Execution (CWE-502). Always pass a second argument with an explicit allow-list,

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-23524-php-unserialize-without-allowed-classes --engine opengrep

Description

Call to unserialize() without an 'allowed_classes' option (or with 'allowed_classes' => true) deserializes attacker-controllable data and will instantiate ANY class registered in the autoloader. This enables PHP Object Injection / unserialize gadget chains leading to Remote Code Execution (CWE-502). Always pass a second argument with an explicit allow-list,