7.5high
Integer overflow in github.com/gorilla/websocket
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 2.19% (higher than 82% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
- Also known as
- GHSA-3xh2-74w9-5vxmGHSA-jf24-p9p9-4rjhGO-2020-0019
Description
An integer overflow vulnerability exists with the length of websocket frames received via a websocket connection. An attacker would use this flaw to cause a denial of service attack on an HTTP Server allowing websocket connections.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| golang-github-gorilla-websocket | github.com/gorilla/websocket v1.4.1 | CVE List |
| github.com/gorilla/websocket (Go) | before 1.4.1 | GitHub Advisory Database, Go Vulnerability Database |
| gorillatoolkit websocket | before 1.4.1 | NVD |
| debian debian_linux | 9.0 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
An integer overflow vulnerability exists with the length of websocket frames received via a websocket connection. An attacker would use this flaw to cause a denial of service attack on an HTTP Server allowing websocket connections.
Go Vulnerability Database
An attacker can craft malicious WebSocket frames that cause an integer overflow in a variable which tracks the number of bytes remaining. This may cause the server or client to get stuck attempting to read frames in a loop, which can be used as a denial of service vector.
NVD (es)
Se presenta una vulnerabilidad de desbordamiento de enteros con la longitud de las tramas de websocket recibidos por medio de una conexión de websocket. Un atacante podría usar este fallo para causar un ataque de denegación de servicio en un Servidor HTTP permitiendo conexiones websocket
References
| https://bugzilla.redhat.com/show_bug.cgi?id=1902111 | issue-tracking, third-party-advisory, web | |
| https://github.com/gorilla/websocket/security/advisories/GHSA-jf24-p9p9-4rjh | third-party-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2021/01/msg00008.html | mailing-list, third-party-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2023/05/msg00012.html | mailing-list | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-27813 | advisory | |
| https://github.com/gorilla/websocket/pull/537 | fix, web | |
| https://github.com/gorilla/websocket/commit/5b740c29263eb386f33f265561c8262522f19d37 | fix, web | |
| https://github.com/gorilla/websocket | package | |
| https://pkg.go.dev/vuln/GO-2020-0019 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-27813 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3xh2-74w9-5vxm changed 2023-11-08 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2020-0019 changed 2024-05-20 | CC-BY-4.0 |
| NVD | CVE-2020-27813 changed 2026-06-17 | Public domain |