CVE-2026-43973 gun HTTP/1.1 response buffer has no size limit allowing server-controlled memory exhaustion

High 8.7 Published Updated

A malicious server can exhaust client memory by sending incomplete HTTP responses, causing a node-wide crash in the gun library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-43973?

CVE-2026-43973 is a high-severity denial of service vulnerability in ninenines gun, published on 8 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-770

Which versions are affected by CVE-2026-43973?

3 open source packages ship an affected version, including gun. It affects 1 product.

PackageAffectedFixed in
gun HexFrom 1.0.02.4.0
gun HexFrom 1.0.02.4.0
gun HexFrom 1.0.02.4.0

Products include Ninenines Gun.

How do I fix CVE-2026-43973?

Upgrade gun to 2.4.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-43973 being exploited?

There is no known exploitation of CVE-2026-43973 in the wild and no public exploit code.

Sources

Also known as AZL-90141, EEF-CVE-2026-43973, GHSA-r53j-fjj5-mv77.

Is CVE-2026-43973 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free