CVE-2026-34986
Beschrijving NL
Go JOSE biedt een implementatie van de Javascript Object Signing and Encryption set van standaarden in Go, inclusief ondersteuning voor JSON Web Encryption (JWE), JSON Web Signature (JWS) en JSON Web Token (JWT) standaarden. Voorafgaand aan 4.1.4 en 3.0.5 zal het decoderen van een JSON Web Encryption (JWE) -object in paniek raken als het veld alg een algoritme voor het omwikkelen van sleutels aangeeft (een eindigend op KW, met uitzondering van A128GCMKW, A192GCMKW en A256GCMKW) en het veld encrypted_key leeg is. De paniek treedt op wanneer cipher.KeyUnwrap() in key_wrap.go probeert een segment toe te wijzen met een lengte van nul of negatief op basis van de lengte van de versleutelde_sleutel. Dit codepad is bereikbaar vanuit ParseEncrypted () /ParseEncryptedJSON () / ParseEncryptedCompact() gevolgd door Decrypt() op het resulterende object. Merk op dat de parseerfuncties een lijst met geaccepteerde sleutelalgoritmen nemen. Als de geaccepteerde sleutelalgoritmen geen sleutelomwikkelingsalgoritmen bevatten, mislukt het parseren en wordt de toepassing niet beïnvloed. Deze paniek is ook bereikbaar door cipher.KeyUnwrap () rechtstreeks aan te roepen met een ciphertext-parameter van minder dan 16 bytes lang, maar het direct aanroepen van deze functie komt minder vaak voor. Paniek kan leiden tot denial of service. Deze kwetsbaarheid is opgelost in 4.1.4 en 3.0.5.
Origineel (Engels) tonen
Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. Prior to 4.1.4 and 3.0.5, decrypting a JSON Web Encryption (JWE) object will panic if the alg field indicates a key wrapping algorithm (one ending in KW, with the exception of A128GCMKW, A192GCMKW, and A256GCMKW) and the encrypted_key field is empty. The panic happens when cipher.KeyUnwrap() in key_wrap.go attempts to allocate a slice with a zero or negative length based on the length of the encrypted_key. This code path is reachable from ParseEncrypted() / ParseEncryptedJSON() / ParseEncryptedCompact() followed by Decrypt() on the resulting object. Note that the parse functions take a list of accepted key algorithms. If the accepted key algorithms do not include any key wrapping algorithms, parsing will fail and the application will be unaffected. This panic is also reachable by calling cipher.KeyUnwrap() directly with any ciphertext parameter less than 16 bytes long, but calling this function directly is less common. Panics can lead to denial of service. This vulnerability is fixed in 4.1.4 and 3.0.5.
Vendors
Affected products
References
- github.com
- pkg.go.dev
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com