FileSystemBytecodeCache in Jinja2 2.7.2 does not properly create temporary directories…
Priority LOW 21CWE-264Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Medium
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Partial · Partial · Partial
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and GitHub. Impact type from CWE-264.
Summary
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.
Why it matters now
EPSS 0.0043 37th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed Jinja2 (PyPI): 2.7.2
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | Jinja2 (PyPI) | before 2.7.2 | 2.7.2 | Patch available | GHSA-fqh9-2qgg-h84h |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- Jinja2 (PyPI) Vendor— Affected before 2.7.2 Fixed in 2.7.2 Patch available GHSA-fqh9-2qgg-h84h
Remediation
- Fix · GHSA-fqh9-2qgg-h84h Jinja2 (PyPI) Fixed in 2.7.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 4 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat OpenStack Platform 4
- Red Hat Software Collections
Timeline
- 2026-10-02 Threatist record created from CVE-2014-0012
- 2026-10-03 Alias added: GHSA-fqh9-2qgg-h84h
References
Other 10
- https://github.com/mitsuhiko/jinja2/pull/292
- https://bugzilla.redhat.com/show_bug.cgi?id=1051421
- https://github.com/mitsuhiko/jinja2/pull/296
- [oss-security] 20140110 CVE assignment for jinja2
- https://github.com/pallets/jinja2/pull/292
- https://github.com/pallets/jinja2/pull/296
- https://github.com/pallets/jinja/commit/acb672b6a179567632e032f547582f30fa2f4aa7
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747
- https://github.com/pallets/jinja2
- https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2014-82.yaml
More Pocoo Jinja2 vulnerabilities
- TI-2019-05986 An issue was discovered in Jinja2 2.10. CVSS 3.1CRITICAL 9.8
- TI-2014-01089 The default configuration for bccache.FileSystemBytecodeCache in Jinja2 before 2.7.2 does… CVSS 2.0MEDIUM 4.4
Sources
- CVE-2014-0012 · CVE Program
- CVE-2014-0012 · NVD
- FIRST EPSS
- GHSA-fqh9-2qgg-h84h · GitHub Advisory Database · CC BY 4.0
- CVE-2014-0012 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences