USN-9312-1: Gunicorn vulnerabilities
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/gunicornto a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/python3-gunicornto a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/gunicorn3to a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/python-gunicornto a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/gunicornto a version that resolves this vulnerability.Fixed in 19.4.5-1ubuntu1.1+esm1 - Upgrade
Upgrade
ubuntu/gunicorn3to a version that resolves this vulnerability.Fixed in 19.4.5-1ubuntu1.1+esm1 - Upgrade
Upgrade
ubuntu/python-gunicornto a version that resolves this vulnerability.Fixed in 19.4.5-1ubuntu1.1+esm1 - Upgrade
Upgrade
ubuntu/python3-gunicornto a version that resolves this vulnerability.Fixed in 19.4.5-1ubuntu1.1+esm1 - Upgrade
Upgrade
ubuntu/gunicornto a version that resolves this vulnerability.Fixed in 17.5-2ubuntu0.1~esm2 - Upgrade
Upgrade
ubuntu/gunicornto a version that resolves this vulnerability.Fixed in 19.7.1-4ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/gunicornto a version that resolves this vulnerability.Fixed in 20.0.4-3ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/gunicornto a version that resolves this vulnerability.Fixed in 20.1.0-2ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/gunicornto a version that resolves this vulnerability.Fixed in 20.1.0-6ubuntu0.1+esm1 - Upgrade
Upgrade
ubuntu/gunicornto a version that resolves this vulnerability.Fixed in 25.1.0-1ubuntu0.1~esm1
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
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.
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.
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.