Summary
TwigView FileLoader may allow arbitrary file reads through user-controlled template paths
Advisory details
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.
References
- https://github.com/advisories/GHSA-hq9r-72jq-2pxp
- https://github.com/cakephp/twig-view/security/advisories/GHSA-hq9r-72jq-2pxp
- https://nvd.nist.gov/vuln/detail/CVE-2026-59191
- https://github.com/cakephp/twig-view/commit/1c5107c9f562ab285273ceafd1c28bf314faa6d5
- https://github.com/cakephp/twig-view/commit/65f5035ee65e76925242fdca2dc2bb0d732b6c1d
- https://github.com/cakephp/twig-view/releases/tag/1.3.3
- https://github.com/cakephp/twig-view/releases/tag/2.1.2
Related vulnerabilities
All Supply chain →- HIGHCVE-2026-77309
AIT-GUI route chain allows unauthenticated Python execution in server process
- MEDIUMCVE-2026-61725
sevenz-rust2: decompress builds each output path as dest.join(entry.name()) with no traversal guard, allowing a crafted .7z to write files outside the destination (Zip-Slip)
- MEDIUMCVE-2026-115565
storyblok-backup: Stored path traversal via unsanitized Storyblok component names in backup output
- HIGHCVE-2026-58192
appium allows unauthenticated arbitrary file/directory deletion in @appium/storage-plugin
- CRITICALCVE-2026-114516
Etherpad: Pre-auth arbitrary file read
- HIGHCVE-2026-62955
baserCMS: Path Traversal Bypass via realpath() in BcThemeFileService (CVE-2026-30940 Patch Bypass)