VYPR

pypi · Malicious package advisory

Malware

vtk-osmesa

GHSA-pg8h-4x4c-3fr8

Malicious code in vtk-osmesa (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 900.548.735`

## Source: kam193 (910e787804512eabe1c118f5347fed9f57ca936717e18a80d26622108d75399e)
During the installation, sensitive information are exfiltrated (incl. env variables)


---

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


Campaign: 2025-07-vtk-osmesa


Reasons (based on the campaign):


 - exfiltration-env-variables


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


 - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.

## Source: ossf-package-analysis (c7551fe96e5c82f2d015f2192ef59cb289a105d8549b9d18285d3fd33e7f1bf4)
The OpenSSF Package Analysis project identified 'vtk-osmesa' @ 900.548.735 (pypi) as malicious.

It is considered malicious because:

- The package communicates with a domain associated with malicious activity.

- The package executes one or more commands associated with malicious behavior.

---

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

**References:**
- https://bad-packages.kam193.eu/pypi/package/vtk-osmesa
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/vtk-osmesa/MAL-2025-5847.json
- https://github.com/advisories/GHSA-pg8h-4x4c-3fr8

Compromised versions (1)

  • = 900.548.735

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.