cosmos-cuda (PyPI) · Malicious Code
Affects cosmos-cudaSource GCVE Database
Malicious package : remove cosmos-cuda and rotate any secrets on hosts that installed it.
Data as of 15 Jul 2026, 12:56 UTC
Malicious package
Published to PyPI · OSV MAL-2026-10617
What to do
Remove cosmos-cuda from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIcosmos-cuda | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The cosmos-cuda package on PyPI, specifically versions 9999.0.0 and 9999.0.1, contains malicious code that executes during installation and import. It collects the installer's hostname, username, and working directory, then exfiltrates this information to a hardcoded external server. The package uses a high version number to override legitimate internal packages, forcing execution of malicious setup.py code. This behavior leads to arbitrary code execution and data exfiltration on affected systems.