BreachSpiderVerified, not vibes

CVE-2011-1521 in Python

Medium 6.4

The urllib and urllib2 modules in Python 2.x before 2.7.2 and 3.x before 3.2.1 process Location headers that specify redirection to file: URLs, which makes it easier for remote attackers to obtain sensitive information or cause a denial of service (resource consumption) via a crafted URL, as demonstrated by the file...

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

CVSS 2.06.4
EPSS3.6%
EPSS percentile90th
FixUnknown

Remotely exploitable over the network, low complexity, no integrity impact.

Affected products and versions

VendorProductAffected versions
Python Python 2.0 2.0.1 2.1 2.1.1 2.1.2 2.1.3
+32 more2.2 2.2.1 2.2.2 2.2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.7 2.4.1 2.4.2 2.4.3 2.4.4 2.4.6 2.5.1 2.5.2 2.5.3 2.5.4 2.6.1 2.6.4 2.6.5 2.6.6 2.6.7 2.7.1 3.0 3.0.1 3.1 3.1.1 3.1.2 3.1.3 3.2

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 exploitNot confirmed

Official description

The urllib and urllib2 modules in Python 2.x before 2.7.2 and 3.x before 3.2.1 process Location headers that specify redirection to file: URLs, which makes it easier for remote attackers to obtain sensitive information or cause a denial of service (resource consumption) via a crafted URL, as demonstrated by the file:///etc/passwd and file:///dev/zero URLs.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2011-1521
BreachSpider IDBS-2011-GLOBAL-087700-M
CVSS vectorAV:N/AC:L/Au:N/C:P/I:N/A:P
Published2011-05-24
Last modified2026-06-16
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-399: Resource Management Errors

Broad class covering failures in managing system resources such as memory, file handles, and connections.

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2011. A medium severity vulnerability affects Python systems (CVE-2011-1521). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: The urllib and urllib2 modules in Python 2.x before 2.7.2 and 3.x before 3.2.1 process Location headers that specify redirection to file: URLs, which makes it easier for remote attackers to obtain sensitive information or cause a denial of service (resource consumption) via a crafted URL, as demonstrated by the file:///etc/passwd and file:///dev/zero URLs. CVSS vector: AV:N/AC:L/Au:N/C:P/I:N/A:P.

Questions

What is CVE-2011-1521?

This vulnerability was disclosed in 2011. A medium severity vulnerability affects Python systems (CVE-2011-1521). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

What is the CVSS score for CVE-2011-1521?

CVE-2011-1521 has CVSS 6.4 (Medium). Vector: AV:N/AC:L/Au:N/C:P/I:N/A:P. EPSS: 3.6%.

Is CVE-2011-1521 actively exploited?

No confirmed active exploitation of CVE-2011-1521 as of 2026-09-25.

How do I remediate CVE-2011-1521?

Priority: MONITOR.

What systems are affected by CVE-2011-1521?

CVE-2011-1521 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.