Skip to content

Insecure Temporary File in Jinja2

Moderate severity GitHub Reviewed Published May 17, 2022 to the GitHub Advisory Database • Updated Feb 14, 2023

Package

pip Jinja2 (pip)

Affected versions

< 2.7.2

Patched versions

2.7.2

Description

FileSystemBytecodeCache in Jinja2 2.7.2 does not properly create temporary directories, which allows local users to gain privileges by pre-creating a temporary directory with a user's uid. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-1402.

References

Published by the National Vulnerability Database May 19, 2014
Published to the GitHub Advisory Database May 17, 2022
Reviewed Feb 14, 2023
Last updated Feb 14, 2023

Severity

Moderate

EPSS score

0.042%
(5th percentile)

Weaknesses

CVE ID

CVE-2014-0012

GHSA ID

GHSA-fqh9-2qgg-h84h

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.