CVE-2019-8341 Code injection in n/a

Critical 9.8 Published Updated

Attacker can execute arbitrary code via Server Side Template Injection if untrusted input is rendered without sandboxing.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-8341?

CVE-2019-8341 is a critical code injection vulnerability in Opensuse Leap, published on 15 Feb 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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

Weakness: CWE-94

Which versions are affected by CVE-2019-8341?

It affects 2 products.

Products include Opensuse Leap, Pocoo Jinja2.

How do I fix CVE-2019-8341?

Change a configuration setting.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2019-8341 being exploited?

There is no known exploitation of CVE-2019-8341 in the wild and no public exploit code.

Public exploit code: 1 Exploit-DB entry and 1 proofs of concept on GitHub.

All Opensuse Leap vulnerabilities

Sources

Also known as DEBIAN-CVE-2019-8341, GHSA-f6pv-j8mr-w6rr, UBUNTU-CVE-2019-8341.

Is CVE-2019-8341 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free