CVE-2018-15560: PyCryptodome Integer overflow vulnerability

pycryptodome Updated 02 Oct 2025

Summary

27/08/2018
Yes i
High
7.5

CVE-2018-15560: PyCryptodome integer overflow vulnerability. Affects pycryptodome versions < 3.6.6. Fixed in 3.6.6. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback