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
- Upgrade cakephp/twig-view to version 1.3.3 or higher for the 1.x branch.
- Upgrade cakephp/twig-view to version 2.1.2 or higher for the 2.x branch.
- Remove or replace usage of the unserialize filter in Twig templates if object deserialization is not strictly required.
How to check your project
- Check your project's composer.lock file for entries under cakephp/twig-view.
- Run 'composer show cakephp/twig-view' to identify the installed version.
- Search the codebase for occurrences of the 'unserialize' filter within Twig template files.
Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| 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 vector | Network |
|---|---|
| Attack complexity | Low |
| Attack requirements | None |
| Privileges required | None |
| User interaction | None |
| 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
References
- WEB https://github.com/cakephp/twig-view/security/advisories/GHSA-48qj-5wxh-m8hc
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-59192
- WEB https://github.com/cakephp/twig-view/pull/119
- WEB https://github.com/cakephp/twig-view/pull/120
- WEB https://github.com/cakephp/twig-view/commit/65f5035ee65e76925242fdca2dc2bb0d732b6c1d
- WEB https://github.com/cakephp/twig-view/commit/99a59407b138a0efff0ce3896cbf67e71a9c9cd3
- PACKAGE https://github.com/cakephp/twig-view
- WEB https://github.com/cakephp/twig-view/releases/tag/1.3.3
- WEB https://github.com/cakephp/twig-view/releases/tag/2.1.2
Source records: GHSA-48qj-5wxh-m8hc (OSV.dev) · EPSS by FIRST, 2026-11-26.