Malicious code in studyrandom (PyPI)

studyrandom Updated 02 Oct 2025

Summary

25/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-6835: Malicious code in studyrandom (PyPI). Affected versions are not published. 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 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

The studyrandom package is an open-source Python package available on PyPI. It is designed to generate random numbers for statistical analysis and research purposes. The package provides various functions and methods to generate random numbers based on different distributions. However, the package has been found to contain malicious code, which can lead to the execution of spyware and information-stealing malware.

Vulnerability Detail

The vulnerability in the studyrandom package originates from a malicious PyPi package published by the EsqueleSquad group. This package contains code that can compromise the security of systems using the studyrandom package. The malicious code can execute spyware and steal sensitive information from the affected systems. The impact of this vulnerability can be severe, leading to data breaches, unauthorized access, and potential harm to users' privacy and security.

How To Fix

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

pip uninstall studyrandom

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 no specific workaround mentioned for this vulnerability. The best course of action is to follow the steps mentioned in the 'how_to_fix' section and remove the studyrandom package from the affected systems.

Conclusion

The studyrandom package has been found to contain malicious code, which can lead to the execution of spyware and information-stealing malware. It is crucial to take immediate action to remove the package from affected systems and replace it with a trusted alternative. Regularly updating and patching software dependencies is essential to mitigate the risk of similar vulnerabilities. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for studyrandom →

Share this vulnerability

FAQ

The studyrandom package is a Python package available on PyPI that is used for generating random numbers for statistical analysis and research purposes.

The vulnerability in the studyrandom package can lead to the execution of spyware and information-stealing malware, potentially resulting in data breaches, unauthorized access, and compromise of users' privacy and security.

To fix this vulnerability, it is recommended to remove the studyrandom package from the affected systems and replace it with a trusted and secure alternative. Regularly updating and patching software dependencies is also crucial to mitigate the risk of similar vulnerabilities.

There is no specific workaround mentioned for this vulnerability. The best course of action is to follow the steps mentioned in the 'how_to_fix' section and remove the studyrandom package from the affected systems.

To ensure the security of your systems, it is important to regularly update and patch all software dependencies, use trusted and secure packages, and scan the system for any signs of compromise. Implementing strong security measures and best practices can help mitigate the risk of vulnerabilities and protect your systems.

How To Fix

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

pip uninstall studyrandom

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