CVE-2024-21645: pyload-ng Log Injection Vulnerability

pyload-ng Updated 02 Oct 2025

Summary

08/01/2024
Yes i
Moderate
5.3

CVE-2024-21645: pyload Log Injection vulnerability. Affects pyload-ng versions < 0.5.0b3.dev77. Fixed in 0.5.0b3.dev77. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

pyload-ng is an open-source download manager written in Python. It allows users to easily download files from various sources. The vulnerability in pyload-ng allows unauthenticated actors to inject arbitrary messages into the logs generated by the application.

Vulnerability Detail

The vulnerability arises from the improper handling of newlines in the log entries of pyload-ng. When attempting to sign in with faulty credentials, pyload-ng generates a log entry in the form of 'Login failed for user 'USERNAME''. However, if a username containing a newline character is supplied, the newline is not properly escaped. Since newlines also act as delimiters between log entries, an attacker can exploit this to inject new log entries into the log file. This log injection can be used to forge or manipulate log files, potentially covering an attacker's tracks or implicating innocent parties.

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.dev77

This is the first release that contains the fix.

pip install --upgrade "pyload-ng==0.5.0b3.dev77"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround is to sanitize user input by properly escaping newline characters before logging them. This can be done by modifying the code responsible for logging user input.

Conclusion

The log injection vulnerability in pyload-ng can be mitigated by upgrading to the latest version or implementing the provided workaround. It is important to address this vulnerability to prevent the manipulation or forgery of log files. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for pyload-ng →

Share this vulnerability

FAQ

pyload-ng is an open-source download manager written in Python. It provides a convenient way to download files from various sources.

The vulnerability allows unauthenticated attackers to inject arbitrary log entries into the log file. This can be used to manipulate or forge log files, potentially covering an attacker's tracks or implicating innocent parties.

To fix this vulnerability, it is recommended to upgrade to pyload-ng version 0.5.0b3.dev77 or later.

If upgrading to the latest version is not immediately feasible, a temporary workaround is to sanitize user input by properly escaping newline characters before logging them.

There is a proof-of-concept exploit available that demonstrates the log injection vulnerability in pyload-ng. It allows an unauthenticated attacker to inject arbitrary log entries.

Related vulnerabilities

Recent vulnerabilities recorded for pyload-ng.

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.dev77

This is the first release that contains the fix.

pip install --upgrade "pyload-ng==0.5.0b3.dev77"

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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