CVE-2019-8341
CRITICALJinja2 - Server-Side Template Injection via from_string Function
Title source: llmExploitation Summary
EIP tracks 2 public exploits for CVE-2019-8341. PoCs published by JameelNabbo, adindrabkin.
AI-analyzed exploit summary This exploit demonstrates a Server-Side Template Injection (SSTI) vulnerability in Jinja2's `from_string` function, allowing arbitrary code execution via crafted template expressions. The PoC includes examples for command injection, file reading, and reverse shell execution.
Description
An issue was discovered in Jinja2 2.10. The from_string function is prone to Server Side Template Injection (SSTI) where it takes the "source" parameter as a template object, renders it, and then returns it. The attacker can exploit it with {{INJECTION COMMANDS}} in a URI. NOTE: The maintainer and multiple third parties believe that this vulnerability isn't valid because users shouldn't use untrusted templates without sandboxing
Exploits (2)
This exploit demonstrates a Server-Side Template Injection (SSTI) vulnerability in Jinja2's `from_string` function, allowing arbitrary code execution via crafted template expressions. The PoC includes examples for command injection, file reading, and reverse shell execution.
This repository contains a working PoC for CVE-2019-8341, demonstrating Server-Side Template Injection (SSTI) in a Flask application. The vulnerability arises from unsafe use of `render_template_string` with user-controlled input in the search functionality.
References (6)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H