{"id":"CVE-2020-27813","aliases":["CVE-2020-27813","GHSA-3xh2-74w9-5vxm","GHSA-jf24-p9p9-4rjh","GO-2020-0019"],"related":[],"kind":"vulnerability","state":"published","title":"Integer overflow in github.com/gorilla/websocket","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"go"},{"lang":"es","text":"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.&#xa0;Un atacante podría usar este fallo para causar un ataque de denegación de servicio en un Servidor HTTP permitiendo conexiones websocket","source":"nvd"}],"published":"2020-12-02T00:00:00.000Z","modified":"2026-06-17T03:09:40.230Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-190","CWE-400"],"affected":[{"ranges":[{"version":"github.com/gorilla/websocket v1.4.1","status":"affected"}],"product":"golang-github-gorilla-websocket","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.1"}],"ecosystem":"Go","package":"github.com/gorilla/websocket","purl":"pkg:golang/github.com/gorilla/websocket","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.1"}],"ecosystem":"Go","package":"github.com/gorilla/websocket","purl":"pkg:golang/github.com/gorilla/websocket","source":"go"},{"ranges":[{"status":"affected","fixed":"1.4.1"}],"vendor":"gorillatoolkit","product":"websocket","cpe":"cpe:2.3:a:gorillatoolkit:websocket:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1902111","tags":["issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/gorilla/websocket/security/advisories/GHSA-jf24-p9p9-4rjh","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/01/msg00008.html","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00012.html","tags":["mailing-list","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-27813","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/gorilla/websocket/pull/537","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/gorilla/websocket/commit/5b740c29263eb386f33f265561c8262522f19d37","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/gorilla/websocket","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0019","tags":["web"],"sources":["ghsa"]}],"credits":["Max Justicz"],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-27813","url":"https://www.cve.org/CVERecord?id=CVE-2020-27813","licence":"CVE Terms of Use","modified":"2024-08-04T16:25:44.139Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3xh2-74w9-5vxm","url":"https://github.com/advisories/GHSA-3xh2-74w9-5vxm","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:22.368Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2020-0019","url":"https://pkg.go.dev/vuln/GO-2020-0019","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-27813","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-27813","licence":"Public domain","modified":"2026-06-17T03:09:40.230Z"}],"updatedAt":"2026-11-25T22:57:55.999Z","epss":{"score":0.02188,"percentile":0.82934,"date":"2026-12-01T12:00:22.000Z"}}