pypi · Malicious package advisory
Malwarecffi-curl
GHSA-7xf2-f6hm-pv6j
Malicious code in cffi-curl (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.13.0` ## Source: kam193 (1bdc2d55f462ed9009995743e5bc50ed10641cffa24d5b16606e3a479fffae10) Malicious clone of a legitimate package "curl-cffi". When importing the module, it runs an obfuscated PowerShell command --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2025-08-cffi-curl Reasons (based on the campaign): - typosquatting - obfuscation - malware - clones-real-package --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/cffi-curl/MAL-2025-47752.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/cffi-curl - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/cffi-curl/MAL-2025-47752.json - https://github.com/advisories/GHSA-7xf2-f6hm-pv6j
Compromised versions (1)
- = 0.13.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.