# PYSEC-2026-579: Malicious code in cmd2func (PyPI)

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-29T20:25:09.000Z
- Modified: 2026-06-29T21:00:05.046Z
- Also known as: MAL-2026-5290

## Description

Part of the "Hades" wave of the Shai-Hulud supply-chain campaign. On 2026-06-08,
malicious phantom releases of cmd2func were published to PyPI using stolen
credentials. The package executes a bundled JavaScript payload (via the Bun
runtime) on import that harvests and exfiltrates credentials and attempts
self-propagation. This entry is a summary; behavior may not be fully
characterized here. See the linked references for detailed analysis and
indicators of compromise.

(As written by PyPA Advisory Database.)

## Affected

- cmd2func (PyPI): 0.2.2; 0.2.3

## References

- <https://inspector.pypi.io/project/cmd2func/0.2.3/packages/c4/3f/73499e767180eb8a29905f1d69a13642325c9724beabb84f425a8c622de7/cmd2func-0.2.3-py3-none-any.whl//cmd2func-setup.pth> (exploit, evidence)
- <https://www.endorlabs.com/learn/shai-hulud-hades-wave-hits-six-pypi-bioinformatics-packages> (article)
- <https://www.stepsecurity.io/blog/the-hades-campaign-pypi-packages> (article)

## Sources

- PyPA Advisory Database: [PYSEC-2026-579](https://osv.dev/vulnerability/PYSEC-2026-579), CC-BY-4.0, modified 2026-06-29

---

Page: https://cve.day/PYSEC-2026-579 · Whole record: https://cve.day/PYSEC-2026-579.json · Rebuilt by cve.day 2026-11-25T22:56:40.838Z
