# CVE-2025-25199: BCryptGenerateSymmetricKey memory leak

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.53%, higher than 75% of CVEs (2026-12-01)
- Published: 2025-02-12T17:49:58.397Z
- Modified: 2026-06-17T09:00:28.217Z
- Also known as: GHSA-29c6-3hcj-89cf, GO-2025-3461
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

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

## Sources

- CVE List: [CVE-2025-25199](https://www.cve.org/CVERecord?id=CVE-2025-25199), CVE Terms of Use, modified 2025-02-12
- GitHub Advisory Database: [GHSA-29c6-3hcj-89cf](https://github.com/advisories/GHSA-29c6-3hcj-89cf), CC-BY-4.0, modified 2025-03-03
- Go Vulnerability Database: [GO-2025-3461](https://pkg.go.dev/vuln/GO-2025-3461), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-25199](https://nvd.nist.gov/vuln/detail/CVE-2025-25199), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-25199 · Whole record: https://cve.day/CVE-2025-25199.json · Rebuilt by cve.day 2026-11-25T22:58:54.050Z
