# CVE-2020-27813: Integer overflow in github.com/gorilla/websocket

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.19%, higher than 82% of CVEs (2026-12-01)
- Published: 2020-12-02T00:00:00.000Z
- Modified: 2026-06-17T03:09:40.230Z
- Also known as: GHSA-3xh2-74w9-5vxm, GHSA-jf24-p9p9-4rjh, GO-2020-0019
- Weaknesses: CWE-190, CWE-400
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- golang-github-gorilla-websocket: github.com/gorilla/websocket v1.4.1
- github.com/gorilla/websocket (Go): before 1.4.1
- gorillatoolkit websocket: before 1.4.1
- debian debian_linux: 9.0

## Every score

- GitHub: 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`
- NVD: 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`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## 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

- CVE List: [CVE-2020-27813](https://www.cve.org/CVERecord?id=CVE-2020-27813), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-3xh2-74w9-5vxm](https://github.com/advisories/GHSA-3xh2-74w9-5vxm), CC-BY-4.0, modified 2023-11-08
- Go Vulnerability Database: [GO-2020-0019](https://pkg.go.dev/vuln/GO-2020-0019), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2020-27813](https://nvd.nist.gov/vuln/detail/CVE-2020-27813), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-27813 · Whole record: https://cve.day/CVE-2020-27813.json · Rebuilt by cve.day 2026-11-25T22:57:55.999Z
