Home / Pocoo / Jinja2 / CVE-2014-1402
CVE-2014-1402: is it exploited, and which versions of Pocoo Jinja2 are affected and fixed?
CVE-2014-1402 is an incorrect Privilege Assignment vulnerability in Pocoo Jinja2. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:08 UTC). Affected: Jinja2 before 2.7.2 (GitHub advisory GHSA-8r7q-cvjq-x353). Fixed in 2.7.2 (GitHub advisory GHSA-8r7q-cvjq-x353). Severity: Medium (4.4, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:08 UTC, CVE record November 19, 2026, 07:19 UTC and NVD November 19, 2026, 08:47 UTC.
What is CVE-2014-1402?
The default configuration for bccache.FileSystemBytecodeCache in Jinja2 before 2.7.2 does not properly create temporary files, which allows local users to gain privileges via a crafted .cache file with a name starting with __jinja2_ in /tmp.
From the CVE record by mitre, last updated August 6, 2024, 09:42 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | Jinja2 | < 2.7.2 | 2.7.2 | GHSA-8r7q-cvjq-x353 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 24, 2024. Summary: Incorrect Privilege Assignment in Jinja2.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| pocoo | jinja2 | through 2.7.1 | application |
| pocoo | jinja2 | 2.0 | application |
| pocoo | jinja2 | 2.1 | application |
| pocoo | jinja2 | 2.1.1 | application |
| pocoo | jinja2 | 2.2 | application |
| pocoo | jinja2 | 2.2.1 | application |
| pocoo | jinja2 | 2.3 | application |
| pocoo | jinja2 | 2.3.1 | application |
| pocoo | jinja2 | 2.4 | application |
| pocoo | jinja2 | 2.4.1 | application |
| pocoo | jinja2 | 2.5 | application |
| pocoo | jinja2 | 2.5.1 | application |
| pocoo | jinja2 | 2.5.2 | application |
| pocoo | jinja2 | 2.5.3 | application |
| pocoo | jinja2 | 2.5.4 | application |
| pocoo | jinja2 | 2.5.5 | application |
| pocoo | jinja2 | 2.6 | application |
| pocoo | jinja2 | 2.7 | application |
NVD analysis (status Modified), last modified June 17, 2026, 00:04 UTC.
How severe is CVE-2014-1402?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.4 | CVSS 2.0 | AV:L/AC:M/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2014-1402 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.37% probability of exploitation activity in the next 30 days, percentile 33.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- [El-errata] 20140611 Oracle Linux Security Advisory ELSA-2014-0747 mailing-list, x_refsource_MLIST
- [oss-security] 20140110 Re: CVE Request: python-jinja2: arbitrary code execution vulnerability mailing-list, x_refsource_MLIST
- 59017 third-party-advisory, x_refsource_SECUNIA
- 56287 third-party-advisory, x_refsource_SECUNIA
- MDVSA-2014:096 vendor-advisory, x_refsource_MANDRIVA
- 58783 third-party-advisory, x_refsource_SECUNIA
- 58918 third-party-advisory, x_refsource_SECUNIA
- 60738 third-party-advisory, x_refsource_SECUNIA
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747 x_refsource_CONFIRM
- https://bugzilla.redhat.com/show_bug.cgi?id=1051421 x_refsource_CONFIRM
- 60770 third-party-advisory, x_refsource_SECUNIA
- RHSA-2014:0747 vendor-advisory, x_refsource_REDHAT
- http://jinja.pocoo.org/docs/changelog/ x_refsource_CONFIRM
- GLSA-201408-13 vendor-advisory, x_refsource_GENTOO
- [oss-security] 20140110 CVE Request: python-jinja2: arbitrary code execution vulnerability mailing-list, x_refsource_MLIST
- http://advisories.mageia.org/MGASA-2014-0028.html x_refsource_CONFIRM
- RHSA-2014:0748 vendor-advisory, x_refsource_REDHAT
When was it published, and where is the official record?
- Reserved
- January 10, 2014
- Published
- May 19, 2014, 14:00 UTC
- CVE record updated
- August 6, 2024, 09:42 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 00:04 UTC
- Last checked
- CVE list November 19, 2026, 07:19 UTC; NVD November 19, 2026, 08:47 UTC; KEV December 3, 2026, 09:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Jinja2?
- Feb 15, 2019CVE-2019-8341 Pocoo Jinja2: code injection (remote code execution) disputed
- May 19, 2014CVE-2014-0012 Pocoo Jinja2: insecure temporary file
Questions about CVE-2014-1402
Is CVE-2014-1402 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:08 UTC. FIRST's EPSS gives it a 0.37% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Pocoo Jinja2 are affected by CVE-2014-1402?
Jinja2 before 2.7.2, per the GitHub advisory GHSA-8r7q-cvjq-x353. The tables above give every range the sources list.
Which version fixes CVE-2014-1402?
2.7.2, per the GitHub advisory GHSA-8r7q-cvjq-x353. Check the vendor's advisory before you rely on it.
How severe is CVE-2014-1402?
Medium (4.4, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2014-1402?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.