CVE-2021-4236

Panic or authentication bypass in github.com/ecnepsnai/web

Published Dec 27, 2022 CVSS 3.1 · 9.8 Critical EPSS 1.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-7668 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.
Github GHSA Github GHSA GHSA-jpgg-cp2x-qrw3 ecnepsnai/web vulnerable to Uncontrolled Resource Consumption
Github GHSA Github GHSA GHSA-5gjg-jgh4-gppm Websocket requests did not call AuthenticateMethod
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Apr 11, 2025, 4:20 PM
Reserved
Jul 29, 2022, 7:01 PM
Status
Modified
Published
Dec 27, 2022, 10:15 PM
Modified
Jun 17, 2026, 4:19 AM