CVE-2025-50688 Details
Description
A command injection vulnerability exists in TwistedWeb (version 14.0.0) due to improper input sanitization in the file upload functionality. An attacker can exploit this vulnerability by sending a specially crafted HTTP PUT request to upload a malicious file (e.g., a reverse shell script). Once uploaded, the attacker can trigger the execution of arbitrary commands on the target system, allowing for remote code execution. This could lead to escalation of privileges depending on the privileges of the web server process. The attack does not require physical access and can be conducted remotely, posing a significant risk to the confidentiality and integrity of the system.
A command injection vulnerability has been identified in TwistedWeb version 14.0.0. This issue arises from inadequate input sanitization in the file upload feature, allowing attackers to send specially crafted HTTP PUT requests to upload malicious files, such as reverse shell scripts. Once these files are uploaded, attackers can execute arbitrary commands on the affected system, potentially leading to remote code execution. The vulnerability could also allow privilege escalation, depending on the rights of the web server process. This attack can be carried out remotely, without physical access, posing a significant risk to the system's confidentiality and integrity.
Users are advised to update to a patched version of TwistedWeb. Additionally, web servers should be configured to disable HTTP PUT methods unless explicitly needed, prevent file uploads to web-accessible paths, and block the execution of script files such as .sh or .php.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 5, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://medium.com/@Justinsecure/chained-rce-on-twistedweb-14-0-0-via-command-injection-and-unauthenticated-put-1aa657995b4e | [email protected] | ExploitThird Party Advisory |
| https://twisted.org/documents/14.0.0/index.html | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| twistedmatrix twistedweb | 14.0.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 6, 2025 | Initial Analysis | [email protected] |
| Aug 5, 2025 | CVE Modified | CISA-ADP |
| Aug 5, 2025 | New CVE Received | [email protected] |