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)
| Product | Versions | Fixed in |
|---|---|---|
| cakephp/twig-view | < 1.3.3 | 1.3.3 |
| cakephp/twig-view | >= 2.0.0, < 2.1.2 | 2.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
Sources and references
- https://github.com/advisories/GHSA-48qj-5wxh-m8hc — GHSA
- https://github.com/cakephp/twig-view/security/advisories/GHSA-48qj-5wxh-m8hc — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-59192 — GHSA
- https://github.com/cakephp/twig-view/pull/119 — GHSA
- https://github.com/cakephp/twig-view/pull/120 — GHSA
- https://github.com/cakephp/twig-view/commit/65f5035ee65e76925242fdca2dc2bb0d732b6c1d — GHSA
- https://github.com/cakephp/twig-view/commit/99a59407b138a0efff0ce3896cbf67e71a9c9cd3 — GHSA
- https://github.com/cakephp/twig-view/releases/tag/1.3.3 — GHSA
- https://github.com/cakephp/twig-view/releases/tag/2.1.2 — GHSA
- https://github.com/cakephp/twig-view — OSV
Weaknesses (CWE): CWE-502
Relevant change history
Published
Preliminary advisory published.