| { |
| "dataType": "CVE_RECORD", |
| "dataVersion": "5.0", |
| "cveMetadata": { |
| "cveId": "CVE-2025-58187" |
| }, |
| "containers": { |
| "cna": { |
| "providerMetadata": { |
| "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" |
| }, |
| "title": "Quadratic complexity when checking name constraints in crypto/x509", |
| "descriptions": [ |
| { |
| "lang": "en", |
| "value": "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": [ |
| { |
| "vendor": "Go standard library", |
| "product": "crypto/x509", |
| "collectionURL": "https://pkg.go.dev", |
| "packageName": "crypto/x509", |
| "versions": [ |
| { |
| "version": "0", |
| "lessThan": "1.24.9", |
| "status": "affected", |
| "versionType": "semver" |
| }, |
| { |
| "version": "1.25.0", |
| "lessThan": "1.25.3", |
| "status": "affected", |
| "versionType": "semver" |
| } |
| ], |
| "programRoutines": [ |
| { |
| "name": "parseSANExtension" |
| }, |
| { |
| "name": "domainToReverseLabels" |
| }, |
| { |
| "name": "CertPool.AppendCertsFromPEM" |
| }, |
| { |
| "name": "Certificate.CheckCRLSignature" |
| }, |
| { |
| "name": "Certificate.CheckSignature" |
| }, |
| { |
| "name": "Certificate.CheckSignatureFrom" |
| }, |
| { |
| "name": "Certificate.CreateCRL" |
| }, |
| { |
| "name": "Certificate.Verify" |
| }, |
| { |
| "name": "CertificateRequest.CheckSignature" |
| }, |
| { |
| "name": "CreateCertificate" |
| }, |
| { |
| "name": "CreateCertificateRequest" |
| }, |
| { |
| "name": "CreateRevocationList" |
| }, |
| { |
| "name": "DecryptPEMBlock" |
| }, |
| { |
| "name": "EncryptPEMBlock" |
| }, |
| { |
| "name": "MarshalECPrivateKey" |
| }, |
| { |
| "name": "MarshalPKCS1PrivateKey" |
| }, |
| { |
| "name": "MarshalPKCS1PublicKey" |
| }, |
| { |
| "name": "MarshalPKCS8PrivateKey" |
| }, |
| { |
| "name": "MarshalPKIXPublicKey" |
| }, |
| { |
| "name": "ParseCRL" |
| }, |
| { |
| "name": "ParseCertificate" |
| }, |
| { |
| "name": "ParseCertificateRequest" |
| }, |
| { |
| "name": "ParseCertificates" |
| }, |
| { |
| "name": "ParseDERCRL" |
| }, |
| { |
| "name": "ParseECPrivateKey" |
| }, |
| { |
| "name": "ParsePKCS1PrivateKey" |
| }, |
| { |
| "name": "ParsePKCS1PublicKey" |
| }, |
| { |
| "name": "ParsePKCS8PrivateKey" |
| }, |
| { |
| "name": "ParsePKIXPublicKey" |
| }, |
| { |
| "name": "ParseRevocationList" |
| }, |
| { |
| "name": "RevocationList.CheckSignatureFrom" |
| }, |
| { |
| "name": "SetFallbackRoots" |
| }, |
| { |
| "name": "SystemCertPool" |
| } |
| ], |
| "defaultStatus": "unaffected" |
| } |
| ], |
| "problemTypes": [ |
| { |
| "descriptions": [ |
| { |
| "lang": "en", |
| "description": "CWE-407: Inefficient Algorithmic Complexity" |
| } |
| ] |
| } |
| ], |
| "references": [ |
| { |
| "url": "https://go.dev/issue/75681" |
| }, |
| { |
| "url": "https://go.dev/cl/709854" |
| }, |
| { |
| "url": "https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI" |
| }, |
| { |
| "url": "https://pkg.go.dev/vuln/GO-2025-4007" |
| } |
| ], |
| "credits": [ |
| { |
| "lang": "en", |
| "value": "Jakub Ciolek" |
| } |
| ] |
| } |
| } |
| } |