BCryptGenerateSymmetricKey memory leak
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-401.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Microsoft | go-crypto-winnative | before 1.23.6-2; before 1.22.12-2; before 0.0.0-20250211154640-f49c8e1379ea | 1.23.6-2, 1.22.12-2, 0.0.0-20250211154640-f49c8e1379ea | Patch available | CNA |
| — | github.com/microsoft/go-crypto-winnative (Go) | before 0.0.0-20250211154640-f49c8e1379ea | 0.0.0-20250211154640-f49c8e1379ea | Patch available | GHSA-29c6-3hcj-89cf |
- go-crypto-winnative VendorMicrosoft Affected before 1.23.6-2; before 1.22.12-2; before 0.0.0-20250211154640-f49c8e1379ea Fixed in 1.23.6-2, 1.22.12-2, 0.0.0-20250211154640-f49c8e1379ea Patch available CNA
- github.com/microsoft/go-crypto-winnative (Go) Vendor— Affected before 0.0.0-20250211154640-f49c8e1379ea Fixed in 0.0.0-20250211154640-f49c8e1379ea Patch available GHSA-29c6-3hcj-89cf
Remediation
- Fix · CNA go-crypto-winnative (microsoft) Fixed in 1.23.6-2, 1.22.12-2, 0.0.0-20250211154640-f49c8e1379ea
- Fix · GHSA-29c6-3hcj-89cf github.com/microsoft/go-crypto-winnative (Go) Fixed in 0.0.0-20250211154640-f49c8e1379ea Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-25199
- 2026-10-03 Alias added: GHSA-29c6-3hcj-89cf
References
More Microsoft vulnerabilities
- TI-2026-42212 Microsoft SharePoint Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2026-37256 Microsoft SharePoint Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2026-26194 Windows Internet Key Exchange (IKE) Service Extensions Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2026-16982 Microsoft SharePoint Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2025-36863 Windows Server Update Service (WSUS) Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2025-33671 Microsoft SharePoint Server Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2025-25199 · CVE Program
- CVE-2025-25199 · NVD
- FIRST EPSS
- GHSA-29c6-3hcj-89cf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences