Skip to content
DayZeroHub
Medium Not yet writtenCVSS 6.9GHSA-48qj-5wxh-m8hcCVE-2026-59192

CVE-2026-59192: Cakephp twig-view unserialize Twig filter allows arbitrary object deserialization

cakephp/twig-view

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-59192: medium-severity vulnerability (CVSS 6.9) in cakephp/twig-view.

What happened

Original description from 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.

Why it matters

Medium severity, CVSS 6.9.

Affected products and versions

cakephp/twig-view < 1.3.3 (fixed in 1.3.3); cakephp/twig-view >= 2.0.0, < 2.1.2 (fixed in 2.1.2)

ProductVersionsFixed in
cakephp/twig-view< 1.3.31.3.3
cakephp/twig-view>= 2.0.0, < 2.1.22.1.2

Action recommended by the source

Upgrade to a fixed version: 1.3.3, 2.1.2.

Fixed in: 1.3.3, 2.1.2

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-502

Relevant change history

  1. Published

    Preliminary advisory published.