CVE-2024-1135: HTTP Request Smuggling in benoitc/gunicorn

Published Apr 16, 2024
·
Updated

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 allows for a range of attacks including cache poisoning, session manipulation, and data exposure.

Other sources

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.

GitHub

Affected Software

2 affected componentsFixes available
pip/gunicorn<22.0.0
22.0.0
redhat/gunicorn<22.0.0
22.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/gunicorn to a version that resolves this vulnerability.

    Fixed in 22.0.0
  2. Upgrade

    Upgrade redhat/gunicorn to a version that resolves this vulnerability.

    Fixed in 22.0.0
  3. Upgrade

    Upgrade benoitc/gunicorn to a version that resolves this vulnerability.

    Fixed in 22.0.0
  4. Compensating control

    If unable to update, block access to restricted endpoints via a firewall or other network mechanism, since affected users must have a network path that does not filter out invalid requests.

Event History

Apr 16, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:15 AM
DescriptionSeverityWeakness
Advisory Published
via GitHub·12:30 AM
Data Sourced
via Red Hat·12:32 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-1135?

CVE-2024-1135 is classified as a high-severity vulnerability due to the potential for HTTP Request Smuggling and unauthorized access.

2

How do I fix CVE-2024-1135?

To fix CVE-2024-1135, upgrade to Gunicorn version 22.0.0 or later.

3

What vulnerabilities does CVE-2024-1135 expose?

CVE-2024-1135 exposes systems to HTTP Request Smuggling attacks that can bypass security controls.

4

Which versions of Gunicorn are affected by CVE-2024-1135?

Gunicorn versions prior to 22.0.0 are affected by CVE-2024-1135.

5

Who is affected by CVE-2024-1135?

Any organization using affected versions of Gunicorn in their applications may be vulnerable to CVE-2024-1135.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203