---
id: CVE-2025-58187
title: >-
  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
summary: >-
  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.
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-407
vendor: golang
product: go
affected:
  - go < 1.24.9
  - 'go >= 1.25.0, < 1.25.3'
patched:
  - go 1.25.3
published: '2025-10-29'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T10:10:00.227'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-58187'
references:
  - url: 'https://go.dev/cl/709854'
    label: security@golang.org
  - url: 'https://go.dev/issue/75681'
    label: security@golang.org
  - url: 'https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI'
    label: security@golang.org
  - url: 'https://pkg.go.dev/vuln/GO-2025-4007'
    label: security@golang.org
  - url: 'http://www.openwall.com/lists/oss-security/2025/10/08/1'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00406
epssPercentile: 0.32752
ingestedAt: '2026-10-08T10:28:17.684Z'
---

## Overview

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.

## Affected

- `go < 1.24.9`
- `go >= 1.25.0, < 1.25.3`

## Remediation

Upgrade past the affected range:

- `go 1.25.3`
