Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. gunicorn
  4. ›
  5. CVE-2024-1135

CVE-2024-1135: Request smuggling leading to endpoint restriction bypass in Gunicorn

April 16, 2024 (updated December 20, 2024)

Gunicorn fails to properly validate Transfer-Encoding headers, leading to HTTP Request Smuggling (HRS) vulnerabilities. By crafting requests with conflicting Transfer-Encoding headers, attackers can bypass security restrictions and access restricted endpoints. This issue is due to Gunicorn’s handling of Transfer-Encoding headers, where it incorrectly processes requests with multiple, conflicting Transfer-Encoding headers, treating them as chunked regardless of the final encoding specified. This vulnerability has been shown to allow access to endpoints restricted by gunicorn. This issue has been addressed in version 22.0.0.

To be affected users must have a network path which does not filter out invalid requests. These users are advised to block access to restricted endpoints via a firewall or other mechanism if they are unable to update.

References

  • github.com/advisories/GHSA-w3h3-4rj7-4ph4
  • github.com/benoitc/gunicorn
  • github.com/benoitc/gunicorn/commit/ac29c9b0a758d21f1e0fb3b3457239e523fa9f1d
  • github.com/benoitc/gunicorn/releases/tag/22.0.0
  • huntr.com/bounties/22158e34-cfd5-41ad-97e0-a780773d96c1
  • lists.debian.org/debian-lts-announce/2024/06/msg00027.html
  • lists.debian.org/debian-lts-announce/2024/12/msg00018.html
  • nvd.nist.gov/vuln/detail/CVE-2024-1135

Code Behaviors & Features

Detect and mitigate CVE-2024-1135 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 22.0.0

Fixed versions

  • 22.0.0

Solution

Upgrade to version 22.0.0 or above.

Impact 7.5 HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Source file

pypi/gunicorn/CVE-2024-1135.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:53 +0000.