Arbitrary Code Injection Affecting python2-Jinja2 package, versions <2.10.1-3.5.1


Severity

Recommended
0.0
high
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
43.87% (99th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-SLES150-PYTHON2JINJA2-2753211
  • published14 Apr 2022
  • disclosed6 May 2019

Introduced: 6 May 2019

CVE-2019-8341  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade SLES:15.0 python2-Jinja2 to version 2.10.1-3.5.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python2-Jinja2 package and not the python2-Jinja2 package as distributed by SLES. See How to fix? for SLES:15.0 relevant fixed versions and status.

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

CVSS Base Scores

version 3.1