CVE-2023-0297: Code Injection in pyload-ng
Summary
CVE-2023-0297: Code Injection in pyload-ng. Affects pyload-ng versions < 0.5.0b3.dev31. Fixed in 0.5.0b3.dev31. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
pyload-ng is a Python package available on PyPI that provides a download manager for various file hosting websites. It is designed to be a lightweight and efficient tool for managing downloads. However, a code injection vulnerability has been discovered in versions prior to 0.5.0b3.dev31. This vulnerability allows an attacker to execute arbitrary code on the server hosting pyload-ng, potentially leading to remote code execution and unauthorized access to sensitive data.
Vulnerability Detail
The code injection vulnerability in pyload-ng arises from improper input validation and sanitization. An attacker can exploit this vulnerability by injecting malicious code into user-supplied input, such as URLs or filenames. When this input is processed by pyload-ng, the injected code is executed within the context of the application, enabling the attacker to execute arbitrary commands and potentially gain control over the server. This vulnerability poses a significant risk to the confidentiality, integrity, and availability of the affected system.
How To Fix
Latest published version: 0.5.0b3.dev101 as of 23 Oct 2026
pip install --upgrade "pyload-ng==0.5.0b3.dev101"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
0.5.0b3.dev31
This is the first release that contains the fix.
pip install --upgrade "pyload-ng==0.5.0b3.dev31"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can implement input validation and sanitization measures within their own code to mitigate the risk of code injection. It is crucial to thoroughly validate and sanitize any user-supplied input before processing it with pyload-ng. This can be achieved by using appropriate input validation libraries or implementing custom validation logic. Here is an example of input validation using the requests library:
import requests
url = input('Enter URL: ')
Validate and sanitize input
if not url.startswith('http://') and not url.startswith('https://'): print('Invalid URL') exit()
Process the validated input
response = requests.get(url)
Continue with pyload-ng operations
Conclusion
The code injection vulnerability in pyload-ng prior to version 0.5.0b3.dev31 poses a significant risk to the security of the affected systems. It is crucial to update to the latest version to mitigate this vulnerability. Failure to do so may result in remote code execution and unauthorized access to sensitive data. For further assistance or support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for pyload-ng →
FAQ
This vulnerability allows an attacker to execute arbitrary code on the server hosting pyload-ng, potentially leading to remote code execution and unauthorized access to sensitive data. It poses a significant risk to the confidentiality, integrity, and availability of the affected system.
No, only versions prior to 0.5.0b3.dev31 are affected. It is recommended to update to the latest version to mitigate the vulnerability.
At the time of this advisory, there are no known public exploits specifically targeting this vulnerability. However, it is crucial to apply the recommended security patch as soon as possible to prevent any potential exploitation.
Yes, this vulnerability can be exploited remotely. An attacker can inject malicious code through user-supplied input, such as URLs or filenames, and execute arbitrary commands on the server hosting pyload-ng.
Yes, the CVSS score for this vulnerability is 9.8, indicating a critical severity level.
References
Related vulnerabilities
Recent vulnerabilities recorded for pyload-ng.