BreachSpiderVerified, not vibes

CVE-2008-5031 in Python

Critical 10.0

Multiple integer overflows in Python 2.2.3 through 2.5.1, and 2.6, allow context-dependent attackers to have an unknown impact via a large integer value in the tabsize argument to the expandtabs method, as implemented by (1) the string_expandtabs function in Objects/stringobject.c and (2) the unicode_expandtabs func...

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

CVSS 2.010.0
EPSS3.0%
EPSS percentile88th
FixUnknown

Remotely exploitable over the network, low complexity.

Affected products and versions

VendorProductAffected versions
Python Python 2.2.3 2.3.7 2.4.6 2.5.1

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.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Multiple integer overflows in Python 2.2.3 through 2.5.1, and 2.6, allow context-dependent attackers to have an unknown impact via a large integer value in the tabsize argument to the expandtabs method, as implemented by (1) the string_expandtabs function in Objects/stringobject.c and (2) the unicode_expandtabs function in Objects/unicodeobject.c. NOTE: this vulnerability reportedly exists because of an incomplete fix for CVE-2008-2315.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2008-5031
BreachSpider IDBS-2008-GLOBAL-327298-C
CVSS vectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Published2008-11-10
Last modified2026-06-16
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-189: CWE-189

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2008. A critical vulnerability affects Python systems (CVE-2008-5031). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: Multiple integer overflows in Python 2.2.3 through 2.5.1, and 2.6, allow context-dependent attackers to have an unknown impact via a large integer value in the tabsize argument to the expandtabs method, as implemented by (1) the string_expandtabs function in Objects/stringobject.c and (2) the unicode_expandtabs function in Objects/unicodeobject.c. NOTE: this vulnerability reportedly exists because of an incomplete fix for CVE-2008-2315. CVSS vector: AV:N/AC:L/Au:N/C:C/I:C/A:C.

Questions

What is CVE-2008-5031?

This vulnerability was disclosed in 2008. A critical vulnerability affects Python systems (CVE-2008-5031). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

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

CVE-2008-5031 has CVSS 10.0 (Critical). Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C. EPSS: 3.0%.

Is CVE-2008-5031 actively exploited?

No confirmed active exploitation of CVE-2008-5031 as of 2026-09-25.

How do I remediate CVE-2008-5031?

Priority: MEDIUM. PSIRT: [email protected]

What systems are affected by CVE-2008-5031?

CVE-2008-5031 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.