Buffer Overflow in pycrypto
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | pycrypto | <= 2.6.1 | no fix |
References
- https://pony7.fr/ctf:public:32c3:cryptmsg
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RJ37R2YLX56YZABFNAOWV4VTHTGYREAE/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C6BWNADPLKDBBQBUT3P75W7HAJCE7M3B/
- https://github.com/dlitz/pycrypto/issues/176
- https://github.com/dlitz/pycrypto/commit/8dbe0dc3eea5c689d4f76b37b93fe216cf1f00d4
- https://bugzilla.redhat.com/show_bug.cgi?id=1409754
- http://www.securityfocus.com/bid/95122
- http://www.openwall.com/lists/oss-security/2016/12/27/8
- https://security.gentoo.org/glsa/201702-14
- https://github.com/advisories/GHSA-cq27-v7xp-c356
- https://nvd.nist.gov/vuln/detail/CVE-2013-7459
- https://github.com/dlitz/pycrypto
- https://github.com/pypa/advisory-database/tree/main/vulns/pycrypto/PYSEC-2017-94.yaml
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C6BWNADPLKDBBQBUT3P75W7HAJCE7M3B
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RJ37R2YLX56YZABFNAOWV4VTHTGYREAE
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-119- Platform
- Python (PyPI)
- Package
pycrypto- Disclosed
- 15.02.2017
- Updated
- 11.10.2026 11:20
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2017-94 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-cq27-v7xp-c356 - CC BY 4.0
Vulnerability history: pycrypto
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 4
- First → latest
- 06.2012 02.2018
- Without a fix
- 2
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 2
- Medium 1
Disclosures per year
- 2017: 1
- 2018: 1
- 2019: 0
- 2020: 0
- 2021: 0
- 2022: 0
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 0
earlier: 2
-
Buffer Overflow in pycrypto this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.