{"id":"MAL-2026-20377","aliases":[],"title":"Malicious code in caspian-client (PyPI)","originalDescription":" --- _-= 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,","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://pypi.org/project/caspian-client/2.9.15/","type":"package"},{"url":"https://pypi.org/project/caspian-client/2.9.18/","type":"package"},{"url":"https://pypi.org/project/caspian-client/2.9.13/","type":"package"},{"url":"https://pypi.org/project/caspian-client/2.9.11/","type":"package"},{"url":"https://pypi.org/project/caspian-client/2.9.10/","type":"package"},{"url":"https://pypi.org/project/caspian-client/2.9.17/","type":"package"},{"url":"https://pypi.org/project/caspian-client/2.9.16/","type":"package"},{"url":"https://pypi.org/project/caspian-client/2.9.12/","type":"package"}],"sources":[{"name":"osv","at":"2026-11-23T18:48:42.350Z","url":"https://osv.dev/vulnerability/MAL-2026-20377","license":"CC-BY 4.0","firstSeenAt":"2026-11-23T18:48:42.350Z"}],"firstSeenAt":"2026-11-23T18:48:42.350Z","publishedAt":"2026-11-23T18:00:50.000Z","modifiedAt":"2026-11-23T18:30:05.094Z"}