Integer Overflow Affecting github.com/square/go-jose/cipher package, versions <1.0.5


0.0
high

Snyk CVSS

    Attack Complexity Low
    Integrity High

    Threat Intelligence

    EPSS 0.12% (47th percentile)
Expand this section
NVD
7.5 high

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-GITHUBCOMSQUAREGOJOSECIPHER-451468
  • published 3 Jul 2019
  • disclosed 28 Mar 2017
  • credit Cedric Staub

How to fix?

Upgrade github.com/square/go-jose/cipher to version 1.0.5 or higher.

Overview

github.com/square/go-jose/cipher is an implementation of JOSE standards (JWE, JWS, JWT) in Go.

Affected versions of this package are vulnerable to Integer Overflow. An integer overflow could lead to authentication bypass for CBC-HMAC encrypted ciphertexts on 32-bit architectures.