Vulnerability · Published Dec 27, 2022 · Assigned by Go

CVE-2021-4236Panic or authentication bypass in github.com/ecnepsnai/web

Critical 9.8

In plain English

A critical-severity security flaw in github.com/ecnepsnai/web from github.com/ecnepsnai/web. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)1.2%top 31.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/ecnepsnai/web1.5.2GHSA-5gjg-jgh4-gppm
Gogithub.com/ecnepsnai/web1.5.2GHSA-jpgg-cp2x-qrw3
Gogithub.com/ecnepsnai/web1.5.2GO-2021-0107

Affected products (as reported)

VendorProductVersions
github.com/ecnepsnai/web github.com/ecnepsnai/web 1.4.0 – before 1.5.2

References