Advisory

GHSA-w3h3-4rj7-4ph4

Also known as: CVE-2024-1135, PYSEC-2026-1434

Summary

Request smuggling leading to endpoint restriction bypass in Gunicorn

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-04-16 00:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

gunicorn

PyPI · All systems

Affected

  • introduced 0, fixed 22.0.0 (ecosystem)

Fixed versions

22.0.0

Fix

  • Fixed version 22.0.0
    pip install --upgrade gunicorn==22.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences