NULL pointer dereference in Github.com/ecnepsnai/web
CVE-2021-4236
Web Sockets do not execute any AuthenticateMethod methods which may be set, leading to a nil pointer dereference if the returned UserData pointer is assumed to be non-nil, or authentication bypass. This issue only affects WebSockets with an AuthenticateMethod hook. Request handlers that do not explicitly use WebSockets are not vulnerable.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.012, 68.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Github.com/ecnepsnai/web — versions 1.4.0
- Web Project
Weakness classification (CWE)
References
- github.com/ecnepsnai/web/commit/5a78f8d5c41ce60dcf9f61aaf47a7a8dc3e0002f (Patch, Third Party Advisory)
- pkg.go.dev/vuln/GO-2021-0107 (Exploit, Patch, Third Party Advisory)