cakephp/twig-view is vulnerable to Path Traversal
59
CVE Score
Medium
Path Traversal
The FileLoader::findTemplate() method resolves template names for the include and extends tags without confining the resolved path to the allowed template directories. When an application passes user-controlled data as a template name, the loader can resolve paths outside the intended template roots and read arbitrary files on the server. The file contents are then returned through the template engine, exposing sensitive server files. The fix restricts template resolution to the configured template and plugin paths and rejects names that resolve outside them.
Upgrade the cakephp/twig-view library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application passes user-controlled data to the include or extends tags.
1.0.1 - 1.3.2
Fixed in 1.3.32.0.0 - 2.1.1
Fixed in 2.1.2cakephp/twig-view is vulnerable to Path Traversal in versions 1.0.1 - 1.3.2 and 2.0.0 - 2.1.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.