BreachSpiderVerified, not vibes

CVE-2008-4864 in Python

High 7.5 Public exploit reported

Multiple integer overflows in imageop.c in the imageop module in Python 1.5.2 through 2.5.1 allow context-dependent attackers to break out of the Python VM and execute arbitrary code via large integer values in certain arguments to the crop function, leading to a buffer overflow, a different vulnerability than CVE-2...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 2.07.5
EPSS21.0%
EPSS percentile98th
FixUnknown

Remotely exploitable over the network, low complexity.

Affected products and versions

VendorProductAffected versions
Python Python ≥ 1.5.2, < 2.4.6 ≥ 2.5.0, < 2.5.3

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitReported · reference

Official description

Multiple integer overflows in imageop.c in the imageop module in Python 1.5.2 through 2.5.1 allow context-dependent attackers to break out of the Python VM and execute arbitrary code via large integer values in certain arguments to the crop function, leading to a buffer overflow, a different vulnerability than CVE-2007-4965 and CVE-2008-1679.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2008-4864
BreachSpider IDBS-2008-GLOBAL-159764-H
CVSS vectorAV:N/AC:L/Au:N/C:P/I:P/A:P
Published2008-11-01
Last modified2026-06-16
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-190: Integer Overflow or Wraparound

Arithmetic operation exceeds the maximum integer value, wrapping around and often leading to undersized allocations.

Related attack patterns (CAPEC)

CAPEC-92 Forced Integer Overflow via CWE-190

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Multiple integer overflows in the imageop module of Python versions 1.5.2 through 2.5.1 can lead to a buffer overflow, potentially allowing attackers to execute arbitrary code.

Attackers can exploit this vulnerability by providing large integer values to the crop function in the imageop module, which can cause integer overflows and break out of the Python VM.

Questions

What is CVE-2008-4864?

Multiple integer overflows in the imageop module of Python versions 1.5.2 through 2.5.1 can lead to a buffer overflow, potentially allowing attackers to execute arbitrary code.

What is the CVSS score for CVE-2008-4864?

CVE-2008-4864 has CVSS 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. EPSS: 21.0%.

Is CVE-2008-4864 actively exploited?

Public exploit available for CVE-2008-4864. Exploitation risk elevated.

How do I remediate CVE-2008-4864?

Priority: HIGH.

What systems are affected by CVE-2008-4864?

CVE-2008-4864 affects Python Python.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Python","product":"Python","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.