CVE-2025-25199: Github.com/microsoft/go crypto winnative Go-crypto-winnative BCryptGenerateSymmetricKey Memory Leak Vulnerability
HIGHCVE-2025-25199 is a HIGH (CVSS 7.5) go-crypto-winnative bcryptgeneratesymmetrickey memory leak vulnerability (CWE-401: Missing Release of Memory after Effective Lifetime) affecting Github.com/microsoft/go crypto winnative libraries in the Go ecosystem. The issue involves go-crypto-winnative bcryptgeneratesymmetrickey memory leak. Remediation is available by upgrading affected packages to version 0.0.0-20250211154640-f49c8e1379ea.
CVE-2025-25199 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2025-25199
To remediate this vulnerability, upgrade all affected Github.com/microsoft/go crypto winnative dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/microsoft/go-crypto-winnative to 0.0.0-20250211154640-f49c8e1379ea
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/microsoft/go-crypto-winnative
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-25199, inspect your project dependencies for Github.com/microsoft/go crypto winnative:
inspect dependencies for github.com/microsoft/go-crypto-winnative
Analyze the terminal output to locate any version of Github.com/microsoft/go crypto winnative in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20250211154640-f49c8e1379ea), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-401: Missing Release of Memory after Effective Lifetime, where the product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse. In Github.com/microsoft/go crypto winnative, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-25199 Affected Github.com/microsoft/go crypto winnative Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/microsoft/go-crypto-winnative
|
Go |
< 0.0.0-20250211154640-f49c8e1379ea
|
0.0.0-20250211154640-f49c8e1379ea
|
References
Frequently Asked Questions
What is CVE-2025-25199?
Which Github.com/microsoft/go crypto winnative versions are affected?
What version fixes CVE-2025-25199?
Is github.com/microsoft/go-crypto-winnative affected?
What is the CVSS score of CVE-2025-25199?
What CWE is associated with CVE-2025-25199?
How can I check Go dependencies for CVE-2025-25199?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-29c6-3hcj-89cf",
"modified" : "2025-02-12T19:20:24Z",
"published" : "2025-02-12T19:20:24Z",
"aliases" : [ "CVE-2025-25199" ],
"summary" : "go-crypto-winnative BCryptGenerateSymmetricKey memory leak",
"details" : "Calls to `cng.TLS1PRF` don't release the key handle, producing a small memory leak every time.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/microsoft/go-crypto-winnative"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.0-20250211154640-f49c8e1379ea"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/microsoft/go-crypto-winnative/security/advisories/GHSA-29c6-3hcj-89cf"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-25199"
}, {
"type" : "WEB",
"url" : "https://github.com/microsoft/go-crypto-winnative/commit/f49c8e1379ea4b147d5bff1b3be5b0ff45792e41"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/microsoft/go-crypto-winnative"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-401" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-02-12T19:20:24Z",
"nvd_published_at" : "2025-02-12T18:15:27Z"
}
}