CVE-2014-1402
python-jinja2: FileSystemBytecodeCache insecure cache temporary file use
Overview
Description
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.
Source: OX vulnerability database
Severity
8.4 · MEDIUM
CVSS 3.1 base score, scored by GitHub.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-264
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | jinja2 | <2.7.2 | 2.7.2 |
Open a package to see all its vulnerabilities.
Operating systems · 7 fixes
Red Hat 1 release · 2 packages
fixed 2
python27-python-jinja2
python33-python-jinja2
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | python27-python-jinja2 | 0:2.6-11.el7 | RHSA-2014:0748 |
| 7 | python33-python-jinja2 | 0:2.6-12.el7 | RHSA-2014:0748 |
debian 4 releases · 1 package
fixed 4
jinja2
| Release | Package | Fixed in |
|---|---|---|
| 11 | jinja2 | 2.7.2-1 |
| 12 | jinja2 | 2.7.2-1 |
| 13 | jinja2 | 2.7.2-1 |
| 14 | jinja2 | 2.7.2-1 |
echo 1 release · 1 package
fixed 1
jinja2
| Release | Package | Fixed in |
|---|---|---|
| jinja2 | 2.7.2-1 |
References
- advisories.mageia.org http://advisories.mageia.org/MGASA-2014-0028.html
- jinja.pocoo.org http://jinja.pocoo.org/docs/changelog
- jinja.pocoo.org http://jinja.pocoo.org/docs/changelog/
- openwall.com http://openwall.com/lists/oss-security/2014/01/10/2
- openwall.com http://openwall.com/lists/oss-security/2014/01/10/3
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2014-0747.html
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2014-0748.html
- secunia.com http://secunia.com/advisories/56287
- secunia.com http://secunia.com/advisories/58783
- secunia.com http://secunia.com/advisories/58918
Show all 27 references
- secunia.com http://secunia.com/advisories/59017
- secunia.com http://secunia.com/advisories/60738
- secunia.com http://secunia.com/advisories/60770
- www.gentoo.org http://www.gentoo.org/security/en/glsa/glsa-201408-13.xml
- www.mandriva.com http://www.mandriva.com/security/advisories?name=MDVSA-2014:096
- access.redhat.com https://access.redhat.com/security/cve/CVE-2014-1402
- bugs.debian.org https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1051421
- github.com https://github.com/advisories/GHSA-8r7q-cvjq-x353
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2014-8.yaml
- linux.oracle.com https://linux.oracle.com/cve/CVE-2014-1402.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2014-0747.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2014-1402
- oss.oracle.com https://oss.oracle.com/pipermail/el-errata/2014-June/004192.html
- ubuntu.com https://ubuntu.com/security/notices/USN-2301-1
- web.archive.org https://web.archive.org/web/20150523060528/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2014:096/?name=MDVSA-2014:096
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2014-1402
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.