CVE-2026-33942: Php Unserialize Allowed Classes True

Call to PHP unserialize() with allowed_classes => true (or without a restrictive allowed_classes option) permits instantiation of arbitrary classes loaded by the application. If the serialized input is not fully under developer control (e.g., comes from a cache, file, database, HTTP input, or any storage backend an attacker could tamper with), this leads to

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

Description

Call to PHP unserialize() with allowed_classes => true (or without a restrictive allowed_classes option) permits instantiation of arbitrary classes loaded by the application. If the serialized input is not fully under developer control (e.g., comes from a cache, file, database, HTTP input, or any storage backend an attacker could tamper with), this leads to