Critical
Security advisory
Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 allows remote attackers to have unspecified impact via a negative data size value, which triggers a heap-based buffer overflow.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-5636
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 08:12 UTC · Revision 1
Source evidence
Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 allows remote attackers to have unspecified impact via a negative data size value, which triggers a heap-based buffer overflow.
osv:CVE-2016-5636
Complete source record
{
"id": "69183792065a91e9b6b215e6dfbae9886ecec9068b767e9e7160060bc2ef397a",
"url": "https://osv.dev/vulnerability/CVE-2016-5636",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-5636",
"summary": "Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 allows remote attackers to have unspecified impact via a negative data size value, which triggers a heap-based buffer overflow.",
"evidence": "osv:CVE-2016-5636",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2016-5636",
"aliases": [
"CVE-2016-5636",
"PSF-2016-7"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/python/cpython",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "11fc030b6f9294030f0baa15f3bd4e2293e260e4"
},
{
"introduced": "6046c5e0298c25515ea58abc8ab87f7413e3f743"
},
{
"last_affected": "ffccaa40fa237f4afc9eec87c78a98356f9f6e77"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.7.11"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:python:python:3.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.0"
},
{
"last_affected": "3.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.0.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.0.1"
},
{
"last_affected": "3.0.1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.1.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.1.1"
},
{
"last_affected": "3.1.1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.1.2:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.1.2"
},
{
"last_affected": "3.1.2"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.1.3:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.1.3"
},
{
"last_affected": "3.1.3"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.1.4:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.1.4"
},
{
"last_affected": "3.1.4"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.1.5:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.1.5"
},
{
"last_affected": "3.1.5"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.2.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.2.1"
},
{
"last_affected": "3.2.1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.2.2:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.2.2"
},
{
"last_affected": "3.2.2"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.2.3:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.2.3"
},
{
"last_affected": "3.2.3"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.2.4:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.2.4"
},
{
"last_affected": "3.2.4"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.2.5:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.2.5"
},
{
"last_affected": "3.2.5"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.2.6:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.2.6"
},
{
"last_affected": "3.2.6"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.3.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.3.0"
},
{
"last_affected": "3.3.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.3.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.3.1"
},
{
"last_affected": "3.3.1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.3.2:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.3.2"
},
{
"last_affected": "3.3.2"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.3.3:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.3.3"
},
{
"last_affected": "3.3.3"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.3.4:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.3.4"
},
{
"last_affected": "3.3.4"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.3.5:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.3.5"
},
{
"last_affected": "3.3.5"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.3.6:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.3.6"
},
{
"last_affected": "3.3.6"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.4.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.4.0"
},
{
"last_affected": "3.4.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.4.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.4.1"
},
{
"last_affected": "3.4.1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.4.2:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.4.2"
},
{
"last_affected": "3.4.2"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.4.3:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.4.3"
},
{
"last_affected": "3.4.3"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.4.4:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.4.4"
},
{
"last_affected": "3.4.4"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.5.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.5.0"
},
{
"last_affected": "3.5.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.5.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.5.1"
},
{
"last_affected": "3.5.1"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"3.0",
"3.0.1",
"3.1.1",
"3.1.2",
"3.1.3",
"3.1.4",
"3.1.5",
"3.2.1",
"3.2.2",
"3.2.3",
"3.2.4",
"3.2.5",
"3.2.6",
"3.3.0",
"3.3.1",
"3.3.2",
"3.3.3",
"3.3.4",
"3.3.5",
"3.3.6",
"3.4.0",
"3.4.1",
"3.4.2",
"3.4.3",
"3.4.4",
"3.5.0",
"3.5.1",
"v3.5.1",
"v2.7.11",
"v3.5.1rc1",
"v2.7.11rc1",
"v3.5.0rc3",
"v3.5.0rc2",
"v3.5.0rc1",
"v3.5.0b4",
"v3.5.0b3",
"v3.5.0b1",
"v2.7.10rc1",
"v3.5.0a4",
"v3.5.0a3",
"v3.5.0a2",
"v3.5.0a1",
"v2.7.9rc1",
"v2.7.8",
"v3.4.0b3",
"v3.4.0b2",
"v3.4.0b1",
"v2.7.6rc1",
"v3.4.0a4",
"v3.4.0a3",
"v3.4.0a2",
"v3.4.0a1",
"v2.7.5",
"v2.7.4rc1",
"v3.3.0rc3",
"v3.3.0rc2",
"v3.3.0rc1",
"v3.3.0b2",
"v3.3.0b1",
"v3.3.0a4",
"v3.3.0a3",
"v3.3.0a2",
"v2.7.3rc1",
"v2.7.2rc1",
"v2.7",
"v3.2rc3",
"v3.2rc2",
"v3.2rc1",
"v3.2b2",
"v3.2b1",
"v2.7.1",
"v2.7.1rc1",
"v3.2a4",
"v3.2a3",
"v3.2a2",
"v3.2a1",
"v2.7rc2",
"v2.7rc1",
"v2.7b2",
"v2.7b1",
"v2.7a4",
"v2.7a3",
"v2.7a2",
"v2.7a1",
"v3.1",
"v3.1rc2",
"v3.1rc1",
"v3.1b1",
"v3.1a2",
"v3.1a1",
"v3.0rc3",
"v3.0rc2",
"v2.6",
"v2.6rc2",
"v3.0rc1",
"v2.6rc1",
"v3.0b3",
"v2.6b3",
"v2.6b2",
"v3.0b2",
"v2.6b1",
"v3.0b1",
"v2.6a3",
"v3.0a5",
"v2.6a2",
"v3.0a4",
"v3.0a3",
"v2.6a1",
"v3.0a2",
"v3.0a1",
"v2.5b3",
"v2.5b2",
"v2.5b1",
"v2.5a2",
"v2.5a1",
"v2.5a0",
"v2.4",
"v2.4c1",
"v2.4b2",
"v2.4b1",
"v2.4a3",
"v2.4a2",
"v2.4a1",
"v2.3c2",
"v2.3c1",
"v2.2a3",
"v2.1",
"v2.1c2",
"v2.1c1",
"v2.1b2",
"v2.1b1",
"v2.1a2",
"v2.1a1",
"v2.0",
"v2.0c1",
"v2.0b2",
"v2.0b1",
"v1.6a2",
"v1.6a1",
"v1.5.2",
"v1.5.2c1",
"v1.5.2b2",
"v1.5.2b1",
"v1.5.2a2",
"v1.5.2a1",
"v1.5.1",
"v1.5",
"v1.5b2",
"v1.5b1",
"v1.5a4",
"v1.5a3",
"v1.5a2",
"v1.5a1",
"v1.4",
"v1.4b3",
"v1.4b2",
"v1.4b1",
"v1.3",
"v1.3b1",
"v1.2",
"v1.2b4",
"v1.2b3",
"v1.2b2",
"v1.2b1",
"v1.1.1",
"v1.1",
"v1.0.2",
"v1.0.1",
"v0.9.9",
"v0.9.8"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5636.json"
}
}
],
"modified": "2026-10-24T10:31:04.301437973Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2019/02/msg00011.html",
"https://docs.python.org/3.4/whatsnew/changelog.html#python-3-4-5",
"https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-2",
"https://hg.python.org/cpython/raw-file/v2.7.12/Misc/NEWS",
"https://security.gentoo.org/glsa/201701-18",
"https://bugs.python.org/issue26171"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:python:python:3.1.0:*:*:*:*:*:*:*",
"cpe:2.3:a:python:python:3.2.0:*:*:*:*:*:*:*"
],
"vendor_product": "python:python",
"extracted_events": [
{
"range": [
{
"introduced": "3.1.0"
},
{
"last_affected": "3.1.0"
},
{
"introduced": "3.2.0"
},
{
"last_affected": "3.2.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2016-5636",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 440474,
"published_at": "2016-09-02T14:59:06.003+00:00"
}