Malicious dropper in mistralai 2.4.6 PyPI package
GHSA-wx9m-wx4f-4cmg · published 2026-05-18
- Severity
- Critical
- CVSS score
- 9.6
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- No fix yet
The mistralai PyPI package version 2.4.6 contains a malicious dropper that executes on import on Linux. No v2.4.6 tag, commit, or release workflow run exists in this repository, the legitimate latest version before the upload was 2.4.5, and the upload bypassed this repository's normal release pipeline (which uses PyPI Trusted Publishing). The mistralai PyPI project is currently quarantined.
No fixed release is listed yet for mistralai. Follow the source advisory for updates, and until one ships:
General guidance from ShieldPi, not a vendor fix
- Compromised release. Move to a release the advisory names as clean, and rotate every credential, token and key the environment that ran the affected release could read.
Any Linux environment that imported mistralai==2.4.6 should be treated as potentially compromised pending forensic review. Rotate every credential reachable from the importing process and review host and cloud audit logs for activity from approximately 2026-05-12 00:05 UTC onward (per the timing reported in #523). 1. Pin mistralai to 2.4.5 or earlier. While the PyPI project is quarantined, install from this repository at a known-good tag, e.g. . 2. On affected Linux hosts, rotate every credential reachable from the importing process and review host and cloud audit logs.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| mistralai | PyPI | = 2.4.6 | No fix yet |
- CriticalMalicious code in guardrails-ai 0.10.1 (supply chain compromise)guardrails-ai
- CriticalCompromise of PyTorch Lightning PyPi Package Versionspytorch-lightning, pytorch-lightning
- CriticalTwo LiteLLM versions published containing credential harvesting malwarelitellm
- CriticalMalicious code in mistralai (PyPI)mistralai
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.