urwid is vulnerable to Denial of Service (DoS)
53
CVE Score
Medium
Denial of Service (DoS)
The handle_short_request() function in the urwid web display backend encodes POST request bodies to ASCII before writing them to a named pipe. A request body containing any non-ASCII byte raises an unhandled UnicodeEncodeError, crashing the CGI process with an HTTP 500, and a file descriptor opened earlier in the same function leaks because it is not closed on the error path. A related polling update path also fails to handle non-UTF-8 socket output, raising an unhandled UnicodeDecodeError. The fix adds exception handling and correct encoding so malformed input no longer crashes the handler or leaks descriptors.
Upgrade the urwid library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and use the urwid web display (CGI) interface.
0.8.0 - 4.0.6
Fixed in 4.0.7urwid is vulnerable to Denial of Service (DoS) in versions 0.8.0 - 4.0.6.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.