CVE-2018-15560: PyCryptodome Integer overflow vulnerability
Summary
CVE-2018-15560: PyCryptodome integer overflow vulnerability. Affects pycryptodome versions < 3.6.6. Fixed in 3.6.6. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
PyCryptodome is a Python library that provides cryptographic functions. It is used for encryption, decryption, and other cryptographic operations. The library is widely used in various applications and frameworks that require secure communication and data protection. However, PyCryptodome versions before 3.6.6 are vulnerable to an integer overflow issue in the AESNI.c file. This vulnerability affects the AESNI_encrypt and AESNI_decrypt functions, leading to mishandling of messages shorter than 16 bytes.
Vulnerability Detail
The integer overflow vulnerability in PyCryptodome allows an attacker to manipulate the data_len variable in AESNI.c, which can result in the mishandling of messages shorter than 16 bytes. This can lead to various security issues, including potential data corruption, information leakage, and unauthorized access to sensitive information. The vulnerability has a CVSS score of 7.5, indicating a high severity level.
How To Fix
Latest published version: 4.1.0 as of 23 Oct 2026
pip install --upgrade "pycryptodome==4.1.0"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
3.6.6
This is the first release that contains the fix.
pip install --upgrade "pycryptodome==3.6.6"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
The PyCryptodome library before version 3.6.6 is vulnerable to an integer overflow issue in the AESNI.c file. This can lead to various security risks, including data corruption and unauthorized access to sensitive information. It is recommended to update to PyCryptodome 3.6.6 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for pycryptodome →
FAQ
PyCryptodome is a Python library that provides cryptographic functions for encryption, decryption, and other cryptographic operations.
The vulnerability can result in data corruption, information leakage, and unauthorized access to sensitive information.
To fix this vulnerability, update PyCryptodome to version 3.6.6 or later.
No specific workaround is mentioned for this vulnerability.
The vulnerability has a CVSS score of 7.5, indicating a high severity level.
Related vulnerabilities
Recent vulnerabilities recorded for pycryptodome.