Skip to content

← Actionable
Critical, CVSS 9.6amended

Malicious dropper in mistralai 2.4.6 PyPI package

GHSA-wx9m-wx4f-4cmg

What to do

Vendor response not established. Follow the primary source's mitigation guidance and check back for a fix.

This page has no inventory attached, so it cannot say whether you are affected. A vendor fix is not proof that your deployment is fixed.

Affected packages

  • PyPI mistralai

    Affected
    >= 2.4.6, <= 2.4.6
    Fixed in
    no fixed version recorded

Sources

Severity and exploitation
Exploitation
No confirmed exploitation recorded. Patch Next marks exploitation only from CISA KEV.
CVSS
9.6 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
EPSS
No dated EPSS signal available.
Source description

As published by the source; long descriptions are shortened.

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. Affected - mistralai==2.4.6 on PyPI. Versions 2.4.5 and earlier are not known to be affected. What the malicious code does A function named runbackgroundtask was added to src/mistralai/client/init.py and called at module-load time. Reproduced from the public report in #523: On Linux only, the function: 1. Returns early if MISTRALINIT is already set in the environment. 2. Sets MISTRALINIT=1 so the spawned child does not re-trigger the dropper if it imports mistralai. 3. Downloads https://83.142.209.194/transformers.pyz to /tmp/transformers.pyz with curl -k -L -s (TLS verification disabled, 15 s…

Dates and revisions
Published by the source
Last modified by the source
Source last checked
  1. Revision 3 · amended ·

    Amended from ghsa record GHSA-wx9m-wx4f-4cmg

  2. Revision 2 · amended ·

    Amended from osv record GHSA-wx9m-wx4f-4cmg

  3. Revision 1 · created ·

    Published from ghsa record GHSA-wx9m-wx4f-4cmg

Agent brief

Preview the exact text before you copy it. Commands are read-only suggestions; review them before running anything.

# Patch Next advisory brief: GHSA-wx9m-wx4f-4cmg

Advisory: Malicious dropper in mistralai 2.4.6 PyPI package
IDs: GHSA-wx9m-wx4f-4cmg
Record: https://patchnext.com/advisories/ghsa-wx9m-wx4f-4cmg (revision 3, source checked 26 Oct 2026, 13:41 UTC)
Inventory: none attached. This brief comes from a public page and does not say whether any deployment is affected.
Severity: Critical (CVSS 9.6)
Exploitation: no confirmed exploitation recorded. Patch Next confirms exploitation only from CISA KEV.
Vendor response: Vendor response not established. A vendor fix does not mean a deployment is fixed.

## Affected components
- PyPI mistralai: affected >= 2.4.6, <= 2.4.6

## Suggested inspection (read-only)
- `python -m pip show mistralai`: prints the installed version. Run with the environment that serves production active.

## Supported action
No complete vendor fix is recorded. Follow the primary source's mitigation guidance and check this record again before closing anything.

## Required regression checks
- Run the test suite and a production build.
- Exercise the features that depend on mistralai.
- Repeat the inspection and confirm that only fixed versions remain installed.

## Rollback considerations
- Keep the previous lockfile and deployment artifact. Rolling back reinstates the vulnerable version, so apply any documented mitigation while you fix forward.

## Unresolved questions
- Which deployments run an affected version?
- Exploitation status can change. Check again before lowering the priority.
- Mark the work resolved only after the fixed version is verified in production.

## Sources
- Verified: https://github.com/advisories/GHSA-wx9m-wx4f-4cmg (GitHub-reviewed advisory GHSA-wx9m-wx4f-4cmg lists affected ranges: PyPI mistralai >=2.4.6 <=2.4.6)
- Verified: https://osv.dev/vulnerability/GHSA-wx9m-wx4f-4cmg (OSV record GHSA-wx9m-wx4f-4cmg lists affected ranges: PyPI mistralai >=2.4.6 <=2.4.6)

Commands are suggestions: review each one before running it.

Loading voting…