Malicious code in python-aliyun-sdk-ecs (PyPI)

python-aliyun-sdk-ecs Updated 02 Oct 2025

Summary

10/08/2023
CRITICAL
No i
Critical
Not published

MAL-2023-8365: Malicious code in python-aliyun-sdk-ecs (PyPI). Affected versions are not published. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The python-aliyun-sdk-ecs package is an open-source Python library available on PyPI. It is designed to provide developers with a convenient way to interact with the Alibaba Cloud Elastic Compute Service (ECS) API. The package allows users to manage and control their ECS instances, including creating, starting, stopping, and terminating instances. It is widely used by developers who utilize Alibaba Cloud services in their applications.

Vulnerability Detail

A malicious code injection vulnerability has been discovered in the python-aliyun-sdk-ecs package. The vulnerability was introduced in version 0 and affects all subsequent versions. Attackers have published malicious packages to PyPI, targeting users of Alibaba, AWS, and Telegram. The malicious code is hidden within strategically chosen functions and only triggers when these functions are called. This approach helps the packages evade detection as the malicious code does not automatically run on install or import. The specific impact and ramifications of the malicious code are not provided in the vulnerability details.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall python-aliyun-sdk-ecs

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround mentioned in the vulnerability details. However, as a general best practice, users can consider implementing security measures such as using virtual environments, verifying package integrity, and regularly monitoring for any suspicious activity or unexpected behavior in their applications.

Conclusion

The python-aliyun-sdk-ecs package has been found to contain a malicious code injection vulnerability. Users of the package are advised to update to a patched version as soon as it becomes available. Regularly checking for updates and implementing general security measures can help mitigate the risk of exposure to such vulnerabilities. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for python-aliyun-sdk-ecs →

Share this vulnerability

FAQ

The python-aliyun-sdk-ecs package is a Python library available on PyPI that provides developers with a convenient way to interact with the Alibaba Cloud Elastic Compute Service (ECS) API.

The malicious code is hidden within certain functions of the python-aliyun-sdk-ecs package. It only triggers when these functions are called, making it difficult to detect. The specific impact and ramifications of the malicious code are not provided in the vulnerability details.

Users of the python-aliyun-sdk-ecs package, specifically those who have installed or imported the affected versions, are potentially affected by this vulnerability. Users of Alibaba, AWS, and Telegram services may be targeted by the malicious packages.

To fix this vulnerability, it is recommended to update the python-aliyun-sdk-ecs package to a version that is not affected by the malicious code. Regularly check for updates and apply them promptly to ensure your application is not exposed to the vulnerability.

There is no specific workaround mentioned in the vulnerability details. However, users can consider implementing general security measures such as using virtual environments, verifying package integrity, and monitoring for any suspicious activity in their applications.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall python-aliyun-sdk-ecs

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback