# CVE-2025-25199: BCryptGenerateSymmetricKey memory leak

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 05-12-2026)
- Next step: Check applicability: affected before 0.0.0-20250211154640-f49c8e1379ea, 1.22.12-2, 1.23.6-2 (CNA); fix release not confirmed
- Status: published
- Published: 2025-02-12 · Modified: 2025-02-12
- Aliases: GHSA-29c6-3hcj-89cf, GO-2025-3461
- Record: https://cvemate.com/vulnerability/CVE-2025-25199 · JSON: https://cvemate.com/vulnerability/CVE-2025-25199/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.534%, percentile 75.732%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- github.com/microsoft go-crypto-winnative (Go): \< 0.0.0-20250211154640-f49c8e1379ea
- microsoft go-crypto-winnative: \< 1.23.6-2 \| \< 1.22.12-2 \| \< 0.0.0-20250211154640-f49c8e1379ea

## References

- <https://github.com/microsoft/go-crypto-winnative/security/advisories/GHSA-29c6-3hcj-89cf>
- <https://github.com/microsoft/go-crypto-winnative/commit/f49c8e1379ea4b147d5bff1b3be5b0ff45792e41>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-25199>
- <https://github.com/microsoft/go-crypto-winnative>

---

Data as of 2026-12-05T14:13:06.010Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
