HTTP Request Smuggling Affecting gunicorn package, versions [,22.0.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-GUNICORN-6615672
  • published16 Apr 2024
  • disclosed16 Apr 2024
  • creditYadhu Krishna M

Introduced: 16 Apr 2024

CVE-2024-1135  (opens in a new tab)
CWE-444  (opens in a new tab)

How to fix?

Upgrade gunicorn to version 22.0.0 or higher.

Overview

gunicorn is a Python WSGI HTTP Server for UNIX

Affected versions of this package are vulnerable to HTTP Request Smuggling due to the improper validation of Transfer-Encoding headers. An attacker can bypass security restrictions and access restricted endpoints by crafting requests with conflicting Transfer-Encoding headers.

Notes:

  1. This is only exploitable if users have a network path which does not filter out invalid requests;

  2. Users are advised to block access to restricted endpoints via a firewall or other mechanism until a fix can be developed.

  3. This issue arises from the application's incorrectly processing of requests with multiple, conflicting Transfer-Encoding headers, treating them as chunked regardless of the final encoding specified.

CVSS Scores

version 3.1