Intel

AIKIDO-2024-10216

gunicorn is vulnerable to Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')

Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 12, 2024

50

Medium Risk

This Affects:

pythongunicorn
2.0.1 - 22.0.0
Fixed in 23.0.0
Are you affected? Scan for Free

TL;DR

Affected versions of the package are vulnerable to HTTP request splitting. Gunicorn accepts invalid and dangerous characters, such as CR, LF, and NUL, in header fields. RFC9110 permits rejecting or replacing these characters with spaces. The patched version introduces a config option --tolerate-dangerous-framing. When set, Gunicorn passes the field value unchanged. When unset (default), Gunicorn rejects the request.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

gunicorn is vulnerable to Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') in versions 2.0.1 - 22.0.0.

How to fix this

Upgrade the gunicorn library to the patch version.