On Mon, Nov 23, 2026 at 09:05:59PM +0100, Salvatore Bonaccorso wrote:
CVE-2026-134820[0]:
| Gunicorn 25.2.0 before 27.0.0 contains an HTTP request smuggling
| vulnerability in the pure-Python ASGI parser that allows
| unauthenticated remote attackers to desynchronize request framing by
| sending malformed framing headers. Attackers can send whitespace-
| padded Transfer-Encoding or Content-Length headers, signed Content-
| Length values, or invalid chunk terminators to smuggle requests past
| front-end proxies to the ASGI application.


CVE-2026-134821[1]:
| 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.

I started looking at upgrading to 27.0.1, but ran into a rabbit-hole. The new version of gunicorn depends on a new version of gunicorn_h1c, but that version introduces some further changes to its vendored copy of picohttpparser that affect strictness of HTTP request parsing (those may even be part of fixing these CVEs, although I'm not certain). However, the Debian python-gunicorn-h1c package is patched to avoid the vendoring and use the system package instead, and I don't want to unilaterally undo that since it generally seems like something we want to keep.

I filed https://github.com/h2o/picohttpparser/issues/102 to see if it might be possible to include gunicorn_h1c's patch in picohttpparser, since I couldn't find any trace of it having been proposed there.

--
Colin Watson (he/him)                              [[email protected]]

Reply via email to