pallets/jinja2 · Security
Insecure Temporary File in Jinja2
- GHSA ID
- GHSA-fqh9-2qgg-h84h
- CVE ID
- CVE-2014-0012
- Severity
- medium
- Published
- Updated
- CVSS
- 6.2 · CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CVSS v3
- 6.2 · CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CVSS v4
- 6.9 · CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Description
FileSystemBytecodeCache in Jinja2 prior to version 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.
CWEs
- CWE-377 · Insecure Temporary File
References
- https://nvd.nist.gov/vuln/detail/CVE-2014-0012 ↗
- https://bugzilla.redhat.com/show_bug.cgi?id=1051421 ↗
- http://seclists.org/oss-sec/2014/q1/73 ↗
- http://www.gentoo.org/security/en/glsa/glsa-201408-13.xml ↗
- https://github.com/pallets/jinja2/pull/292 ↗
- https://github.com/pallets/jinja2/pull/296 ↗
- https://github.com/pallets/jinja/commit/acb672b6a179567632e032f547582f30fa2f4aa7 ↗
- https://github.com/mitsuhiko/jinja2/pull/292 ↗
- https://github.com/mitsuhiko/jinja2/pull/296 ↗
- https://github.com/mitsuhiko/jinja2/commit/acb672b6a179567632e032f547582f30fa2f4aa7 ↗
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2014-82.yaml ↗
- https://github.com/advisories/GHSA-fqh9-2qgg-h84h ↗