Wiz Agents & Workflows are here

CVE-2025-25199
vulnerability analysis and mitigation

Overview

CVE-2025-25199 affects go-crypto-winnative, a Go crypto backend for Windows using Cryptography API: Next Generation (CNG). The vulnerability was discovered and disclosed on February 12, 2025. The issue exists in versions prior to 1.23.6-2 and 1.22.12-2 of the Microsoft build of Go, where calls to cng.TLS1PRF fail to release the key handle (GitHub Advisory).

Technical details

The vulnerability is caused by a failure to properly release key handles in the cng.TLS1PRF function, resulting in a memory leak each time the function is called. The issue has been assigned a CVSS v3.1 base score of 7.5 (High) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. The vulnerability is classified under CWE-401 (Missing Release of Memory after Effective Lifetime) (NVD).

Impact

The primary impact of this vulnerability is on system availability through memory resource exhaustion. Each time the affected function is called, it creates a small memory leak, which over time can accumulate and potentially lead to system performance degradation or instability (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed 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. The fix involves adding a deferred call to destroy the key handle after use (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management