Medium
6.9
TwigView FileLoader may allow arbitrary file reads through user-controlled template paths
CVE-2026-59191
First seen on SecPulse
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| cakephptwig-view | — | Not listed |
| composercakephp/twig-view |
< 2.1.2→ 2.1.2 |
2.1.2 |
| Packagistcakephp/twig-view |
≥ 2.0.0, < 2.1.2→ 2.1.2 |
2.1.2 |
Original description The description as published by the source.
Impact
If FileLoader::findTemplate() is supplied un-validated user controlled data, arbitrary files can be read.
Patches
1.3.3 and 2.1.2 contain a fix for this issue.
Workarounds
Don't supply user controlled data to include and extends tags.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com