> CVE-2026-43974 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-06-08 15:16
MODIFIED
2026-06-08 15:16
CVSS_SCORE V3
8.7
EPSS (Prob. Exploit)
0.48%
Top 58.4%
DATA SOURCES:
NVD 🔗 2026-06-08 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-11-01 GITHUB 🔗 2026-10-29 OSV 🔗 2026-11-02

> DESCRIPTION

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 before 2.4.0.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_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

> MÉTRIQUES CVSS DÉTAILLÉES

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
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
High
Interruption totale du service possible

> WEAKNESSES

CWE-841

> CWE DETAILED DESCRIPTIONS

CWE-841: Improper Enforcement of Behavioral Workflow - The product supports a session in which more than one behavior must be performed by an actor, but it does not properly ensure that the actor performs the behaviors in the required sequence or timeframe.

> GITHUB SECURITY ADVISORY

GHSA-2j82-37xg-f9wp HIGH

gun has an Unexpected Status Code or Return Value vulnerability

AFFECTED PACKAGES:
ERLANG / gun
>= 2.0.0, < 2.4.0
Fixed in: 2.4.0

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

gun HTTP/1.1 client accepts unsolicited 101 Switching Protocols response allowing server-driven protocol hijack and OOM

AFFECTED PACKAGES:
Unknown / Unknown
9 versions affected
ALIASES:
EEF-CVE-2026-43974, GHSA-2j82-37xg-f9wp

> HISTORIQUE DES MODIFICATIONS

Première apparition
08/06/2026 15:16
Source: NVD
📊 ENRICHISSEMENT 01/11/2026 06:59
CWE
Champ modifié: Description CWE
Ancienne valeur:
CWE-841: Improper Enforcement of Behavioral Workflow - The product supports a session in which more than one behavior must be performed by an actor, but it does not properly ensure that the actor perf...
Nouvelle valeur:
CWE-841: Improper Enforcement of Behavioral Workflow - The product supports a session in which more than one behavior must be performed by an actor, but it does not properly ensure that the actor perf...
📊 ENRICHISSEMENT 01/07/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-841: Improper Enforcement of Behavioral Workflow - The product supports a session in which more than one behavior must be performed by an actor, but it does not properly ensure that the actor perf...
Total des modifications: 2 Dernière mise à jour: 6 days ago

> REFERENCES

https://cna.erlef.org/cves/CVE-2026-43974.html
https://github.com/ninenines/gun/commit/5b48068c29ce5e112cb149b5857c7d4dc319a81b
https://osv.dev/vulnerability/EEF-CVE-2026-43974
« BACK_TO_HOME