Skip to main content
← All vulnerabilities
CVE-2026-89316EUVD-2026-108648GHSA-FV39-8484-F4WR

LoadPublicKey panics on kty/alg mismatch (kty=EC with a non-EC alg) via unchecked *ECDSAOptions type assertion

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.0.0-rc4
None on Exploit-DB, Metasploit or GitHub

Summary

This vulnerability affects the library's function for loading public keys from JSON Web Key (JWK) data. Processing a key that declares an EC key type with a non-EC algorithm causes the software to crash, which can lead to denial of service.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

`LoadPublicKey` resolved an EC key's curve with an unchecked type assertion, `algToOptsMap[alg].(*ECDSAOptions)`. A JWK declaring `"kty":"EC"` together with a non-EC `"alg"` — which RFC 7517 §4.4 permits — reaches that assertion and panics.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • github.com/ThalesGroup/gose

    From 0.7.3 · through 0.13.0-rc1

  • github.com/eclipse-keypont/gose

    fixed in 1.0.0-rc4

References 1

GitHub · eclipse-keypont/gose