{"api_version":"1","generated_at":"2026-07-23T12:21:37+00:00","cve":"CVE-2013-7459","urls":{"html":"https://cve.report/CVE-2013-7459","api":"https://cve.report/api/cve/CVE-2013-7459.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2013-7459","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2013-7459"},"summary":{"title":"CVE-2013-7459","description":"Heap-based buffer overflow in the ALGnew function in block_templace.c in Python Cryptography Toolkit (aka pycrypto) allows remote attackers to execute arbitrary code as demonstrated by a crafted iv parameter to cryptmsg.py.","state":"PUBLISHED","assigner":"mitre","published_at":"2017-02-15 15:59:00","updated_at":"2025-04-20 01:37:25"},"problem_types":["CWE-119","n/a"],"metrics":[{"version":"3.0","source":"nvd@nist.gov","type":"Primary","score":"9.8","severity":"CRITICAL","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"7.5","severity":"","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"https://security.gentoo.org/glsa/201702-14","name":"https://security.gentoo.org/glsa/201702-14","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"PyCrypto: Remote execution of arbitrary code (GLSA 201702-14) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RJ37R2YLX56YZABFNAOWV4VTHTGYREAE/","name":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RJ37R2YLX56YZABFNAOWV4VTHTGYREAE/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"[SECURITY] Fedora 25 Update: python-crypto-2.6.1-13.fc25 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/dlitz/pycrypto/commit/8dbe0dc3eea5c689d4f76b37b93fe216cf1f00d4","name":"https://github.com/dlitz/pycrypto/commit/8dbe0dc3eea5c689d4f76b37b93fe216cf1f00d4","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"Throw exception when IV is used with ECB or CTR · dlitz/pycrypto@8dbe0dc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/95122","name":"http://www.securityfocus.com/bid/95122","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"PyCrypto 'cryptmsg.py' Buffer Overflow Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://www.openwall.com/lists/oss-security/2016/12/27/8","name":"http://www.openwall.com/lists/oss-security/2016/12/27/8","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"oss-security - Re: Buffer overflow in pycrypto","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C6BWNADPLKDBBQBUT3P75W7HAJCE7M3B/","name":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C6BWNADPLKDBBQBUT3P75W7HAJCE7M3B/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"[SECURITY] Fedora 24 Update: python-crypto-2.6.1-13.fc24 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://pony7.fr/ctf:public:32c3:cryptmsg","name":"https://pony7.fr/ctf:public:32c3:cryptmsg","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Technical Description","Third Party Advisory"],"title":"cryptmsg - Writeup by Maxima [Wiki INP-net]","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"https://github.com/dlitz/pycrypto/issues/176","name":"https://github.com/dlitz/pycrypto/issues/176","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Vendor Advisory"],"title":"AES.new with invalid parameter crashes python · Issue #176 · dlitz/pycrypto · GitHub","mime":"text/x-python","httpstatus":"200","archivestatus":"200"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1409754","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1409754","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking","Third Party Advisory","VDB Entry"],"title":"Bug 1409754 – CVE-2013-7459 pycrypto: Heap-buffer overflow in ALGobject structure","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C6BWNADPLKDBBQBUT3P75W7HAJCE7M3B/","name":"FEDORA:FEDORA-2017-08207fe48b","refsource":"MITRE","tags":[],"title":"[SECURITY] Fedora 24 Update: python-crypto-2.6.1-13.fc24 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RJ37R2YLX56YZABFNAOWV4VTHTGYREAE/","name":"FEDORA:FEDORA-2017-7c569d396b","refsource":"MITRE","tags":[],"title":"[SECURITY] Fedora 25 Update: python-crypto-2.6.1-13.fc25 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2013-7459","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2013-7459","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2013","cve_id":"7459","vulnerable":"1","versionEndIncluding":"2.6.1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"dlitz","cpe5":"pycrypto","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2013","cve_id":"7459","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"24","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2013","cve_id":"7459","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"25","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2013-7459","qid":"710398","title":"Gentoo Linux PyCrypto Remote execution of arbitrary code Vulnerability (GLSA 201702-14)"},{"cve":"CVE-2013-7459","qid":"981123","title":"Python (pip) Security Update for pycrypto (GHSA-cq27-v7xp-c356)"}]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-06T18:09:16.939Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1409754"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://pony7.fr/ctf:public:32c3:cryptmsg"},{"name":"[oss-security] 20161227 Re: Buffer overflow in pycrypto","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"http://www.openwall.com/lists/oss-security/2016/12/27/8"},{"name":"FEDORA-2017-7c569d396b","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"],"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RJ37R2YLX56YZABFNAOWV4VTHTGYREAE/"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/dlitz/pycrypto/issues/176"},{"name":"95122","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/95122"},{"name":"FEDORA-2017-08207fe48b","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"],"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C6BWNADPLKDBBQBUT3P75W7HAJCE7M3B/"},{"name":"GLSA-201702-14","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"],"url":"https://security.gentoo.org/glsa/201702-14"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/dlitz/pycrypto/commit/8dbe0dc3eea5c689d4f76b37b93fe216cf1f00d4"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2016-12-27T00:00:00.000Z","descriptions":[{"lang":"en","value":"Heap-based buffer overflow in the ALGnew function in block_templace.c in Python Cryptography Toolkit (aka pycrypto) allows remote attackers to execute arbitrary code as demonstrated by a crafted iv parameter to cryptmsg.py."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-06-30T16:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"tags":["x_refsource_CONFIRM"],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1409754"},{"tags":["x_refsource_MISC"],"url":"https://pony7.fr/ctf:public:32c3:cryptmsg"},{"name":"[oss-security] 20161227 Re: Buffer overflow in pycrypto","tags":["mailing-list","x_refsource_MLIST"],"url":"http://www.openwall.com/lists/oss-security/2016/12/27/8"},{"name":"FEDORA-2017-7c569d396b","tags":["vendor-advisory","x_refsource_FEDORA"],"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RJ37R2YLX56YZABFNAOWV4VTHTGYREAE/"},{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/dlitz/pycrypto/issues/176"},{"name":"95122","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/95122"},{"name":"FEDORA-2017-08207fe48b","tags":["vendor-advisory","x_refsource_FEDORA"],"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C6BWNADPLKDBBQBUT3P75W7HAJCE7M3B/"},{"name":"GLSA-201702-14","tags":["vendor-advisory","x_refsource_GENTOO"],"url":"https://security.gentoo.org/glsa/201702-14"},{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/dlitz/pycrypto/commit/8dbe0dc3eea5c689d4f76b37b93fe216cf1f00d4"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2013-7459","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"Heap-based buffer overflow in the ALGnew function in block_templace.c in Python Cryptography Toolkit (aka pycrypto) allows remote attackers to execute arbitrary code as demonstrated by a crafted iv parameter to cryptmsg.py."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://bugzilla.redhat.com/show_bug.cgi?id=1409754","refsource":"CONFIRM","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1409754"},{"name":"https://pony7.fr/ctf:public:32c3:cryptmsg","refsource":"MISC","url":"https://pony7.fr/ctf:public:32c3:cryptmsg"},{"name":"[oss-security] 20161227 Re: Buffer overflow in pycrypto","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2016/12/27/8"},{"name":"FEDORA-2017-7c569d396b","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RJ37R2YLX56YZABFNAOWV4VTHTGYREAE/"},{"name":"https://github.com/dlitz/pycrypto/issues/176","refsource":"CONFIRM","url":"https://github.com/dlitz/pycrypto/issues/176"},{"name":"95122","refsource":"BID","url":"http://www.securityfocus.com/bid/95122"},{"name":"FEDORA-2017-08207fe48b","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C6BWNADPLKDBBQBUT3P75W7HAJCE7M3B/"},{"name":"GLSA-201702-14","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/201702-14"},{"name":"https://github.com/dlitz/pycrypto/commit/8dbe0dc3eea5c689d4f76b37b93fe216cf1f00d4","refsource":"CONFIRM","url":"https://github.com/dlitz/pycrypto/commit/8dbe0dc3eea5c689d4f76b37b93fe216cf1f00d4"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2013-7459","datePublished":"2017-02-15T15:00:00.000Z","dateReserved":"2016-12-27T00:00:00.000Z","dateUpdated":"2024-08-06T18:09:16.939Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2017-02-15 15:59:00","lastModifiedDate":"2025-04-20 01:37:25","problem_types":["CWE-119","n/a"],"metrics":{"cvssMetricV30":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:dlitz:pycrypto:*:*:*:*:*:*:*:*","versionEndIncluding":"2.6.1","matchCriteriaId":"9A04076A-FFA3-48C6-A43D-171C93A38B5A"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:fedoraproject:fedora:24:*:*:*:*:*:*:*","matchCriteriaId":"C729D5D1-ED95-443A-9F53-5D7C2FD9B80C"},{"vulnerable":true,"criteria":"cpe:2.3:o:fedoraproject:fedora:25:*:*:*:*:*:*:*","matchCriteriaId":"772E9557-A371-4664-AE2D-4135AAEB89AA"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2013","CveId":"7459","Ordinal":"1","Title":"CVE-2013-7459","CVE":"CVE-2013-7459","Year":"2013"},"notes":[{"CveYear":"2013","CveId":"7459","Ordinal":"1","NoteData":"Heap-based buffer overflow in the ALGnew function in block_templace.c in Python Cryptography Toolkit (aka pycrypto) allows remote attackers to execute arbitrary code as demonstrated by a crafted iv parameter to cryptmsg.py.","Type":"Description","Title":"CVE-2013-7459"},{"CveYear":"2013","CveId":"7459","Ordinal":"2","NoteData":"2017-02-15","Type":"Other","Title":"Published"},{"CveYear":"2013","CveId":"7459","Ordinal":"3","NoteData":"2017-06-30","Type":"Other","Title":"Modified"}]}}}