Description
Gunicorn 25.2.0 before 27.0.0 contains a memory exhaustion vulnerability in the pure-Python ASGI HTTP/1 parser that buffers protocol lines without size limits. Unauthenticated remote attackers can send request lines, headers, chunk-size lines or trailers lacking CRLF to grow worker memory and consume CPU, causing denial of service.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Gunicorn | Gunicorn | 25.2.0 – < 27.0.0 | 27.0.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | gunicorn | No fix yet | — |
| Debian 13 | gunicorn | No fix yet | — |
| Debian 12 | gunicorn | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | gunicorn | No fix yet | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 26.04 LTS | gunicorn | 25.1.0-1ubuntu0.1~esm1 | USN-9312-1 |
| Ubuntu Pro 24.04 LTS | gunicorn | 20.1.0-6ubuntu0.1+esm1 | USN-9312-1 |
| Ubuntu Pro 22.04 LTS | gunicorn | 20.1.0-2ubuntu0.1~esm1 | USN-9312-1 |
| Ubuntu Pro 20.04 LTS | gunicorn | 20.0.4-3ubuntu0.1~esm1 | USN-9312-1 |
| Ubuntu Pro 18.04 LTS | gunicorn | 19.7.1-4ubuntu0.1~esm1 | USN-9312-1 |
| Ubuntu Pro 16.04 LTS | gunicorn | 19.4.5-1ubuntu1.1+esm1 | USN-9312-1 |
| Ubuntu Pro 14.04 LTS | gunicorn | 17.5-2ubuntu0.1~esm2 | USN-9312-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
googlesky/CVE-2026-134821 ★ 0 · Nov 23, 2026
Gunicorn <27.0.0: pure-Python ASGI parser buffers CRLF-less lines without limit and rescans the whole buffer per read — unauthenticated memory/CPU exhaustion. Verbatim find() path vs 3007d52 _find_li…
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- USN-9312-1 gunicorn vulnerabilities Ubuntu Security Notices (USN) · Dec 2, 2026
References
- https://github.com/benoitc/gunicorn/pull/3789 issue-tracking patch
- https://github.com/benoitc/gunicorn/commit/3007d5240e55190f85fff7180168d5aaa8377f30 patch
- Gunicorn 27.0.0 Release Notes release-notes
- https://github.com/benoitc/gunicorn/blob/26.2.2/gunicorn/asgi/parser.py#L744-L748 technical-description
- VulnCheck Advisory: Gunicorn 25.2.0 before 27.0.0 Memory Exhaustion via ASGI HTTP/1 Parser third-party-advisory