Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInduce gun client to connect to attacker-controlled server
-
DeliveryAccept TCP connection and send partial HTTP/1.1 response with no terminator
-
ExploitStream unbounded header/chunk/trailer bytes
-
ExecutionGun buffer field grows without limit in handle/5
-
PersistBEAM process heap exhausts node memory
-
ImpactNode-wide OOM crash takes down all services
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 that a vulnerable gun client (versions 1.0.0 through 2.3.x) establish an HTTP/1.1 connection to a server the attacker controls or has compromised - this is a client-side DoS, not a listening-service vulnerability, so the gun process must initiate outbound HTTP to an attacker-influenced destination (typical paths: user-supplied URL fetching, webhook delivery, SSRF, federated/peer protocols, or third-party API integrations where the upstream is compromised). The triggering response must remain incomplete in one of three specific parser states - the |
| Impact | CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N with VA:H and no confidentiality or integrity impact correctly characterizes this as a pure availability issue scoring 8.7 - high precisely because no privileges, user interaction, or special conditions are required once a client connects to an attacker-controlled origin. The realistic risk is more nuanced than the score suggests: exploitation requires the victim's gun client to initiate (or be tricked into initiating) a connection to a server the attacker controls, which inverts the usual server-side DoS threat model and limits opportunistic mass exploitation. EPSS and KEV data were not provided in the input, so probabilistic exploitation likelihood and active-exploitation status are unknown; the Tags field lists "Denial Of Service" consistent with the CVSS profile. Highest practical risk is for services using gun to fetch URLs derived from user input, webhook callbacks, server-to-server federation, or SSRF-like outbound flows where attackers can influence the destination. |
| Exploit ScenarioDerived | An attacker who controls or compromises any HTTP server that a gun-based client will connect to - for example a webhook callback target, an SSRF-reachable internal endpoint, or a federated peer - accepts the inbound TCP connection and emits a partial response such as "HTTP/1.1 200 OK\r\nX-Pad: " followed by an open-ended stream of bytes, never sending the \r\n\r\n header terminator. The victim gun process keeps concatenating arrivals into its buffer field with no cap, growing its heap until the entire BEAM node runs out of memory and crashes, taking down all unrelated services on the same VM. The upstream commit ships test cases (max_header_block_size and max_trailer_block_size in gun_SUITE.erl) that publicly demonstrate the exact triggering server behavior, even though no standalone weaponized PoC is referenced. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Memory exhaustion denial of service in Ninenines Gun (Erlang HTTP client) versions 1.0.0 through 2.3.x allows a malicious or compromised HTTP/1.1 server to crash the entire BEAM node by sending an unterminated response. The gun_http module accumulates incoming bytes into a per-connection buffer without any size ceiling, and since BEAM imposes no default per-process heap limit, a single connection can consume all node memory. No public exploit identified at time of analysis, though the upstream patch and accompanying test cases publicly demonstrate the triggering server behavior.
RemediationAI
Vendor-released patch: upgrade to gun 2.4.0 or later, which adds the new http_opts() fields max_header_block_size (default 100000 bytes) and max_trailer_block_size (default 10000 bytes); when either soft limit is exceeded gun closes the connection with a {connection_error, limit_reached, ...} error rather than continuing to buffer. The fix commit is https://github.com/ninenines/gun/commit/f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25 and full advisory details are at https://cna.erlef.org/cves/CVE-2026-43973.html. If upgrading immediately is not possible, compensating controls include restricting outbound HTTP destinations to a trusted allowlist of origins (eliminates attacker-controlled servers but breaks any user-driven URL fetching), terminating long-lived or slow gun connections with an application-level idle/total-time watchdog (adds latency on legitimate slow servers), and as a last resort applying a per-process heap limit via spawn_opt's max_heap_size on the gun connection process so the offending process is killed before exhausting the node (kills the connection abruptly and may interfere with large legitimate responses if set too low).
Affected VersionsENISA
Affected Packages
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
Gun is a widely used Erlang/OTP HTTP/1.1, HTTP/2, and WebSocket client maintained by Ninenines (Loïc Hoguin), commonly embedded in Erlang and Elixir services for outbound HTTP. The flaw is a classic CWE-770 (Allocation of Resources Without Limits or Throttling): in src/gun_http.erl, three handle/5 clauses - the head clause (waiting for the \r\n\r\n header terminator), the body_chunked clause (when cow_http_te:stream_chunked/2 returns more), and the body_trailer clause (waiting for the trailing \r\n\r\n) - perform binary concatenation into the connection state's buffer field with no bounds check before re-entering the receive loop. Because the Erlang BEAM virtual machine does not impose a default per-process heap limit, that unbounded binary growth translates directly into node-wide memory pressure. The CPE cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:* covers all gun releases up to the fix.
Know when Gun 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
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
Primary rating from Vendor (EEF) · only source for this CVE.
CVSS VectorVendor: EEF
Lifecycle Timeline
2DescriptionCVE.org
Uncontrolled Resource Consumption vulnerability in ninenines gun (gun_http module) allows a malicious server to exhaust client memory via unbounded HTTP/1.1 response buffering.
In gun_http:handle/5, three clauses accumulate incoming TCP data into the connection's buffer field using binary concatenation with no upper-bound check: the head clause appends data until the \r\n\r\n header terminator is found; the body_chunked clause appends data whenever cow_http_te:stream_chunked/2 returns a more result indicating an incomplete chunk boundary; and the body_trailer clause appends data until the trailing \r\n\r\n is found. In each case, when the expected terminator never arrives, the enlarged binary is stored back into state and the process waits for more data, with no configurable or hard-coded ceiling on buffer size.
A malicious or compromised server can exploit this by sending a partial response that never completes. For example, a response may begin with HTTP/1.1 200 OK\r\nX-Pad: followed by an unbounded stream of arbitrary bytes, never sending the header terminator. The gun connection process will continuously append the incoming data to its buffer, causing unbounded heap growth. Because BEAM imposes no per-process heap limit by default, a single malicious connection can exhaust all available memory on the node, causing a node-wide out-of-memory crash.
This issue affects gun: from 1.0.0 before 2.4.0.
Executive ViewAI
Ninenines Gun, an Erlang HTTP client library used in versions 1.0.0 through 2.3.x, contains a memory exhaustion vulnerability that allows a malicious HTTP server to crash entire BEAM application nodes by sending unterminated responses. Organizations using this library for backend HTTP communications face immediate risk of service outages affecting dependent systems.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Denial-of-service in the Erlang HTTP client library Ninenines gun (versions 2.0.0 through 2.3.x) lets a malicious or com
Cross-origin cookie injection in ninenines gun (versions 2.0.0 through 2.3.x) allows a malicious or compromised HTTP/2 s
EUVD-2026-35074
GHSA-r53j-fjj5-mv77
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB