Read the docs
TI-2013-05785 Aliases CVE-2013-7040GHSA-cjvq-9vmj-3482

Python 2.7 before 3.4 only uses the last eight bits of the prefix to randomize hash…

Priority LOW 26CWE-310Published · Updated

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

EPSS 0.03141 87th percentileScored 2026-11-07
Fix Will not fix Red Hat: no fix planned

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
  • — Vendor— Affected all versions Fixed in — No fix listed CNA

CPE configurations NVD · 42

CPEVersionsRoleVendor
cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*up to 10.10.4VulnerableApple
cpe:2.3:a:python:python:2.7.1:*:*:*:*:*:*:*2.7.1Vulnerablepython-pillow
cpe:2.3:a:python:python:2.7.1:rc1:*:*:*:*:*:*2.7.1 rc1Vulnerablepython-pillow
cpe:2.3:a:python:python:2.7.2:rc1:*:*:*:*:*:*2.7.2 rc1Vulnerablepython-pillow
cpe:2.3:a:python:python:2.7.3:*:*:*:*:*:*:*2.7.3Vulnerablepython-pillow
cpe:2.3:a:python:python:2.7.4:*:*:*:*:*:*:*2.7.4Vulnerablepython-pillow
cpe:2.3:a:python:python:2.7.5:*:*:*:*:*:*:*2.7.5Vulnerablepython-pillow
cpe:2.3:a:python:python:2.7.6:*:*:*:*:*:*:*2.7.6Vulnerablepython-pillow
cpe:2.3:a:python:python:2.7.7:*:*:*:*:*:*:*2.7.7Vulnerablepython-pillow
cpe:2.3:a:python:python:2.7.1150:*:*:*:*:*:*:*2.7.1150Vulnerablepython-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
CPEVersionsRoleVendor
cpe:2.3:a:python:python:2.7.2150:*:*:*:*:*:*:*2.7.2150Vulnerablepython-pillow
cpe:2.3:a:python:python:3.0:*:*:*:*:*:*:*3.0Vulnerablepython-pillow
cpe:2.3:a:python:python:3.0.1:*:*:*:*:*:*:*3.0.1Vulnerablepython-pillow
cpe:2.3:a:python:python:3.1:*:*:*:*:*:*:*3.1Vulnerablepython-pillow
cpe:2.3:a:python:python:3.1.1:*:*:*:*:*:*:*3.1.1Vulnerablepython-pillow
cpe:2.3:a:python:python:3.1.2:*:*:*:*:*:*:*3.1.2Vulnerablepython-pillow
cpe:2.3:a:python:python:3.1.3:*:*:*:*:*:*:*3.1.3Vulnerablepython-pillow
cpe:2.3:a:python:python:3.1.4:*:*:*:*:*:*:*3.1.4Vulnerablepython-pillow
cpe:2.3:a:python:python:3.1.5:*:*:*:*:*:*:*3.1.5Vulnerablepython-pillow
cpe:2.3:a:python:python:3.2:*:*:*:*:*:*:*3.2Vulnerablepython-pillow
cpe:2.3:a:python:python:3.2:alpha:*:*:*:*:*:*3.2 alphaVulnerablepython-pillow
cpe:2.3:a:python:python:3.2.0:*:*:*:*:*:*:*3.2.0Vulnerablepython-pillow
cpe:2.3:a:python:python:3.2.1:*:*:*:*:*:*:*3.2.1Vulnerablepython-pillow
cpe:2.3:a:python:python:3.2.2:*:*:*:*:*:*:*3.2.2Vulnerablepython-pillow
cpe:2.3:a:python:python:3.2.3:*:*:*:*:*:*:*3.2.3Vulnerablepython-pillow
cpe:2.3:a:python:python:3.2.4:*:*:*:*:*:*:*3.2.4Vulnerablepython-pillow
cpe:2.3:a:python:python:3.2.5:*:*:*:*:*:*:*3.2.5Vulnerablepython-pillow
cpe:2.3:a:python:python:3.2.2150:*:*:*:*:*:*:*3.2.2150Vulnerablepython-pillow
cpe:2.3:a:python:python:3.3:*:*:*:*:*:*:*3.3Vulnerablepython-pillow
cpe:2.3:a:python:python:3.3:beta2:*:*:*:*:*:*3.3 beta2Vulnerablepython-pillow
cpe:2.3:a:python:python:3.3.0:*:*:*:*:*:*:*3.3.0Vulnerablepython-pillow
cpe:2.3:a:python:python:3.3.1:*:*:*:*:*:*:*3.3.1Vulnerablepython-pillow
cpe:2.3:a:python:python:3.3.1:rc1:*:*:*:*:*:*3.3.1 rc1Vulnerablepython-pillow
cpe:2.3:a:python:python:3.3.2:*:*:*:*:*:*:*3.3.2Vulnerablepython-pillow
cpe:2.3:a:python:python:3.3.3:*:*:*:*:*:*:*3.3.3Vulnerablepython-pillow
cpe:2.3:a:python:python:3.3.3:rc1:*:*:*:*:*:*3.3.3 rc1Vulnerablepython-pillow
cpe:2.3:a:python:python:3.3.3:rc2:*:*:*:*:*:*3.3.3 rc2Vulnerablepython-pillow
cpe:2.3:a:python:python:3.3.4:*:*:*:*:*:*:*3.3.4Vulnerablepython-pillow
cpe:2.3:a:python:python:3.3.4:rc1:*:*:*:*:*:*3.3.4 rc1Vulnerablepython-pillow
cpe:2.3:a:python:python:3.3.5:-:*:*:*:*:*:*3.3.5Vulnerablepython-pillow
cpe:2.3:a:python:python:3.3.5:rc1:*:*:*:*:*:*3.3.5 rc1Vulnerablepython-pillow
cpe:2.3:a:python:python:3.3.5:rc2:*:*:*:*:*:*3.3.5 rc2Vulnerablepython-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 →

ProductStatusPlan or fix
Red Hat Enterprise Linux 5AffectedNo fix planned: Will not fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Will not fix
Red Hat Enterprise Linux 7AffectedNo fix planned: Will not fix
Red Hat Software CollectionsAffectedNo fix planned: Will not fix

Timeline

  1. 2026-10-02 Threatist record created from CVE-2013-7040
  2. 2026-10-03 Alias added: GHSA-cjvq-9vmj-3482

References

Sources