CVE-2025-25199 Details
Description
go-crypto-winnative Go crypto backend for Windows using Cryptography API: Next Generation (CNG). Prior to commit f49c8e1379ea4b147d5bff1b3be5b0ff45792e41, calls to `cng.TLS1PRF` don't release the key handle, producing a small memory leak every time. Commit f49c8e1379ea4b147d5bff1b3be5b0ff45792e41 contains a fix for the issue. The fix is included in versions 1.23.6-2 and 1.22.12-2 of the Microsoft build of go, as well as in the pseudoversion 0.0.0-20250211154640-f49c8e1379ea of the `github.com/microsoft/go-crypto-winnative` Go package.
A memory leak vulnerability has been identified in the Microsoft Go crypto backend for Windows, specifically in versions through 1.23.6-1 and 1.22.12-1. The issue arises because calls to 'cng.TLS1PRF' do not properly release the key handle, leading to a small but cumulative memory leak. This vulnerability has been patched in versions 1.23.6-2 and 1.22.12-2 of the Microsoft build of Go, as well as in the pseudoversion 0.0.0-20250211154640-f49c8e1379ea of the 'github.com/microsoft/go-crypto-winnative' Go package.
Users can upgrade to version 1.23.6-2 or 1.22.12-2 of the Microsoft build of Go. For those using the 'github.com/microsoft/go-crypto-winnative' Go package, the vulnerability can be addressed by updating to the pseudoversion 0.0.0-20250211154640-f49c8e1379ea.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 12, 2025CISA-ADP
Assessed Feb 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/microsoft/go-crypto-winnative/commit/f49c8e1379ea4b147d5bff1b3be5b0ff45792e41 | [email protected] | Source CodeVendor |
| https://github.com/microsoft/go-crypto-winnative/security/advisories/GHSA-29c6-3hcj-89cf | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Microsoft Go | All versions |
CPE
Remediation
| |
| github.com/microsoft/go-crypto-winnative | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 12, 2025 | New CVE Received | [email protected] |
Volerion