CVE-2020-27813
Integer overflow in github.com/gorilla/websocket
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2020-27813- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-190, CWE-400
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2020-27813- Weakness
- CWE-190
- Updated
- 2026-11-02
EUVDEUVD-2021-0926 No score
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.
- Record
EUVD-2021-0926- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-3xh2-74w9-5vxm
7.5
Integer overflow in github.com/gorilla/websocket
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.
- Record
GHSA-3xh2-74w9-5vxm- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-190, CWE-400
- Updated
- 2026-11-02
OSV
7.5
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.
- Record
CVE-2020-27813- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVGHSA-3xh2-74w9-5vxm
7.5
Integer overflow in github.com/gorilla/websocket
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.
- Record
GHSA-3xh2-74w9-5vxm- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-190, CWE-400
- Updated
- 2026-11-02
Show 4 moreShow less
OSVRHSA-2021:0833
7.5
Red Hat Security Advisory: OpenShift Container Platform 3.11.404 security and bug fix update
- Record
RHSA-2021:0833- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2020-27813
7.5
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.
- Record
UBUNTU-CVE-2020-27813- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVGO-2020-0019 No score
Integer overflow in github.com/gorilla/websocket
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.
- Record
GO-2020-0019- Updated
- 2026-11-02
OSVUSN-6208-1 No score
golang-websocket vulnerability
It was discovered that Gorilla WebSocket incorrectly handled decoding WebSocket frames. An attacker could possibly use this issue to cause a crash, resulting in a denial of service.
- Record
USN-6208-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/gorilla/websocketGo |
before 1.4.1 | 1.4.1 |
golang-websocketDebian:9 |
before 1.1.0-1+deb9u1, plus listed versions 1.1.0-1 |
1.1.0-1+deb9u1 |
golang-websocketDebian:10 |
before 1.4.0-1+deb10u1, plus listed versions 1.4.0-1 |
1.4.0-1+deb10u1 |
atomic-openshift-cluster-autoscalerRed Hat:openshift:3.11::el7 |
before 0:3.11.404-1.git.0.2c258fe.el7 | 0:3.11.404-1.git.0.2c258fe.el7 |
golang-websocketUbuntu:Pro:16.04:LTS |
before 0.0~git20150811.0.b6ab76f-1ubuntu0.1~esm1, plus listed versions 0.0~git20140119-10.0~git20150811.0.b6ab76f-1 |
0.0~git20150811.0.b6ab76f-1ubuntu0.1~esm1 |
golang-websocketUbuntu:Pro:18.04:LTS |
before 1.2.0-1ubuntu2+esm1, plus listed versions 1.2.0-1ubuntu11.2.0-1ubuntu2 |
1.2.0-1ubuntu2+esm1 |
golang-websocketUbuntu:20.04:LTS |
All versions, plus listed versions 1.4.0-1 |
None known |
golang-websocketUbuntu:22.04:LTS |
All versions, plus listed versions 1.4.0-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-27813 is a high vulnerability (CVSS 7.5) in Gorillatoolkit Websocket, published December 2, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.19%, the 82nd percentile. Fixed in github.com/gorilla/websocket 1.4.1.
References
bugzilla.redhat.com/show_bug.cgi?id=1902111
github.com/gorilla/websocket/security/advisories/GHSA-jf24-p9p9-4rjh
lists.debian.org/debian-lts-announce/2021/01/msg00008.html
lists.debian.org/debian-lts-announce/2023/05/msg00012.html
nvd.nist.gov/vuln/detail/CVE-2020-27813
github.com/gorilla/websocket/pull/537
Show 14 moreShow less
github.com/gorilla/websocket/commit/5b740c29263eb386f33f265561c8262522f19d37
pkg.go.dev/vuln/GO-2020-0019
github.com/advisories/GHSA-3xh2-74w9-5vxm
github.com/gorilla/websocket
access.redhat.com/errata/RHSA-2021:0833
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1917013
bugzilla.redhat.com/show_bug.cgi?id=1933090
bugzilla.redhat.com/show_bug.cgi?id=1934136
security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_0833.json
access.redhat.com/security/cve/CVE-2020-27813
cve.org/CVERecord?id=CVE-2020-27813
ubuntu.com/security/CVE-2020-27813
ubuntu.com/security/notices/USN-6208-1