Skip to content
CriticalVulnerabilityLLM-specific

GHSA-wx9m-wx4f-4cmg: Malicious dropper in mistralai 2.4.6 PyPI package

Published
Record updated
View JSON
Affected
  • mistralai = 2.4.6
Fixed in
No fixed version was stated when the source was last read.

Summary

The mistralai PyPI package version 2.4.6 contains a malicious dropper that runs on import on Linux. The code was added to src/mistralai/client/__init__.py and was not produced by the project's normal release pipeline, which uses PyPI Trusted Publishing. Versions 2.4.5 and earlier are not known to be affected.

Mitigation

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. git+https://github.com/mistralai/client-python.git@v2.4.5. On affected Linux hosts, rotate every credential reachable from the importing process and