Skip to main content

Gunicorn CVE-2026-134821

| EUVDEUVD-2026-132842 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-11-22 VulnCheck GHSA-m589-rp9j-v484
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach Gunicorn ASGI worker over network
  2. Delivery
    Send protocol line lacking CRLF terminator
  3. Exploit
    Parser buffers bytes without size limit
  4. Execution
    Worker memory and CPU exhausted
  5. Impact
    Denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires Gunicorn 25.2.0 through 26.2.2 configured to serve an ASGI application through the pure-Python ASGI HTTP/1 parser; WSGI and HTTP/2 paths and the C parser already enforced fallback line bounds and are not affected. The attacker needs only network reachability to the worker and no authentication (PR:N) or user interaction (UI:N), sending request lines, headers, chunk-size lines, or trailers that omit the CRLF terminator. LIMITING FACTORS: the deployment must actually use the ASGI worker mode (not the default WSGI path), and a fronting proxy that enforces its own request-line and header size limits or rejects malformed/unterminated lines would blunt the attack before it reaches the worker.

Impact

Signals are largely consistent and point to a genuine but bounded availability risk. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a remote, unauthenticated, low-complexity attack with no user interaction, and impact is confined to availability (VA:H; VC/VI = N) - this is a pure denial-of-service issue, not a code-execution or data-exposure flaw, so the 8.7 score reflects easy reachability rather than severe impact. The patch diff (PR #3789) confirms the mechanism: the pure-Python ASGI HTTP/1 parser called buffer.find(b'\r\n') with no size bound, so an unterminated line grows worker memory and CPU indefinitely until bounds are applied. No EPSS score, no CISA KEV listing, and no public exploit are present in the input, so there is no evidence of active exploitation; the vuln.today 'this_week' decision label signals prompt but non-emergency remediation. A key scoping caveat: the flaw is specific to the ASGI worker path - the WSGI and C parsers already enforced fallback bounds - so real-world exposure is limited to deployments actually serving an ASGI app through Gunicorn, which should be factored in beyond the raw CVSS number.

Exploit ScenarioDerived

An unauthenticated remote attacker opens a connection to a Gunicorn worker serving an ASGI application over HTTP/1 and sends a request line, header, chunk-size line, or trailer that never includes a CRLF terminator. The pure-Python ASGI parser buffers the incoming bytes without any size limit, growing worker memory and consuming CPU until the worker is exhausted, denying service to legitimate clients. No public exploit code is identified; the mechanism is confirmed by the vendor patch diff but no weaponized PoC is referenced.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 22, 2026

Gunicorn 25.2.0 through 26.2.2 can be driven into memory exhaustion by unauthenticated remote attackers when the server is running an ASGI application on the pure-Python HTTP/1 parser. Sending a request line, header, chunk-size line, or trailer that never terminates with CRLF causes the worker to keep buffering the line indefinitely while burning CPU, degrading or exhausting that worker and denying service. Exploitation is confirmed to require ASGI worker mode rather than the default WSGI path, and WSGI, HTTP/2, and the C parser already enforced fallback line bounds and are not affected; no public exploit code was identified at time of analysis, though a vendor fix is available and prioritization guidance places remediation in the current week.

RemediationAI

Vendor-released patch: upgrade to Gunicorn 27.0.0, the release that incorporates the fix from pull request https://github.com/benoitc/gunicorn/pull/3789 and commit 3007d5240e55190f85fff7180168d5aaa8377f30, which bound request-line, header, chunk-size, and trailer buffering and count trailers against limit_request_fields. Because the vendor fix is a single tagged release covering the whole 25.2.0-to-26.x range, plan the upgrade this week per the current priority label rather than waiting on a maintenance window. If the upgrade cannot be applied immediately, the practical compensating control is to place a reverse proxy or load balancer in front of the ASGI workers that enforces its own request-line and header size limits, rejects malformed or unterminated lines, and caps trailer counts; the trade-off is that proxy limits must be tuned below Gunicorn's own settings or legitimate large-header clients will be rejected before the application sees them, and misconfigured proxies can silently truncate valid requests. Restricting network reachability to the workers so only the proxy can connect also sharply reduces exposure but does not help deployments where clients reach workers directly. Switching the affected service off the pure-Python ASGI HTTP/1 parser, for example by serving the application through the WSGI path or the C parser which already enforced fallback bounds, removes the vector but may not be feasible for applications that depend on ASGI semantics. No fix version other than 27.0.0 is identified in the available data.

Affected VersionsENISA

Gunicorn 25.2.0 <27.0.0

Affected Packages

euvd gunicorn fix: 27.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a resource-allocation-without-limits weakness (CWE-770) in Gunicorn's pure-Python ASGI HTTP/1 protocol implementation, specifically gunicorn/asgi/parser.py. The parser searched for the CRLF terminator before applying the configured request-line and field-size limits, so a line that never ended was accumulated in the internal buffer without bound; the same pattern applied to the request line, header fields, chunk-size lines, and chunked-body trailers. The upstream fix introduces a bounded line search that refuses to grow the buffer past the applicable limit: when limit_request_line is 0 (unlimited) it falls back to a 1 MiB cap (MAX_UNLIMITED_REQUEST_LINE), fields fall back to 8190 bytes (DEFAULT_MAX_FIELD_LINE) when the field-size limit is unlimited, and trailers are now counted against limit_request_fields with a fallback of 32768 fields (DEFAULT_MAX_FIELDS). The same 27.0.0 release also corrected ASGI handling of HEAD request bodies per RFC 9112 §6.3 and applied forwarded_allow_ips and HeaderPolicy to HTTP/1 ASGI requests so secure_scheme_headers and underscore header handling only honor trusted proxies; those are separate hardening changes bundled in the same pull request rather than additional vectors for this CVE.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Remote, unauthenticated, low-complexity trigger via unterminated lines against the ASGI worker; only availability is affected, so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Gunicorn versions 25.2.0 through 26.2.2 running ASGI applications are vulnerable to a high-severity denial-of-service condition that can be triggered by an unauthenticated remote attacker, degrading or exhausting worker processes. If your teams operate ASGI-based Python services on the affected Gunicorn releases, availability of those services is at risk. Leadership should care because a vendor fix is already available, so the exposure is entirely avoidable with timely remediation.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.8%
Top 43% exploitable
Prevalence
High
Gunicorn is a widely deployed Python application server in production
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy