Integer Overflow or Wraparound Affecting github.com/flynn/noise package, versions <1.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMFLYNNNOISE-1583459
  • published9 Sept 2021
  • disclosed8 Sept 2021
  • creditUnknown

Introduced: 8 Sep 2021

CVE-2021-4239  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade github.com/flynn/noise to version 1.0.0 or higher.

Overview

github.com/flynn/noise is a Go implementation of the Noise Protocol Framework

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. If 2^64 (~18.4 quintillion) or more messages are encrypted with Encrypt after handshaking, the nonce counter will wrap around, causing multiple messages to be encrypted with the same key and nonce, resulting in a potentially catastrophic weakening of the security properties of the symmetric cipher.

CVSS Scores

version 3.1