Every CVE Search/ Get API key

CVE-2020-27813

Integer overflow in github.com/gorilla/websocket

7.5 HighFix available

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

2.19%Up 1.1 points since Apr 14, 2021
90%50%10%1%

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 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
github.com/gorilla/websocket
Go
before 1.4.1
1.4.1
golang-websocket
Debian:9
before 1.1.0-1+deb9u1, plus listed versions
1.1.0-1
1.1.0-1+deb9u1
golang-websocket
Debian:10
before 1.4.0-1+deb10u1, plus listed versions
1.4.0-1
1.4.0-1+deb10u1
atomic-openshift-cluster-autoscaler
Red 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-websocket
Ubuntu: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-websocket
Ubuntu: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-websocket
Ubuntu:20.04:LTS
All versions, plus listed versions
1.4.0-1
None known
golang-websocket
Ubuntu:22.04:LTS
All versions, plus listed versions
1.4.0-1
None known

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 14 moreShow less
MoveEnter Open