Malicious code in selfedrandomrandom (PyPI)

selfedrandomrandom Updated 02 Oct 2025

Summary

27/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-6041: Malicious code in selfedrandomrandom (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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The selfedrandomrandom package is an open-source Python package available on PyPI. It is designed to generate random numbers using a self-edited algorithm. The package is commonly used in various Python applications for generating random data. However, a recent vulnerability has been discovered in the package, which allows the execution of malicious code.

Vulnerability Detail

The vulnerability in selfedrandomrandom arises from the inclusion of malicious code in the package. The code was introduced in version 0 and can be traced back to the Checkmarx source. The malicious code is capable of executing spyware and information-stealing malware. This poses a significant risk to any application that utilizes the selfedrandomrandom package, as it can lead to unauthorized access to sensitive information and compromise the security of the system.

How To Fix

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

pip uninstall selfedrandomrandom

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 update the package to a secure version.

Conclusion

The selfedrandomrandom package has been found to contain malicious code, which poses a significant security risk to applications utilizing this package. It is crucial to update the package to a secure version and regularly update all dependencies to ensure the overall security of the system. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for selfedrandomrandom →

Share this vulnerability

FAQ

selfedrandomrandom is a Python package used for generating random numbers using a self-edited algorithm. It is commonly used in various Python applications.

The vulnerability allows the execution of malicious code, which can lead to the installation of spyware and information-stealing malware. This can result in unauthorized access to sensitive information and compromise the security of the system.

To fix this vulnerability, update the selfedrandomrandom package to a secure version that does not contain the malicious code. Regularly update all dependencies and packages used in the application to ensure overall security.

There is no specific workaround mentioned for this vulnerability. The recommended action is to update the package to a secure version.

How To Fix

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

pip uninstall selfedrandomrandom

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