Integer Overflow or Wraparound Affecting github.com/katzenpost/noise package, versions <0.0.3


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.08% (35th 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 ID SNYK-GOLANG-GITHUBCOMKATZENPOSTNOISE-1583458
  • published 9 Sep 2021
  • disclosed 8 Sep 2021
  • credit Unknown

How to fix?

Upgrade github.com/katzenpost/noise to version 0.0.3 or higher.

Overview

github.com/katzenpost/noise is a Noise Protocol Framework: Katzenpost fork of the flynn noise library.

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
Expand this section

Snyk

Recommended
7.5 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    None
Expand this section

NVD

7.5 high