Malicious code in pycryptlib (PyPI)

pycryptlib Updated 02 Oct 2025

Summary

25/06/2024
CRITICAL
No i
Critical
Not published

MAL-2024-5683: Malicious code in pycryptlib (PyPI). Affects pycryptlib versions 1.0.0 – 1.1.5. No fix is published. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

pycryptlib is a Python package available on PyPI that provides cryptographic functionality. It is used by developers to implement encryption and decryption in their applications. However, a recent vulnerability has been discovered in pycryptlib that exposes users to potential security risks.

Vulnerability Detail

The vulnerability in pycryptlib involves the presence of malicious code within the package. This code can be exploited by attackers to gain unauthorized access, steal sensitive information, or perform other malicious activities. The malicious code was identified by ReversingLabs and has been traced back to versions 1.1.5 and 1.0.0 of pycryptlib.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall pycryptlib

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is currently no known workaround for this vulnerability. It is crucial to update to a secure version of pycryptlib as soon as possible.

Conclusion

The presence of malicious code in pycryptlib poses a significant security risk to users. It is crucial for developers to update to a secure version of the package and ensure that their applications are not using the affected versions. By taking these steps, the vulnerability can be mitigated and the security of the applications can be enhanced.

See every vulnerability recorded for pycryptlib →

Share this vulnerability

FAQ

pycryptlib is a Python package that provides cryptographic functionality, allowing developers to implement encryption and decryption in their applications.

The vulnerability exposes users to potential security risks, as attackers can exploit the malicious code within pycryptlib to gain unauthorized access or steal sensitive information.

Versions 1.1.5 and 1.0.0 of pycryptlib have been identified as containing the malicious code.

The vulnerability was discovered by ReversingLabs, a cybersecurity company.

Developers should update pycryptlib to a secure version that does not contain the malicious code. They should also ensure that their applications are using the updated version of pycryptlib.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall pycryptlib

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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