# CVE-2025-58188: Panic when validating certificates with DSA public keys in crypto/x509

> Attackers can cause a denial of service by triggering a panic in Go applications validating certificate chains with DSA public keys.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 29 Oct 2025
- **Updated:** 4 Nov 2025
- **Also known as:** AZL-69146, AZL-69275, AZL-78915, AZL-98775, BELL-CVE-2025-58188, BIT-golang-2025-58188, CLEANSTART-2026-FX38492, CLEANSTART-2026-IV08874, CLEANSTART-2026-KA25006, CLEANSTART-2026-RI58790, DEBIAN-CVE-2025-58188, ECHO-fe41-738d-e691, GHSA-7wwx-xj66-r44x, GO-2025-4013, MINI-22cf-h49g-3h4w, MINI-22rw-93c8-wv36, MINI-24jc-99gw-45j9, MINI-24w3-p87w-4hpc, MINI-278w-7x96-xm5j, MINI-2924-w7pm-f6x4, MINI-2gmv-99hp-vchw, MINI-2mjc-7rcv-c27x, MINI-2mrg-jjvh-h4hp, MINI-2p6x-qp3f-5r6w, MINI-2ppr-52mm-2gwm, MINI-2q8q-hgmp-rgpm, MINI-2xxv-hfrg-37jp, MINI-3287-v969-54g5, MINI-32mp-cxg8-xcc3, MINI-32xg-835f-xxgm, MINI-3493-2jmx-77v6, MINI-34vh-v48h-r92f, MINI-35h7-36cg-f683, MINI-3855-53w2-v5gh, MINI-38mp-f953-9hg5, MINI-3f4w-57pg-8jcj, MINI-3jpg-4g2f-772w, MINI-3m9w-jwhj-96m8, MINI-3q3j-4g7r-rvcf, MINI-3rrf-wmv7-cqjj, MINI-3v87-x92h-4533, MINI-3xjj-cx6m-9cq7, MINI-429v-fgg5-r37h, MINI-43wp-v38p-pr9v, MINI-43x5-c9hx-w94p, MINI-4fgx-qc5w-ffqx, MINI-4phg-mg2x-xp94, MINI-4q5q-q2r8-p5rv, MINI-4r57-jcwg-xcwc, MINI-4rx2-pp3x-hrv6, MINI-4x43-prh2-xp9x, MINI-523p-m58x-878j, MINI-53jm-h496-9p54, MINI-54p3-r7g9-5wrp, MINI-576h-rc24-66w6, MINI-59m4-qj4m-h2rm, MINI-59ww-4jwv-f2ph, MINI-5cc2-mg49-jxf3, MINI-5cjq-95ch-qjmh, MINI-5hc3-8r24-695f, MINI-5mfx-9wh8-xmp3, MINI-5q8f-v5wq-m3mq, MINI-5rr5-g8jh-fq93, MINI-5vqw-p6qq-vpjr, MINI-5wvx-8gqw-34hg, MINI-5xmh-867m-9pjv, MINI-5xwp-wmw6-m4mr, MINI-62hx-539p-pjcm, MINI-63qv-wgmj-vwq9, MINI-65jp-7pxj-5cxf, MINI-67jp-f7fg-vfjv, MINI-69fv-2f6h-8p2p, MINI-69j4-hpmq-5fc9, MINI-6fqp-h8pq-w9ch, MINI-6h2g-m9g5-7rv2, MINI-6mgc-pmv9-h326, MINI-6pj2-qr2q-jr3p, MINI-6pm5-9h9c-rv22, MINI-6qfh-43w7-xrfr, MINI-6rgj-jxm8-p43v, MINI-6v95-3662-pwgq, MINI-6xr6-xwq9-pvr7, MINI-72p2-4jj8-6p27, MINI-72wg-8ccw-mwvw, MINI-73mh-gr76-xhvh, MINI-73mp-mvrj-6749, MINI-7564-6mp7-j4vv, MINI-76mq-274g-xq9w, MINI-77hj-qr3f-gmpp, MINI-77vm-9rfg-x83v, MINI-7898-xvmf-hcfj, MINI-7cg8-8r7g-xhwr, MINI-7f83-8jwq-q5fp, MINI-7fpf-5qx6-rccf, MINI-7h2q-4grg-7gg7, MINI-7h7v-f96r-xj2j, MINI-7qpx-ch5c-wqq9, MINI-7rw5-p2xj-5fgp, MINI-7v9f-r9rf-c2m7, MINI-7w3x-fp99-fxw9, MINI-7xpg-vffj-pwpp, MINI-84xf-8wfq-j2hw, MINI-873m-934w-2v7c, MINI-877w-4vmp-hcm8, MINI-884q-x2pc-mwph, MINI-88q4-9vfv-37pv, MINI-8f79-j8m8-v4mr, MINI-8h7g-f8v6-j9jg, MINI-8hwh-jjrj-4rq8, MINI-8qh8-3mp6-3858, MINI-8qx4-q9px-x7w5, MINI-8x5w-fxfq-5g6x, MINI-95mm-pm95-cfmx, MINI-9c85-537x-v24g, MINI-9cph-6mfx-pv42, MINI-9f6x-gwhf-xm3r, MINI-9grq-g85x-6g44, MINI-9j64-x8v7-84m2, MINI-9j9r-cm5p-5hcp, MINI-9mq2-778m-r3jm, MINI-9p86-523f-rq8x, MINI-9xg9-4xcx-8866, MINI-9xv7-6f38-p537, MINI-c3m6-38x3-946f, MINI-c5f7-5jh9-673r, MINI-c5m8-gj76-3235, MINI-c7mc-53hr-pvhw, MINI-c7rj-7gh5-695q, MINI-cg8m-h3f4-w5fm, MINI-cg9c-q377-5rj6, MINI-cgj6-jfqw-4784, MINI-chxm-f9v2-wjcv, MINI-cr9x-24f3-6j7h, MINI-crm2-hrcg-hj68, MINI-crp3-ppj6-36g7, MINI-cv5x-f5rf-8h6r, MINI-cwmj-mf6j-2hw7, MINI-f3xj-wcv2-x8cf, MINI-f5vg-27x6-hgf7, MINI-f8mh-cpx9-56wg, MINI-f9ph-9rxx-5pcv, MINI-fc7w-v559-55wx, MINI-fcgw-fm7v-4j32, MINI-fcwr-5qfh-cf77, MINI-fh26-466v-vv93, MINI-fmr8-qx3g-m8w2, MINI-frmx-89pv-xpm4, MINI-g666-q3xq-hr8g, MINI-g6hw-3349-6p6f, MINI-g999-vh7c-36hf, MINI-g9m7-fqfw-gqp8, MINI-gh7c-48w4-2jgv, MINI-gvf8-446r-34j9, MINI-gvj6-f7wc-h8cm, MINI-gvr7-fg49-5h5j, MINI-gw95-49rf-48m4, MINI-gwvx-qcm2-c3qg, MINI-gx35-hj23-wvgm, MINI-gx4g-f2h2-9755, MINI-h7h7-2gcp-5w5w, MINI-h9fm-6vhh-8wf9, MINI-hcvh-vf26-vqvw, MINI-hffj-fj2x-4wvw, MINI-hgp8-3w85-cw93, MINI-hgvq-3hrm-6pjx, MINI-hhq5-g389-w9g3, MINI-hj6q-87f6-537w, MINI-hmjp-3cx7-93xj, MINI-hqq9-xw45-7gr4, MINI-hr74-hmg2-f4hc, MINI-hvqg-j3hq-v4xq, MINI-hwcc-w95x-r6gg, MINI-hwgp-89p5-wp58, MINI-hwh6-j6x6-24r2, MINI-hwj6-gjxx-p5x2, MINI-hx3c-v482-wqfm, MINI-hx4q-3x36-9922, MINI-j2rp-qg4g-h528, MINI-j3vj-8p59-vh86, MINI-j4m4-9f3j-pfw3, MINI-j6fj-53x6-hm25, MINI-j9h5-95f2-hmfw, MINI-jfmr-qhqq-vrx8, MINI-jj35-4ph5-72pq, MINI-jm32-5w9g-rhh5, MINI-jp2w-2xx4-r7rg, MINI-jpgh-83fr-8fwp, MINI-jv8q-57pg-fwpw, MINI-jvfp-28mx-8xjm, MINI-jvmf-wq89-4vx3, MINI-jw27-rj7x-6hhq, MINI-jw93-vhw5-4gcc, MINI-jxfc-9v68-j4j2, MINI-m2mh-p92m-g3mv, MINI-m3f3-q23m-583g, MINI-m3pw-72pw-vfwq, MINI-m3qp-8vx8-762r, MINI-m446-95h5-865c, MINI-m45x-jpwq-89hr, MINI-m56h-87qq-x45j, MINI-m7j8-x3x7-mcjf, MINI-m8mx-6qx8-h284, MINI-m94g-2gq5-85v5, MINI-mgh2-cpq7-w3ch, MINI-mghq-63xx-wm56, MINI-mhfq-vjcv-r9mf, MINI-mj3p-j5h2-76h2, MINI-mjgm-6566-c2x4, MINI-mjwj-h8gm-jwxw, MINI-mwjf-wj8r-94r7, MINI-mx69-phww-fr99, MINI-mx9g-4gxr-9j27, MINI-p43c-6hv9-m88x, MINI-p5fm-xq2v-g9jx, MINI-p7m2-3wqf-cpvg, MINI-p8vj-pvjm-4wrm, MINI-p9wv-vvxf-2ph8, MINI-pc3g-r2jx-vpg3, MINI-pc8q-46c8-ch8v, MINI-pf87-8355-phm9, MINI-pgqr-5vg5-6rfr, MINI-pjm3-738w-r7j4, MINI-pp26-cmwm-fm35, MINI-pp5j-p9r5-439v, MINI-ppgx-5g58-6rv4, MINI-q44f-x2wp-pxg7, MINI-q6h2-cxrv-cf77, MINI-q7m9-gpwh-cr2m, MINI-q7xg-3898-58j3, MINI-qc8c-36j9-gr8c, MINI-qg9p-h8vg-9wf3, MINI-qmq5-59qx-8289, MINI-qrmj-xhcq-mhpp, MINI-r2h8-vv3r-cmv2, MINI-r2w5-r63q-c9m5, MINI-r4xg-xpg5-q7v3, MINI-r79x-5jwj-pxm6, MINI-r8vv-r3p9-j9p4, MINI-rgwq-cp82-82qj, MINI-rjp7-8r6v-rgj5, MINI-rjq8-mjxx-gp9m, MINI-rm52-vww3-2rpw, MINI-rp72-v5xm-52q8, MINI-rpg6-mrxr-jvrj, MINI-rw97-qh5h-j4qp, MINI-rx3g-865w-qx48, MINI-rxmm-6g68-p4c9, MINI-v542-f7qc-7rp9, MINI-v558-rgv5-rrwg, MINI-v55j-pv6c-xhcp, MINI-v669-43r2-7r5p, MINI-v86r-pc3w-h255, MINI-vc5g-wcfh-r368, MINI-vf3c-5mc5-pqhm, MINI-vfm9-4pxx-q49g, MINI-vfww-qfp3-863m, MINI-vggp-94wq-hqv2, MINI-vh2g-j69f-h62v, MINI-vhhq-qh28-63xq, MINI-vjv6-74wc-jjvj, MINI-vmv2-68v2-j797, MINI-vp38-f64m-9x8q, MINI-vrv4-73q8-wg7f, MINI-vvp5-6g8g-582m, MINI-vwhr-hwr7-whfc, MINI-vx6w-p6g3-7gg2, MINI-w2cc-ffgh-4r26, MINI-w3f8-g9c6-p9r3, MINI-w3rr-5xf4-mrc7, MINI-w64c-ch5j-qvh3, MINI-w72r-vphg-77pm, MINI-w7fw-gw33-63q5, MINI-wg93-mw6v-4whg, MINI-wgm9-qgv3-j9qq, MINI-wpjq-9cwv-wrqm, MINI-wrqc-hqqf-xp5h, MINI-wvgm-qqwj-f9qh, MINI-ww86-jqpg-9qqx, MINI-wwm6-qj88-r9jq, MINI-wwx9-9f9j-7pg3, MINI-x2g3-5h42-xh56, MINI-x2wv-m9h7-q4hp, MINI-x4hm-5xm6-vmwh, MINI-x74c-2pj8-7wrq, MINI-x756-j5jh-76cg, MINI-x7r4-6cc2-7vpm, MINI-x8r3-9769-r6j5, MINI-xc7c-4mp6-hmff, MINI-xcmh-wj92-v5fq, MINI-xg2p-8qvv-m2p2, MINI-xgcj-cqgg-69fm, MINI-xmh9-wfp8-8f79, MINI-xrv7-p536-hwhf, MINI-xvjx-77xp-qr4m, MINI-xw2h-9ffv-jmp5, ROOT-OS-DEBIAN-13-CVE-2025-58188, UBUNTU-CVE-2025-58188, openSUSE-SU-2025:15734-1

