pypi · Malicious package advisory
Malwarecpan
GHSA-3x98-r3hg-rppg
Malicious code in cpan (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.0.2` ## Source: kam193 (e70433969aea3c8283f99098b25b8a598f427b5fd451e9bfd5bc46098704bfb2) Installing the package starts a revshell and download and starts a remote script (depending on version, different malicious functionality). The name seems to imitate CPAN.org --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2025-06-cpan Reasons (based on the campaign): - The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine. - impersonation - Downloads and executes a remote malicious script. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/cpan/MAL-2025-6483.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/cpan - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/cpan/MAL-2025-6483.json - https://github.com/advisories/GHSA-3x98-r3hg-rppg
Compromised versions (1)
- = 0.0.2
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.