MAL-2026-20377
Malicious code in caspian-client (PyPI)
- CVSS
- —
- EPSS
- —
- Published
- 2026-11-23
- Age
- 6d old
- Modified
- 2026-11-23
- Product
- caspian-client
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (0f39350a4bccbbf4d02120154b9bece376075768e87e32a3f3536c4dd9503d4b) caspian_client/__init__.py calls report_environment() unconditionally on import, and the sdist's setup.py plus the custom PEP 517 backend.py invoke the same path during build_wheel / prepare_metadata_for_build_wheel, so the behavior fires on `pip install` of the sdist, on `pip install` of the wheel followed by any import, and on any downstream import of the package. _sentry.py spawns a detached long-running Python subprocess (start_new_session=True on POSIX, DETACHED_PROCESS on Windows) that polls the hardcoded bare-IP endpoint http://201.79.44.36:8765/poll over plaintext HTTP and either launches subprocess.Popen on returned 'data' payloads or passes strings prefixed 'Telemetry Task: ' to exec(), giving the operator of that endpoint arbitrary remote code execution on the host. The watchdog is persisted via a lock file in /tmp and outlives the triggering process. In parallel, _common_fields() enumerates the entire os.environ and packs every KEY=VALUE pair into contexts.telemetry.diagnostic_debug along with hostname, process tree,
Sources
- OSV · first seen 6d ago · CC-BY 4.0
References
- https://pypi.org/project/caspian-client/2.9.15/ package
- https://pypi.org/project/caspian-client/2.9.18/ package
- https://pypi.org/project/caspian-client/2.9.13/ package
- https://pypi.org/project/caspian-client/2.9.11/ package
- https://pypi.org/project/caspian-client/2.9.10/ package
- https://pypi.org/project/caspian-client/2.9.17/ package
- https://pypi.org/project/caspian-client/2.9.16/ package
- https://pypi.org/project/caspian-client/2.9.12/ package