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

- Severity: Medium 6.3 (CVSS:4.0, scored by eclipse) `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-23T08:48:08.682Z
- Modified: 2026-11-02T14:17:40.263Z
- Weaknesses: CWE-248
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: eclipse

## 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**.

(As written by CVE List.)

## Affected

- github.com/ThalesGroup/gose: from 0.7.3 up to 0.13.0-rc1
- github.com/eclipse-keypont/gose: before 1.0.0-rc4

## References

- <https://github.com/eclipse-keypont/gose/security/advisories/GHSA-fv39-8484-f4wr> (exploit)

## Sources

- CVE List: [CVE-2026-89316](https://www.cve.org/CVERecord?id=CVE-2026-89316), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2026-89316](https://nvd.nist.gov/vuln/detail/CVE-2026-89316), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-89316 · Whole record: https://cve.day/CVE-2026-89316.json · Rebuilt by cve.day 2026-11-25T22:59:46.869Z
