Malicious Code Vulnerability in coremsft Package - Exfiltration of Host Information

coremsft Updated 05 Dec 2025

Summary

04/12/2025
CRITICAL
No i
Critical
Not published

MAL-2025-192302: Malicious code in coremsft (PyPI). Affects coremsft versions 0.1 – 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The coremsft package, available on PyPI, is designed for specific functionalities related to Microsoft technologies. However, it has been identified as containing malicious code that serves no legitimate purpose other than to exfiltrate sensitive information from the host system. This vulnerability poses a risk to users who install the package, as it can compromise their privacy and security.

Vulnerability Detail

The vulnerability originates from the coremsft package, which overrides the install command in its setup.py file to execute malicious code during installation. This code is designed to exfiltrate basic information about the host, such as the IP address and username. The implications of this vulnerability are significant, as it can lead to unauthorized access to sensitive data, making it a potential target for attackers. The package has been categorized under PROBABLY_PENTEST, indicating that while it may appear to be a penetration testing tool, it is actually harmful.

How To Fix

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

pip uninstall coremsft

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 workaround, users can avoid installing the coremsft package altogether. If it has already been installed, it is recommended to remove it using the command: 'pip uninstall coremsft'. Additionally, users can utilize tools like Vulert to monitor their applications for vulnerabilities without needing to access the code directly.

Conclusion

The coremsft package has been identified as containing malicious code that exfiltrates sensitive information from the host system. Users are advised to uninstall the package immediately and monitor for any updates or patches. Utilizing tools like Vulert can help in identifying vulnerabilities in open-source software without direct access to the code.

See every vulnerability recorded for coremsft →

Share this vulnerability

FAQ

The coremsft package is a Python package available on PyPI, intended for functionalities related to Microsoft technologies. However, it has been found to contain malicious code.

The malicious code in the coremsft package exfiltrates basic information such as the host's IP address and username.

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

If you have installed the coremsft package, you should uninstall it immediately using the command: 'pip uninstall coremsft'.

As of now, there is no patched version of the coremsft package available. It is recommended to monitor the package for any updates.

How To Fix

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

pip uninstall coremsft

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