{"id":"CVE-2026-43973","aliases":["EEF-CVE-2026-43973","GHSA-r53j-fjj5-mv77"],"title":"gun HTTP/1.1 response buffer has no size limit allowing server-controlled memory exhaustion","titleSource":"EEF","descriptionSource":"OSV","description":"## Summary\n\nUncontrolled Resource Consumption vulnerability in ninenines gun (`gun_http` module) allows a malicious server to exhaust client memory via unbounded HTTP/1.1 response buffering.\n\nIn `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.\n\nA 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.\n\nThis issue affects gun: from 1.0.0-pre.1 before 2.4.0.","severity":"high","score":8.7,"published":"2026-06-08T14:12:42.128Z","modified":"2026-11-25T17:23:07.370Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Hex","name":"gun","sources":[{"name":"OSV · EEF-CVE-2026-43973","url":"https://osv.dev/vulnerability/EEF-CVE-2026-43973"}],"ranges":[{"events":[{"introduced":"1.0.0-pre.1"},{"fixed":"2.4.0"}],"type":"SEMVER"}],"versions":["1.0.0","1.0.0-pre.1","1.0.0-pre.2","1.0.0-pre.4","1.0.0-pre.4b","1.0.0-pre.5","1.1.0","1.2.0","1.3.0","1.3.1","1.3.2","1.3.3","2.0.0","2.0.0-rc.1","2.0.0-rc.2","2.0.1","2.1.0","2.2.0","2.3.0"],"fixed":["2.4.0"]}],"sourceAffected":[{"ranges":[{"events":[{"introduced":"11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f"},{"fixed":"f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25"}],"type":"GIT","repo":"https://github.com/ninenines/gun"}],"versions":["2.3.0","2.2.0","2.1.0","2.0.1","2.0.0","2.0.0-rc.2","2.0.0-rc.1","2.0.0-pre.2","2.0.0-pre.1","1.3.0","1.2.0","1.1.0","1.0.0","1.0.0-rc.1","1.0.0-pre.5","1.0.0-pre.4","1.0.0-pre.3","1.0.0-pre.2","1.0.0-pre.1"]}],"references":["https://cna.erlef.org/cves/CVE-2026-43973.html","https://osv.dev/vulnerability/EEF-CVE-2026-43973","https://github.com/ninenines/gun/commit/11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f","https://github.com/ninenines/gun/commit/f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25","https://hex.pm/packages/gun"],"sources":[{"name":"CVE","id":"CVE-2026-43973","modified":"2026-11-20T06:42:30.715Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-43973"},{"name":"OSV","id":"EEF-CVE-2026-43973","modified":"2026-11-25T17:23:07.370461396Z","url":"https://osv.dev/vulnerability/EEF-CVE-2026-43973"}],"assessments":[{"source":"EEF","vector":"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","score":8.7},{"source":"OSV","vector":"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","score":8.7}],"cve":{"records":[{"id":"CVE-2026-43973","source":"EEF","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-05-04T18:23:25.574Z","published":"2026-06-08T14:12:42.128Z","modified":"2026-11-20T06:42:30.715Z"}],"publishers":[{"name":"EEF","role":"CNA","organizationId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","modified":"2026-11-20T06:42:30.715Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-06-08T15:48:12.581Z"}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-43973.html","tags":["related","third-party-advisory"],"source":"EEF"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-43973","tags":["related"],"source":"EEF"},{"url":"https://github.com/ninenines/gun/commit/11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f","tags":["related"],"source":"EEF"},{"url":"https://github.com/ninenines/gun/commit/f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25","tags":["patch"],"source":"EEF"}],"weaknesses":[{"id":"CWE-770","description":"CWE-770 Allocation of Resources Without Limits or Throttling","source":"EEF"}],"applicability":[{"source":"EEF","statements":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*","versionEndExcluding":"2.4.0","versionStartIncluding":"1.0.0-pre.1","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}]}],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-06-08T15:48:05.292583Z","decisions":[{"name":"Exploitation","value":"none"},{"name":"Automatable","value":"yes"},{"name":"Technical Impact","value":"partial"}]}]},"products":[{"vendor":"ninenines","name":"gun","platforms":[],"versions":[{"version":"1.0.0-pre.1","status":"affected","lessThan":"2.4.0","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:hex/gun","packageIdentity":{"ecosystem":"Hex","name":"gun"},"cpes":["cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-43973"},{"vendor":"ninenines","name":"gun","platforms":[],"versions":[{"version":"11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f","status":"affected","lessThan":"f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25","versionType":"git"}],"defaultStatus":"unaffected","packageURL":"pkg:github/ninenines/gun","cpes":["cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-43973"}],"remediation":[],"observedAt":"2026-11-25T18:38:20.682Z","kev":{"status":"not-listed","checkedAt":"2026-11-28T23:15:32.077Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-20T07:25:35.550Z","attemptedAt":"2026-11-20T07:25:35.550Z"},{"source":"GHSA","status":"refresh-failed","attemptedAt":"2026-11-20T07:25:35.903Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-20T07:25:35.772Z","attemptedAt":"2026-11-20T07:25:35.772Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-20T07:25:35.549Z","attemptedAt":"2026-11-20T07:25:35.549Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-43973","url":"https://www.first.org/epss/","probability":0.00482,"percentile":0.42297,"date":"2026-11-19","checkedAt":"2026-11-20T07:25:35.549Z"},{"source":"NVD","id":"CVE-2026-43973","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43973","modified":"2026-11-20T07:17:16.290","score":8.7,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","checkedAt":"2026-11-20T07:25:35.550Z"},{"source":"NVD","id":"CVE-2026-43973","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43973","modified":"2026-11-20T07:17:16.290","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","checkedAt":"2026-11-20T07:25:35.550Z"},{"source":"ENISA EUVD","id":"EUVD-2026-35074","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-35074","modified":"Jun 8, 2026, 4:35:01 PM","score":8.7,"vector":"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","checkedAt":"2026-11-20T07:25:35.772Z"}],"aiSummary":{"text":"The gun HTTP/1.1 module has no size limit on its response buffer, allowing a malicious server to exhaust client memory. This affects gun versions from 1.0.0-pre.1 before 2.4.0. A malicious server can exploit this by sending a partial response that never completes.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-20T07:41:04.984Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-43973"},{"name":"OSV","url":"https://osv.dev/vulnerability/EEF-CVE-2026-43973"}]}}