CVE-2024-6827: Gunicorn HTTP Request/Response Smuggling vulnerability
Gunicorn version 21.2.0 does not properly validate the value of the 'Transfer-Encoding' header as specified in the RFC standards, which leads to the default fallback method of 'Content-Length,' making it vulnerable to TE.CL request smuggling.
Published Mar 20, 2025 · Updated Sep 29, 2025
Affected packages
gunicorn
- Ecosystem
- PyPI
- Affected
- < 22.0.0
- Fixed in
- 22.0.0
- Check
pip show gunicorn
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Gunicorn version 21.2.0 does not properly validate the value of the 'Transfer-Encoding' header as specified in the RFC standards, which leads to the default fallback method of 'Content-Length,' making it vulnerable to TE.CL request smuggling. This vulnerability can lead to cache poisoning, data exposure, session manipulation, SSRF, XSS, DoS, data integrity compromise, security bypass, information leakage, and business logic abuse.
Credited to xzpjerry.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-6827
- https://huntr.com/bounties/1b4f8f38-39da-44b6-9f98-f618639d0dd7
- https://github.com/benoitc/gunicorn/issues/3278
- https://github.com/benoitc/gunicorn/issues/3087
- https://github.com/benoitc/gunicorn/pull/3113
- https://github.com/benoitc/gunicorn/releases/tag/22.0.0
- https://github.com/advisories/GHSA-hc5x-x2vx-497g
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
