USN-9312-1: Gunicorn vulnerabilities

Published Dec 1, 2026
·
Updated

It was discovered that Gunicorn did not properly handle requests with multiple conflicting Transfer-Encoding headers. A remote attacker could possibly use this issue to perform HTTP request smuggling attacks. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, and Ubuntu 24.04 LTS. (CVE-2024-1135)

It was discovered that Gunicorn did not properly validate the value of the Transfer-Encoding header, falling back to the Content-Length header instead. A remote attacker could possibly use this issue to perform HTTP request smuggling attacks. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, and Ubuntu 24.04 LTS. (CVE-2024-6827)

It was discovered that the ASGI HTTP parser in Gunicorn did not limit the size of certain protocol lines. A remote attacker could possibly use this issue to cause Gunicorn to use excessive resources, leading to a denial of service. This issue only affected Ubuntu 26.04 LTS. (CVE-2026-134821)

Affected Software

41 affected componentsFixes available
All of the following
ubuntu/gunicorn<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=26.04
All of the following
ubuntu/python3-gunicorn<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=26.04
All of the following
ubuntu/gunicorn<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=24.04
All of the following
ubuntu/python3-gunicorn<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=24.04
All of the following
ubuntu/gunicorn<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=22.04
All of the following
ubuntu/python3-gunicorn<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=22.04
All of the following
ubuntu/gunicorn<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=20.04
All of the following
ubuntu/python3-gunicorn<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=20.04
All of the following
ubuntu/gunicorn<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/gunicorn3<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python-gunicorn<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python3-gunicorn<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/gunicorn<19.4.5-1ubuntu1.1+esm1
19.4.5-1ubuntu1.1+esm1
Ubuntu Ubuntu=16.04
All of the following
ubuntu/gunicorn3<19.4.5-1ubuntu1.1+esm1
19.4.5-1ubuntu1.1+esm1
Ubuntu Ubuntu=16.04
All of the following
ubuntu/python-gunicorn<19.4.5-1ubuntu1.1+esm1
19.4.5-1ubuntu1.1+esm1
Ubuntu Ubuntu=16.04
All of the following
ubuntu/python3-gunicorn<19.4.5-1ubuntu1.1+esm1
19.4.5-1ubuntu1.1+esm1
Ubuntu Ubuntu=16.04
All of the following
ubuntu/gunicorn<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=14.04
ubuntu/gunicorn<17.5-2ubuntu0.1~esm2
17.5-2ubuntu0.1~esm2
ubuntu/gunicorn<19.4.5-1ubuntu1.1+esm1
19.4.5-1ubuntu1.1+esm1
ubuntu/gunicorn<19.7.1-4ubuntu0.1~esm1
19.7.1-4ubuntu0.1~esm1
ubuntu/gunicorn<20.0.4-3ubuntu0.1~esm1
20.0.4-3ubuntu0.1~esm1
ubuntu/gunicorn<20.1.0-2ubuntu0.1~esm1
20.1.0-2ubuntu0.1~esm1
ubuntu/gunicorn<20.1.0-6ubuntu0.1+esm1
20.1.0-6ubuntu0.1+esm1
ubuntu/gunicorn<25.1.0-1ubuntu0.1~esm1
25.1.0-1ubuntu0.1~esm1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in Ubuntu Pro
  2. Upgrade

    Upgrade ubuntu/python3-gunicorn to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  3. Upgrade

    Upgrade ubuntu/gunicorn3 to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  4. Upgrade

    Upgrade ubuntu/python-gunicorn to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  5. Upgrade

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

    Fixed in 19.4.5-1ubuntu1.1+esm1
  6. Upgrade

    Upgrade ubuntu/gunicorn3 to a version that resolves this vulnerability.

    Fixed in 19.4.5-1ubuntu1.1+esm1
  7. Upgrade

    Upgrade ubuntu/python-gunicorn to a version that resolves this vulnerability.

    Fixed in 19.4.5-1ubuntu1.1+esm1
  8. Upgrade

    Upgrade ubuntu/python3-gunicorn to a version that resolves this vulnerability.

    Fixed in 19.4.5-1ubuntu1.1+esm1
  9. Upgrade

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

    Fixed in 17.5-2ubuntu0.1~esm2
  10. Upgrade

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

    Fixed in 19.7.1-4ubuntu0.1~esm1
  11. Upgrade

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

    Fixed in 20.0.4-3ubuntu0.1~esm1
  12. Upgrade

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

    Fixed in 20.1.0-2ubuntu0.1~esm1
  13. Upgrade

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

    Fixed in 20.1.0-6ubuntu0.1+esm1
  14. Upgrade

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

    Fixed in 25.1.0-1ubuntu0.1~esm1

Event History

Dec 1, 2026
Advisory Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
DescriptionAffected Software
Advisory Published
via OSV·05:18 PM
Data Sourced
via OSV·05:18 PM
DescriptionAffected Software

Frequently Asked Questions

1

Which Ubuntu releases are affected by each issue?

The two HTTP request-smuggling issues, CVE-2024-1135 and CVE-2024-6827, affect Ubuntu 14.04 LTS, 16.04 LTS, 18.04 LTS, 20.04 LTS, 22.04 LTS, and 24.04 LTS. The ASGI parser denial-of-service issue, CVE-2026-134821, affects Ubuntu 26.04 LTS.

2

What does an attacker need to do to exploit these issues?

The request-smuggling issues can be exploited remotely by sending requests with conflicting Transfer-Encoding headers or an improperly validated Transfer-Encoding value. The denial-of-service issue can be exploited remotely against Gunicorn's ASGI HTTP parser using oversized protocol lines.

3

What operational impact should be investigated?

For the earlier supported releases, investigate HTTP request-smuggling exposure involving Transfer-Encoding and Content-Length handling. For Ubuntu 26.04 LTS, investigate whether the ASGI HTTP parser can be driven to excessive resource consumption, resulting in denial of service.

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