vendor:
Twig
by:
JameelNabbo
7.5
CVSS
HIGH
Server side template injection
SSTI-94
CWE
Product Name: Twig
Affected Version From: Version < 2.4.4
Affected Version To:
Patch Exists: YES
Related CWE:
CPE:
Platforms Tested: MAC OSX
2018
Twig <2.4.4 Server side template injection
Twig <2.4.4 contains a server side template injection vulnerability which allows attackers to execute commands within the parameters. By injecting malicious code using the {{COMMAND TO EXECUTE}} syntax, instead of normal integer or string values, the attacker can execute arbitrary commands. The vulnerability depends on the application that takes different parameters via GET or POST.
Mitigation:
Update Twig to version 2.4.4 or later to patch the vulnerability. Additionally, input validation and sanitization should be implemented to prevent template injection attacks.