SNYK-PYTHON-TWISTED-2326700
## Overview [Twisted](https://pypi.org/project/Twisted/) is an event-based network programming and multi-protocol integration framework. Affected versions of this package are vulnerable to Denial of Service (DoS) by accepting an infinite amount of data for the peer's SSH version identifier. it is possible to be exploited via SSH transport due to a lack of validation for user data. The attack is as simple as `nc -rv localhost 22 < /dev/zero`. ## Details Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users. Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime. One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines. When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries. Two common types of DoS vulnerabilities: * High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](https://security.snyk.io/vuln/SNYK-JAVA-COMMONSFILEUPLOAD-30082). * Crash - An attacker sending crafted requests that could cause the system to crash. For Example, [npm `ws` package](https://snyk.io/vuln/npm:ws:20171108) ## Remediation Upgrade `Twisted` to version 22.2.0 or higher. ## References - [GitHub Commit](https://github.com/twisted/twisted/commit/98387b39e9f0b21462f6abc7a1325dc370fcdeb1) - [PoC](https://twistedmatrix.com/trac/ticket/10284#ticket)
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| 22.1.0, 0 |
Timeline
- Dec 26, 2021 CVE Updated
- Mar 7, 2022 CVE Published
References
- https://security.snyk.io/vuln/SNYK-PYTHON-TWISTED-2326700 advisory
- https://learn.snyk.io/lesson/redos/ technical
- https://pypi.org/project/Twisted/ vendor
- https://snyk.io/vuln/npm:ws:20171108 technical
- https://github.com/twisted/twisted/commit/98387b39e9f0b21462f6abc7a1325dc370fcdeb1 patch
- https://twistedmatrix.com/trac/ticket/10284#ticket technical