Python 2.7 before 3.4 only uses the last eight bits of the prefix to randomize hash…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Medium
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Partial
- Fix status
- Will not fix Red Hat: no fix planned
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat.
Summary
Python 2.7 before 3.4 only uses the last eight bits of the prefix to randomize hash values, which causes it to compute hash values without restricting the ability to trigger hash collisions predictably and makes it easier for context-dependent attackers to cause a denial of service (CPU consumption) via crafted input to an application that maintains a hash table. NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1150.
Why it matters now
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 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 42
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:* | up to 10.10.4 | Vulnerable | Apple |
| cpe:2.3:a:python:python:2.7.1:*:*:*:*:*:*:* | 2.7.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.7.1:rc1:*:*:*:*:*:* | 2.7.1 rc1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.7.2:rc1:*:*:*:*:*:* | 2.7.2 rc1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.7.3:*:*:*:*:*:*:* | 2.7.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.7.4:*:*:*:*:*:*:* | 2.7.4 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.7.5:*:*:*:*:*:*:* | 2.7.5 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.7.6:*:*:*:*:*:*:* | 2.7.6 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.7.7:*:*:*:*:*:*:* | 2.7.7 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.7.1150:*:*:*:*:*:*:* | 2.7.1150 | Vulnerable | python-pillow |
- cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:* Versions up to 10.10.4 Vulnerable ·Apple
- cpe:2.3:a:python:python:2.7.1:*:*:*:*:*:*:* Versions 2.7.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.7.1:rc1:*:*:*:*:*:* Versions 2.7.1 rc1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.7.2:rc1:*:*:*:*:*:* Versions 2.7.2 rc1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.7.3:*:*:*:*:*:*:* Versions 2.7.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.7.4:*:*:*:*:*:*:* Versions 2.7.4 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.7.5:*:*:*:*:*:*:* Versions 2.7.5 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.7.6:*:*:*:*:*:*:* Versions 2.7.6 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.7.7:*:*:*:*:*:*:* Versions 2.7.7 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.7.1150:*:*:*:*:*:*:* Versions 2.7.1150 Vulnerable ·python-pillow
Show 32 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:2.7.2150:*:*:*:*:*:*:* | 2.7.2150 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.0:*:*:*:*:*:*:* | 3.0 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.0.1:*:*:*:*:*:*:* | 3.0.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1:*:*:*:*:*:*:* | 3.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1.1:*:*:*:*:*:*:* | 3.1.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1.2:*:*:*:*:*:*:* | 3.1.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1.3:*:*:*:*:*:*:* | 3.1.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1.4:*:*:*:*:*:*:* | 3.1.4 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1.5:*:*:*:*:*:*:* | 3.1.5 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2:*:*:*:*:*:*:* | 3.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2:alpha:*:*:*:*:*:* | 3.2 alpha | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.0:*:*:*:*:*:*:* | 3.2.0 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.1:*:*:*:*:*:*:* | 3.2.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.2:*:*:*:*:*:*:* | 3.2.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.3:*:*:*:*:*:*:* | 3.2.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.4:*:*:*:*:*:*:* | 3.2.4 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.5:*:*:*:*:*:*:* | 3.2.5 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.2150:*:*:*:*:*:*:* | 3.2.2150 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3:*:*:*:*:*:*:* | 3.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3:beta2:*:*:*:*:*:* | 3.3 beta2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.0:*:*:*:*:*:*:* | 3.3.0 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.1:*:*:*:*:*:*:* | 3.3.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.1:rc1:*:*:*:*:*:* | 3.3.1 rc1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.2:*:*:*:*:*:*:* | 3.3.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.3:*:*:*:*:*:*:* | 3.3.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.3:rc1:*:*:*:*:*:* | 3.3.3 rc1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.3:rc2:*:*:*:*:*:* | 3.3.3 rc2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.4:*:*:*:*:*:*:* | 3.3.4 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.4:rc1:*:*:*:*:*:* | 3.3.4 rc1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.5:-:*:*:*:*:*:* | 3.3.5 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.5:rc1:*:*:*:*:*:* | 3.3.5 rc1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.5:rc2:*:*:*:*:*:* | 3.3.5 rc2 | Vulnerable | python-pillow |
- cpe:2.3:a:python:python:2.7.2150:*:*:*:*:*:*:* Versions 2.7.2150 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.0:*:*:*:*:*:*:* Versions 3.0 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.0.1:*:*:*:*:*:*:* Versions 3.0.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1:*:*:*:*:*:*:* Versions 3.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1.1:*:*:*:*:*:*:* Versions 3.1.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1.2:*:*:*:*:*:*:* Versions 3.1.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1.3:*:*:*:*:*:*:* Versions 3.1.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1.4:*:*:*:*:*:*:* Versions 3.1.4 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1.5:*:*:*:*:*:*:* Versions 3.1.5 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2:*:*:*:*:*:*:* Versions 3.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2:alpha:*:*:*:*:*:* Versions 3.2 alpha Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.0:*:*:*:*:*:*:* Versions 3.2.0 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.1:*:*:*:*:*:*:* Versions 3.2.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.2:*:*:*:*:*:*:* Versions 3.2.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.3:*:*:*:*:*:*:* Versions 3.2.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.4:*:*:*:*:*:*:* Versions 3.2.4 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.5:*:*:*:*:*:*:* Versions 3.2.5 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.2150:*:*:*:*:*:*:* Versions 3.2.2150 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3:*:*:*:*:*:*:* Versions 3.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3:beta2:*:*:*:*:*:* Versions 3.3 beta2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.0:*:*:*:*:*:*:* Versions 3.3.0 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.1:*:*:*:*:*:*:* Versions 3.3.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.1:rc1:*:*:*:*:*:* Versions 3.3.1 rc1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.2:*:*:*:*:*:*:* Versions 3.3.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.3:*:*:*:*:*:*:* Versions 3.3.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.3:rc1:*:*:*:*:*:* Versions 3.3.3 rc1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.3:rc2:*:*:*:*:*:* Versions 3.3.3 rc2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.4:*:*:*:*:*:*:* Versions 3.3.4 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.4:rc1:*:*:*:*:*:* Versions 3.3.4 rc1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.5:-:*:*:*:*:*:* Versions 3.3.5 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.5:rc1:*:*:*:*:*:* Versions 3.3.5 rc1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.5:rc2:*:*:*:*:*:* Versions 3.3.5 rc2 Vulnerable ·python-pillow
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
Timeline
- 2026-10-02 Threatist record created from CVE-2013-7040
- 2026-10-03 Alias added: GHSA-cjvq-9vmj-3482
References
Sources
- CVE-2013-7040 · CVE Program
- CVE-2013-7040 · NVD
- FIRST EPSS
- GHSA-cjvq-9vmj-3482 · GitHub Advisory Database · CC BY 4.0
- CVE-2013-7040 · 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