NetSight
hoch8.8

CVE-2024-56201

Jinja has a sandbox breakout through malicious filenames

Auswirkung

A bug in the Jinja compiler allows an attacker that controls both the content and filename of a template to execute arbitrary Python code, regardless of if Jinja's sandbox is used. To exploit the vulnerability, an attacker needs to control both the filename and the contents of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates where the template author can also choose the template filename.

Ein Angreifer kann die Lücke mit lokalem Zugriff auf das System ausnutzen, mit einem normalen Benutzerkonto, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle. Der Angriff kann über die verwundbare Komponente hinaus wirken.

Betroffene Pakete

ÖkosystemPaketBetroffenBehoben in
pipjinja2>= 3.0.0, <= 3.1.43.1.5

Betroffene Produkte · Palletsprojects

ProduktBetroffene Versionen
Jinja
ab 3.0.0 vor 3.1.5

Schwachstellenklasse

Referenzen