Impact
The gun HTTP/1.1 client library contains an uncontrolled buffer growth flaw in the gun_http module. Incoming response data is concatenated to an internal binary buffer without any size limit. An attacker can send a partial response that never terminates, causing the buffer to grow indefinitely. This results in unbounded heap consumption on the client process, eventually exhausting the Erlang node’s memory and triggering an out‑of‑memory crash or significant slowdown. The weakness is a case of uncontrolled resource consumption (CWE-770).
Affected Systems
The vulnerability affects the gun library from the ninenines project. Versions from 1.0.0 through any release prior to 2.4.0 are impacted. Applications that use these older versions as HTTP/1.1 clients to external servers are susceptible.
Risk and Exploitability
The CVSS base score of 8.7 indicates high severity. EPSS data is not available, and the flaw is not listed in the CISA KEV catalog. An attacker can exploit this by acting as a remote server that sends a deliberately malformed, never‑terminating HTTP/1.1 response to any gun client. Because the server controls the input stream and no size limit is enforced, the attack does not require privileged local access. The result is a memory exhaustion denial of service that can bring down or destabilize the entire Erlang node hosting the gun process.
OpenCVE Enrichment