# CVE-2025-58187: Quadratic complexity when checking name constraints in crypto/x509

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2025-10-29T21:49:50.000Z
- Modified: 2026-10-08T10:10:00.227Z
- Also known as: GO-2025-4007, BIT-GOLANG-2025-58187
- Related: CGA-r9wq-rhrr-2p5g, RHSA-2026:7291, RHSA-2026:7385
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Go

## Description

Due to the design of the name constraint checking algorithm, the processing time of some inputs scale non-linearly with respect to the size of the certificate. This affects programs which validate arbitrary certificate chains.

(As written by CVE List.)

## Affected

- crypto/x509: before 1.24.9; from 1.25.0 before 1.25.3
- stdlib (Go): before 1.24.9; from 1.25.0 before 1.25.3
- golang go: before 1.24.9; from 1.25.0 before 1.25.3
- golang (Bitnami): before 1.24.9; from 1.25.0 before 1.25.3

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/issue/75681> (issue-tracking, report)
- <https://go.dev/cl/709854> (fix, patch)
- <https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI> (discussion, mailing-list, release-notes, web)
- <https://pkg.go.dev/vuln/GO-2025-4007> (advisory, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2025/10/08/1> (discussion, mailing-list, release-notes)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58187> (web)

## Sources

- CVE List: [CVE-2025-58187](https://www.cve.org/CVERecord?id=CVE-2025-58187), CVE Terms of Use, modified 2025-11-20
- Go Vulnerability Database: [GO-2025-4007](https://pkg.go.dev/vuln/GO-2025-4007), CC-BY-4.0, modified 2026-05-15
- NVD: [CVE-2025-58187](https://nvd.nist.gov/vuln/detail/CVE-2025-58187), Public domain, modified 2026-10-08
- Bitnami Vulnerability Database: [BIT-GOLANG-2025-58187](https://osv.dev/vulnerability/BIT-GOLANG-2025-58187), Apache-2.0, modified 2026-09-08

---

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