GHSA-gmc6-fwg3-75m5: MimeKit Denial of Service Vulnerability
HIGHGHSA-gmc6-fwg3-75m5 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-20: Improper Input Validation) affecting MimeKit libraries in the NuGet ecosystem. The issue involves mimekit has vulnerable dependency that can lead to denial of service. Remediation is available by upgrading affected packages to version 4.7.1.
GHSA-gmc6-fwg3-75m5 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 GHSA-gmc6-fwg3-75m5
To remediate this vulnerability, upgrade all affected MimeKit 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 MimeKit to 4.7.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for MimeKit
How to Check if You Are Affected
To determine whether your application is affected by GHSA-gmc6-fwg3-75m5, inspect your project dependencies for MimeKit:
inspect dependencies for MimeKit
Analyze the terminal output to locate any version of MimeKit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.7.1), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In MimeKit, 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
GHSA-gmc6-fwg3-75m5 Affected MimeKit Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
MimeKit
|
NuGet |
≥ 3.0.0
< 4.7.1
|
4.7.1
|
References
Frequently Asked Questions
What is GHSA-gmc6-fwg3-75m5?
Which MimeKit versions are affected?
What version fixes GHSA-gmc6-fwg3-75m5?
Is MimeKit affected?
What is the CVSS score of GHSA-gmc6-fwg3-75m5?
What CWE is associated with GHSA-gmc6-fwg3-75m5?
How can I check NuGet dependencies for GHSA-gmc6-fwg3-75m5?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gmc6-fwg3-75m5",
"modified" : "2024-07-11T17:42:20Z",
"published" : "2024-07-11T17:42:20Z",
"aliases" : [ ],
"summary" : "Mimekit has vulnerable dependency that can lead to denial of service",
"details" : "### Summary\nDenial of service vulnerability.\n\n### Details\nSee: https://github.com/advisories/GHSA-447r-wph3-92pm and https://github.com/dotnet/announcements/issues/312\n\n### PoC\nUpdate System.Security.Cryptography.Pkcs to 8.0.1 so that the transitive dependency with the issue gets updated\n\n### Impact\nDenial of service vulnerability. Affects MimeKit (>= v3.0.0 and <= v4.7.0) when used to decrypt or verify incoming S/MIME messages as well as importing 3rd-party X.509 certificates for use with encrypting outgoing S/MIME messages.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "MimeKit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "4.7.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/jstedfast/MimeKit/security/advisories/GHSA-gmc6-fwg3-75m5"
}, {
"type" : "WEB",
"url" : "https://github.com/dotnet/announcements/issues/312"
}, {
"type" : "WEB",
"url" : "https://github.com/jstedfast/MimeKit/commit/aef4eda75525848b992ce5e1f9b87399000fffb6"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-447r-wph3-92pm"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jstedfast/MimeKit"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-07-11T17:42:20Z",
"nvd_published_at" : null
}
}