## What is CVE-2025-58188?

CVE-2025-58188 is a high-severity denial of service vulnerability in Golang Go, published on 29 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Validating certificate chains which contain DSA public keys can cause programs to panic, due to a interface cast that assumes they implement the Equal method. This affects programs which validate arbitrary certificate chains.

Weakness: CWE-295 (Improper Certificate Validation)

## Which versions are affected by CVE-2025-58188?

2 open source packages ship an affected version, including golang and stdlib. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `golang` | Bitnami | All versions | 1.24.8, 1.25.2 |
| `stdlib` | Go | All versions | 1.24.8, 1.25.2 |
| `starboard` | openSUSE:Tumbleweed | All versions | 0.15.28-1.1 |

Products: Golang Go.

## How do I fix CVE-2025-58188?

Upgrade golang to a fixed version for your release line: 1.24.8 or 1.25.2.

## Is CVE-2025-58188 being exploited?

There is no known exploitation of CVE-2025-58188 in the wild and no public exploit code.

## Other vulnerabilities in Golang Go

- [CVE-2020-0601](https://insights.sbomify.com/CVE-2020-0601/): Microsoft Windows CryptoAPI Spoofing (high 8.1, exploited in the wild)
- [CVE-2026-27143](https://insights.sbomify.com/CVE-2026-27143/): Missing bound checks can lead to memory corruption in safe Go in cmd/compile (critical 9.8)
- [CVE-2024-24790](https://insights.sbomify.com/CVE-2024-24790/): Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses in net/netip (critical 9.8)
- [CVE-2023-39320](https://insights.sbomify.com/CVE-2023-39320/): Arbitrary code execution via go.mod toolchain directive in cmd/go (critical 9.8)
- [CVE-2023-24540](https://insights.sbomify.com/CVE-2023-24540/): Improper handling of JavaScript whitespace in html/template (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-58188 and fix it if it is affected.

What it is: CVE-2025-58188 is a high-severity denial of service vulnerability in Golang Go, published on 29 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-58188 in the wild and no public exploit code.

Affected packages and fixed versions:
- golang (Bitnami): affected all versions; fixed in 1.24.8, 1.25.2
- stdlib (Go): affected all versions; fixed in 1.24.8, 1.25.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-58188/ (Markdown: https://insights.sbomify.com/CVE-2025-58188/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-58188
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-58188
- OSV: https://osv.dev/vulnerability/CVE-2025-58188

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-58188/
Summaries are generated and may contain mistakes; the official description above is the record.
