Timing Attack Affecting github.com/lestrrat-go/jwx/jwe package, versions <1.2.26


Severity

Recommended
0.0
low
0
10

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

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-GITHUBCOMLESTRRATGOJWXJWE-5710360
  • published15 Jun 2023
  • disclosed14 Jun 2023
  • creditshogo82148

Introduced: 14 Jun 2023

CVE NOT AVAILABLE CWE-208  (opens in a new tab)

How to fix?

Upgrade github.com/lestrrat-go/jwx/jwe to version 1.2.26 or higher.

Overview

Affected versions of this package are vulnerable to Timing Attack when decrypting AES-CBC encrypted JWE may return an error "failed to generate plaintext from decrypted blocks: invalid padding". In addition, the time for removing padding depends on the length of the padding. Both allow the execution of this vulnerability.

CVSS Scores

version 3.1