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

Source: https://junglewise.ai/threats/cve-2020-27813-integer-overflow-in-github-com-gorilla-websocket  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-04-14  
License: CC BY 4.0 with a link back

CVE-2020-27813 · Severity: low · CVSS 3.1 · Published 2021-04-14

Integer overflow in github.com/gorilla/websocket

Technologies: [github.com/gorilla/websocket (Go)](https://junglewise.ai/threats/technologies/github-com-gorilla-websocket). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2020-27813 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2020-27813 being exploited in the wild.

**How severe is CVE-2020-27813?** Low severity, with a CVSS score of 3.1, published 14 April 2021.

**Which products and versions are affected?** github.com/gorilla/websocket (Go) SEMVER:introduced=0,fixed=1.4.1.

**Is there a fix for CVE-2020-27813?** Yes. github.com/gorilla/websocket (Go): upgrade to 1.4.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2020-27813?** Check whether you run github.com/gorilla/websocket (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/gorilla/websocket (Go): upgrade to 1.4.1 or later

  ```sh
  go get github.com/gorilla/websocket@v1.4.1
  ```


## Affected products

- github.com/gorilla/websocket (Go) SEMVER:introduced=0,fixed=1.4.1

## Identifiers

- CVE-2020-27813
- GHSA-3xh2-74w9-5vxm
- GO-2020-0019

## Related threats

- [GO-2026-6278 - Gorilla WebSocket Uses Cryptographically Weak PRNG for WebSocket Mask Key in github.com/gorilla/websocket](https://junglewise.ai/threats/go-2026-6278-gorilla-websocket-uses-cryptographically-weak-prng-for-262c21c8)
- [Gorilla WebSocket weak PRNG for mask key generation](https://junglewise.ai/threats/gorilla-websocket-weak-prng-for-mask-key-generation-0861bf09)
