Integer overflow in github.com/square/go-jose
Published 14 Apr 2021 · Updated 20 May 2024
Is your project on an affected github.com/square/go-jose?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <0.0.0-20160903044734-789a4c4bd4c1
- Fixed in
- 0.0.0-20160903044734-789a4c4bd4c1
go get github.com/square/go-jose@v0.0.0-20160903044734-789a4c4bd4c1Details
On 32-bit platforms an attacker can manipulate a ciphertext encrypted with AES-CBC with HMAC such that they can control how large the input buffer is when computing the HMAC authentication tag. This can can allow a manipulated ciphertext to be verified as authentic, opening the door for padding oracle attacks.
Is GO-2020-0009 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/square/go-jose, and gives you the command that fixes it.
More advisories for github.com/square/go-jose
- LowCVE-2025-27144DoS in go-jose Parsing in github.com/go-jose/go-jose · 3 Mar 2025
- MediumGHSA-2c7c-3mj9-8fqhDecryption of malicious PBES2 JWE objects can consume unbounded system resources · 21 Nov 2023
- LowGO-2023-2334Denial of service via decryption of malicious PBES2 JWE objects in github.com/go-jose/go-jose/v3 · 21 Nov 2023
- CriticalCVE-2016-9121Elliptic Curve Key Disclosure in go-jose · 23 Jun 2021
- LowCVE-2016-9121Elliptic curve key disclosure in github.com/square/go-jose · 14 Apr 2021
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.