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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.66% (percentile 47, 2026-11-28)
- **CWE:** CWE-770
- **Published:** 2026-06-08T14:12:42.128Z
- **Modified:** 2026-11-20T07:17:16.290Z

## Who should check

- Anyone running ninenines gun \>= 1.0.0-pre.1, \< 2.4.0
- Anyone running ninenines gun \>= 11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f, \< f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25

## 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-pre.1 before 2.4.0.

## Affected and fixed versions

- ninenines gun: \>= 1.0.0-pre.1, \< 2.4.0 (cvelist)
- ninenines gun: \>= 11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f, \< f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25 (cvelist)

## Mitigation

- Upgrade gun to 2.4.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-43973. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-43973.md
Affected: ninenines gun >= 1.0.0-pre.1, < 2.4.0; ninenines gun >= 11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f, < f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25
Fixed in: ninenines gun 2.4.0

Steps:
1. Search this machine and project for ninenines gun: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-43973 being exploited?

There is no confirmed exploitation: CVE-2026-43973 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.66% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-43973?

High: CVSS 8.7 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-43973?

ninenines gun \>= 1.0.0-pre.1, \< 2.4.0; ninenines gun \>= 11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f, \< f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25.

### Is there a fix for CVE-2026-43973?

Yes. Fixed in ninenines gun 2.4.0. Upgrade gun to 2.4.0 or later.

### How do I check if I'm affected by CVE-2026-43973?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://osv.dev/vulnerability/EEF-CVE-2026-43973>
- patch: <https://github.com/ninenines/gun/commit/11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f>
- patch: <https://github.com/ninenines/gun/commit/f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25>
- other: <https://cna.erlef.org/cves/CVE-2026-43973.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-43973>

HTML: <https://flawdb.com/CVE-2026-43973> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-43973>
