MEDIUM · CVSS 4.0 EPSS 0.7% · 51th percentile CWE-502

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

Published 2026-11-24 · Updated 2026-11-24 · Also known as GHSA-48qj-5wxh-m8hc

Summary

The cakephp/twig-view package contains an insecure unserialize filter that permits arbitrary object deserialization. Developers using this package must update to the latest patched versions to prevent potential remote code execution.

Who is affected

The vulnerability affects all deployments utilizing the twig-view package versions prior to 1.3.3 or 2.1.2. By exploiting the lack of class restrictions in the unserialize filter, an attacker may be able to execute arbitrary code via deserialization gadgets within the application.

Exploitability

With a CVSS 4.0 attack vector of network and low attack complexity, the flaw is easily reachable for remote actors. While current EPSS data is low at 0.006, the vulnerability is not currently tracked on the CISA KEV list, indicating no active exploitation is currently documented.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Packagist cakephp/twig-view >= 0, < 1.3.3 1.3.3 composer require "cakephp/twig-view:>=1.3.3"
Packagist cakephp/twig-view >= 2.0.0, < 2.1.2 2.1.2 composer require "cakephp/twig-view:>=2.1.2"

CVSS 4.0 vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Attack vectorNetwork
Attack complexityLow
Attack requirementsNone
Privileges requiredNone
User interactionNone
Confidentiality (vulnerable system)None
Integrity (vulnerable system)Low
Availability (vulnerable system)None
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

Does this vulnerability definitely lead to remote code execution?

The flaw allows arbitrary object deserialization, which serves as a vector for remote code execution gadgets, though actual exploitability depends on the presence of suitable gadgets in the environment.

Will updating to the fixed versions break my application?

The maintainers note that the fix may impact backwards compatibility if your templates currently rely on deserializing PHP objects.

Is this vulnerability being actively exploited in the wild?

No; according to the provided data, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog.

Original advisory description
### 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.

References

Source records: GHSA-48qj-5wxh-m8hc (OSV.dev) · EPSS by FIRST, 2026-11-26.