UTC
Critical

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
What it is

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.

What to do

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.

Affected
PackageRegistryAffectedFixed in
mistralaiPyPI= 2.4.6No fix yet
Also in mistralai
  1. 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.

Sources: GitHub Advisory Database, reviewed and malware advisories (CC BY 4.0, https://github.com/advisories); advisories published by Cursor (https://github.com/cursor/cursor/security/advisories); advisories published by OpenClaw (https://github.com/openclaw/openclaw/security/advisories); advisories published by vLLM (https://github.com/vllm-project/vllm/security/advisories); advisories published by Open WebUI (https://github.com/open-webui/open-webui/security/advisories); advisories published by n8n (https://github.com/n8n-io/n8n/security/advisories); advisories published by Flowise (https://github.com/FlowiseAI/Flowise/security/advisories); advisories published by Langflow (https://github.com/langflow-ai/langflow/security/advisories); advisories published by the MCP Python SDK project (https://github.com/modelcontextprotocol/python-sdk/security/advisories); advisories published by MLflow (https://github.com/mlflow/mlflow/security/advisories); CISA Known Exploited Vulnerabilities catalog (CC0). Data as of 2026-11-22. ShieldMap describes how each problem works and how to fix it; it does not publish exploit code. Report a correction to [email protected].