Home / ninenines / gun / CVE-2026-43974
CVE-2026-43974: is it exploited, and which versions of ninenines gun are affected and fixed?
CVE-2026-43974 is an improper Enforcement of Behavioral Workflow vulnerability in ninenines gun. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: gun from 2.0.0 before 2.4.0 (GitHub advisory GHSA-2j82-37xg-f9wp). Fixed in 2.4.0 (GitHub advisory GHSA-2j82-37xg-f9wp). Severity: High (8.7, CVSS 4.0, from EEF).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 20, 2026, 06:50 UTC and NVD November 20, 2026, 08:04 UTC.
What is CVE-2026-43974?
gun HTTP/1.1 client accepts unsolicited 101 Switching Protocols response allowing server-driven protocol hijack and OOM
Unexpected Status Code or Return Value vulnerability in ninenines gun (gun_http module) allows a malicious HTTP server to force the client into raw protocol mode via an unsolicited 101 Switching Protocols response. In gun_http:handle_inform/8, when a 101 Switching Protocols response is received over HTTP/1.1, the function verifies only that the Upgrade header is syntactically valid and that the stream reference is a plain reference(). It does not check whether the client ever sent an Upgrade or Connection: upgrade header on the corresponding request. Because this check is absent, any 101 response (solicited or not) causes gun to dispatch a gun_upgrade message to the caller and transition the entire connection to raw protocol mode. A malicious or compromised HTTP server can send an unsolicited 101 response to any HTTP/1.1 request, causing the gun client to abandon HTTP framing for that connection. Once in raw mode, gun_raw applies no flow control (flow=infinity) and re-arms socket active mode after every received packet, so the server can flood the client with arbitrary bytes. These are forwarded as unbounded gun_data messages to the owner process, exhausting its mailbox and BEAM memory, ultimately crashing the VM. This issue affects gun: from 2.0.0-pre.1 before 2.4.0.
From the CVE record by EEF, last updated November 20, 2026, 06:44 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| ninenines | gun | from 2.0.0-pre.1 before 2.4.0 | 2.4.0 |
| ninenines | gun ninenines/gun | not stated |
As the CVE record by EEF states it, last updated November 20, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Hex | gun | >= 2.0.0, < 2.4.0 | 2.4.0 | GHSA-2j82-37xg-f9wp |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 29, 2026. Summary: gun has an Unexpected Status Code or Return Value vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| ninenines | gun | from 2.0.0 before 2.4.0 | application |
NVD analysis (status Modified), last modified November 20, 2026, 07:17 UTC.
How severe is CVE-2026-43974?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.7 | CVSS 4.0 | 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 | EEF |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-43974 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, June 8, 2026)
- EPSS
- 0.50% probability of exploitation activity in the next 30 days, percentile 44.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-841 Improper Enforcement of Behavioral Workflow
Where are the vendor advisories and references?
- EEF CNA record for CVE-2026-43974 related, third-party-advisory
- OSV record EEF-CVE-2026-43974 related
- Introducing commit a3c2edb in ninenines/gun related
- Fix commit 5b48068 in ninenines/gun patch
Who found and reported it?
- Peter Ullrich (finder)
- Loïc Hoguin (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- May 4, 2026
- Published
- June 8, 2026, 14:12 UTC
- CVE record updated
- November 20, 2026, 06:44 UTC by EEF
- NVD
- Modified, last modified November 20, 2026, 07:17 UTC
- Last checked
- CVE list November 20, 2026, 06:50 UTC; NVD November 20, 2026, 08:04 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect gun?
- Jun 8, 2026CVE-2026-43973 ninenines gun: denial of service (resources allocated without limits)
- Jun 8, 2026CVE-2026-43972 ninenines gun: origin not validated
Questions about CVE-2026-43974
Is CVE-2026-43974 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 0.50% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of ninenines gun are affected by CVE-2026-43974?
gun from 2.0.0 before 2.4.0, per the GitHub advisory GHSA-2j82-37xg-f9wp. The tables above give every range the sources list.
Which version fixes CVE-2026-43974?
2.4.0, per the GitHub advisory GHSA-2j82-37xg-f9wp. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-43974?
High (8.7, CVSS 4.0, from EEF). The severity table above shows each score with its source.
Where is the official record of CVE-2026-43974?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.