CVE-2014-0012
Insecure Temporary File in Jinja2
Reported by redhat · Published May 19, 2014
Jinja2 is fixed in acb672b6a179567632e032f547582f30fa2f4aa7, 2.7.3 and 2.7.2 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Jinja2 | PyPI | acb672b6a179567632e032f547582f30fa2f4aa7, 2.7.3, 2.7.2 |
| jinja2 | Ubuntu:14.04:LTS | 2.7.2-2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| pocoo | jinja2 | |
| PyPI | Jinja2 | 0 |
| n/a | n/a | * |
Timeline
- May 19, 2014 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Jul 16, 2025 CVE Rejected
- Jul 16, 2025 CVE Updated
- Mar 5, 2026 Distribution Patch
- Mar 5, 2026 Security Advisory (3 in total, the first dated here)
- Oct 22, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2014-0012
vulnetix vdb fixes CVE-2014-0012
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2014-0012/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- 56328 third-party-advisoryx_refsource_SECUNIA
- x_refsource_MISC
- 60738 third-party-advisoryx_refsource_SECUNIA
- x_refsource_MISC
- x_refsource_MISC
- GLSA-201408-13 vendor-advisoryx_refsource_GENTOO
- [oss-security] 20140110 CVE assignment for jinja2 mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2014-0012 advisory
- https://github.com/advisories/GHSA-fqh9-2qgg-h84h advisory
- https://github.com/pallets/jinja2 url
- https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2014-82.yaml advisory
- https://github.com/pallets/jinja2/pull/292 fix
- https://github.com/pallets/jinja2/pull/296 fix
- https://github.com/pallets/jinja/commit/acb672b6a179567632e032f547582f30fa2f4aa7 fix
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747 advisory