VYPR

pypi · Malicious package advisory

Malware

memlib

GHSA-5hf4-2wfr-24wj

Malicious code in memlib (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 2.0.0`

## Source: kam193 (a0d0e362d3ea9b768078a9e47f80c667acef799c7099f8044e74fd1738fdedb4)
Installing the package triggers a code that looks like downloading a picture, but in fact downloads and starts an executable with malware. Note that file supplied from the URL differs depending on the presence of the special header


---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.


Campaign: 2025-07-memlib


Reasons (based on the campaign):


 - The package overrides the install command in setup.py to execute malicious code during installation.


 - Downloads and executes a remote executable.


 - malware

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/memlib/MAL-2025-6547.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/memlib
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/memlib/MAL-2025-6547.json
- https://www.virustotal.com/gui/file/0fc1e062c521184f7e0c9f23dfdeb5431414e35cb55886e87c5ff5ec92ff4603
- https://github.com/advisories/GHSA-5hf4-2wfr-24wj

Compromised versions (1)

  • = 2.0.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.