Vulnerability identifier: #VU67723
Vulnerability risk: Medium
CVSSv4.0: 6.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]
CVE-ID:
CWE-ID:
CWE-22
Exploitation vector: Network
Exploit availability: No
Vulnerable software:
Twig
Web applications /
CMS
Vendor: Symfony
Description
The vulnerability allows a remote attacker to perform directory traversal attacks.
The vulnerability exists due to input validation error when processing directory traversal sequences when loading templates. A remote attacker can use the "source" or "include" statement to read arbitrary files on the system.
Mitigation
Install update from vendor's website.
Vulnerable software versions
Twig: 1.0.0, 1.1.0 - 1.19.0, 1.2.0 - 1.29.0, 1.3.0 - 1.39.1, 1.4.0 - 1.44.6, 1.5.0 - 1.5.1, 1.6.0 - 1.6.5, 1.7.0, 1.8.0 - 1.8.3, 1.9.0 - 1.9.2, 2.0.0, 2.1.0 - 2.15.2, 2.2.0, 2.3.0 - 2.3.2, 2.4.0 - 2.4.8, 2.5.0, 2.6.0 - 2.6.2, 2.7.0 - 2.7.4, 2.8.0 - 2.8.1, 2.9.0, 3.0.0 - 3.0.5, 3.1.0 - 3.1.1, 3.2.1, 3.3.0 - 3.3.10, 3.4.0, 3.4.1, 3.4.2
External links
https://github.com/twigphp/Twig/commit/35f3035c5deb0041da7b84daf02dea074ddc7a0b
https://github.com/twigphp/Twig/security/advisories/GHSA-52m2-vc4m-jj33
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability.