Skip to content
Medium 6.9

Cakephp twig-view unserialize Twig filter allows arbitrary object deserialization

CVE-2026-59192 First seen on SecPulse

Affected packages

PackageAffected → Fixed
cakephptwig-view —
composercakephp/twig-view
< 2.1.2→ 2.1.2
Packagistcakephp/twig-view
≥ 2.0.0, < 2.1.2→ 2.1.2
Original description The description as published by the source.

Impact

The unserialize filter has no restriction on which classes are allowed. This can be used as a deserialization remote-code-execution gadget.

Patches

1.3.3 and 2.1.2 contain a fix for this issue. The fix may impact backwards compatibility if you are relying on deserializing PHP objects in your templates.

Workarounds

Don't use the unserialize filter.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details