Skip to main content

Ninenines Gun EUVDEUVD-2026-35074

| CVE-2026-43973 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-06-08 EEF GHSA-r53j-fjj5-mv77
8.7
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

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

  1. Access
    Induce gun client to connect to attacker-controlled server
  2. Delivery
    Accept TCP connection and send partial HTTP/1.1 response with no terminator
  3. Exploit
    Stream unbounded header/chunk/trailer bytes
  4. Execution
    Gun buffer field grows without limit in handle/5
  5. Persist
    BEAM process heap exhausts node memory
  6. Impact
    Node-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 head clause before the \r\n\r\n header terminator, the body_chunked clause while cow_http_te:stream_chunked/2 returns more, or the body_trailer clause before the trailing \r\n\r\n - and no authentication, user interaction, or non-default configuration on the victim is needed (PR:N, UI:N, AT:N). The principal limiting factor is therefore destination control, not protocol or platform: HTTP/2 paths are not implicated by the patch, and operators who have already set a BEAM per-process max_heap_size on connection processes will see the offending process killed instead of the whole node crashing.

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.

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

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

Alert me

AnalysisAIv1 – 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

gun 1.0.0 <2.4.0
gun 11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f <f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25

Affected Packages

euvd gun fix: 2.4.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

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

Vendor (EEF) 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

Primary rating from Vendor (EEF) · only source for this CVE.

CVSS VectorVendor: EEF

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

Lifecycle Timeline

2
CVSS changed
Jun 08, 2026 - 15:37 NVD
8.7 (HIGH)
CVE Published
Jun 08, 2026 - 14:12 nvd
UNKNOWN (no severity yet)

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC CIRCL GitHub VulDB

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.0%
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

44
Low Medium High Critical
KEV: 0
EPSS: 0
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.

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