CVE-2021-4236 json
Panic or authentication bypass in github.com/ecnepsnai/web
published 2021-06-23 5 y ago modified 2026-06-17 4 mo ago also GHSA-5gjg-jgh4-gppm , GHSA-jpgg-cp2x-qrw3 , GO-2021-0107 , EUVD-2022-7668
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 68%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/ecnepsnai/web 1.5.2
- github.com/ecnepsnai/web github.com/ecnepsnai/web 1.5.2
- github.com/ecnepsnai/web@5a78f8d commit
- pkg.go.dev/vuln/GO-2021-0107 advisory
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
1.19% chance of exploitation in the next 30 days, higher than 68% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- pkg.go.dev https://pkg.go.dev/vuln/GO-2021-0107 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/ecnepsnai/web | >=1.4.0, <1.5.2 |
1.5.2 |
Affected products
- github.com/ecnepsnai/web github.com/ecnepsnai/web
Classification
References
-
github.com
/ecnepsnai/web/commit/5a78f8d5c41ce60dcf9f61aaf47a7a8dc3e0002f
web, patch, third-party-advisory
-
pkg.go.dev
/vuln/GO-2021-0107
web, exploit, patch, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-4236
advisory
-
github.com
/ecnepsnai/web
package
-
github.com
/ecnepsnai/web/security/advisories/GHSA-5gjg-jgh4-gppm
web
Sources
- CVE List CVE-2021-4236
- GitHub Advisory GHSA-jpgg-cp2x-qrw3
- GitHub Advisory GHSA-5gjg-jgh4-gppm
- NVD CVE-2021-4236
- OSV GO-2021-0107
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.