---
id: "CVE-2026-59192"
page: "https://infrastack.ai/live/CVE-2026-59192"
kind: "vulnerability"
aliases: ["CVE-2026-59192"]
title: "TwigView for CakePHP: unserialize filter lets attackers run code"
severity: "medium"
cvss: 6.9
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["cakephp", "composer", "package", "php", "twigview"]
not_affected_if: ["no-unserialize-filter-use", "twigview-not-installed"]
published_at: "2026-11-11T05:19:49+00:00"
first_seen_at: "2026-11-11T05:25:39+00:00"
updated_at: "2026-11-11T05:26:42+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59192", "first_seen_at": "2026-11-11T05:25:39+00:00"}]
exploit_sources: []
---

# TwigView for CakePHP: unserialize filter lets attackers run code

Link for people: https://infrastack.ai/live/CVE-2026-59192 (this .md is for agents)

The TwigView plugin for CakePHP exposes an unserialize filter that accepts any class, so it can be used as a deserialization gadget. An attacker who can supply data to that filter may be able to execute remote code.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed TwigView version in `composer.lock` or with `composer show`.
- Look for use of the `unserialize` filter in Twig templates of the application.

## Fix

- Upgrade TwigView to `1.3.3` on the 1.x line.
- Upgrade TwigView to `2.1.2` on the 2.x line.

## Timeline

- 2026-11-11T05:25:39+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-59192

## Documents

- [advisory] Vendor advisory: github.com https://github.com/cakephp/twig-view/security/advisories/GHSA-48qj-5wxh-m8hc
- [fix] Patch: github.com https://github.com/cakephp/twig-view/commit/99a59407b138a0efff0ce3896cbf67e71a9c9cd3
- [fix] Release notes: github.com https://github.com/cakephp/twig-view/releases/tag/1.3.3
- [fix] Release notes: github.com https://github.com/cakephp/twig-view/releases/tag/2.1.2

## From the sources

TwigView plugin for CakePHP provides wrappers for common View operations and extensions that expose CakePHP functions and jasny/twig-extensions helpers. Prior to versions 1.3.3 and 2.1.2, the unserialize filter has no restriction on which classes are allowed. This can used as a deserialization remote-code-execution gadget. This issue has been patched in versions 1.3.3 and 2.1.2.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
