Malicious Code Vulnerability in pyrogrem: Remote Control Telegram Bot

pyrogrem Updated 31 Dec 2025

Summary

31/12/2025
CRITICAL
No i
Critical
Not published

MAL-2025-192991: Malicious code in pyrogrem (PyPI). Affects pyrogrem versions 0.2. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The pyrogrem package, available on PyPI, is designed for speed testing and includes a Telegram bot that allows remote control of a computer. While it offers functionality for users looking to test their internet speed, it has been compromised to include malicious code that poses significant security risks.

Vulnerability Detail

The vulnerability originates from a malicious campaign identified as '2025-10-speedd-testing-bot'. The compromised version of pyrogrem (0.2) contains a Remote Access Trojan (RAT) that downloads and executes a remote malicious script. This allows attackers to gain unauthorized access to the user's system, potentially leading to data theft and further exploitation.

How To Fix

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

pip uninstall pyrogrem

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

As a temporary workaround, users can disable the Telegram bot functionality or restrict internet access for the pyrogrem package until a safe version is confirmed. However, the best course of action is to remove the package entirely.

Conclusion

The pyrogrem package has been identified as containing malicious code that poses serious security risks. Users are advised to uninstall the package and monitor for updates or alternatives. Utilizing tools like Vulert can help in identifying vulnerabilities in open-source software.

See every vulnerability recorded for pyrogrem →

Share this vulnerability

FAQ

Pyrogrem is a package designed for speed testing, which includes a Telegram bot for remote control functionalities.

The vulnerability allows attackers to execute remote scripts on your system, potentially leading to unauthorized access and data theft.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Immediately uninstall the vulnerable version using 'pip uninstall pyrogrem' and look for a safe alternative.

Currently, there is no patched version available for pyrogrem. Users should uninstall the package until a secure version is released.

How To Fix

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

pip uninstall pyrogrem

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