GHSA-gmc6-fwg3-75m5: MimeKit Denial of Service Vulnerability

HIGH
CVSS 7.5
CWE-20
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-gmc6-fwg3-75m5
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-20: Improper Input Validation
Affected Product MimeKit
Package Ecosystem NuGet
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

MimeKit fixed: 4.7.1
Upgrade MimeKit to 4.7.1
Verify Direct and Transitive Dependencies

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

### Summary Denial of service vulnerability. ### Details See: https://github.com/advisories/GHSA-447r-wph3-92pm and https://github.com/dotnet/announcements/issues/312 ### PoC Update System.Security.Cryptography.Pkcs to 8.0.1 so that the transitive dependency with the issue gets updated ### Impact Denial 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.

GHSA-gmc6-fwg3-75m5 Affected MimeKit Versions

1 component(s)
Fixed Versions:
4.7.1
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?
GHSA-gmc6-fwg3-75m5 is a security vulnerability in MimeKit involving Mimekit has vulnerable dependency that can lead to denial of service under CWE-20: Improper Input Validation.
Which MimeKit versions are affected?
Affected versions include releases prior to 4.7.1 across affected packages: MimeKit.
What version fixes GHSA-gmc6-fwg3-75m5?
Upgrading to 4.7.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is MimeKit affected?
Yes, MimeKit is affected in releases prior to 4.7.1. Upgrade your dependency to 4.7.1 or later.
What is the CVSS score of GHSA-gmc6-fwg3-75m5?
GHSA-gmc6-fwg3-75m5 has 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.
What CWE is associated with GHSA-gmc6-fwg3-75m5?
GHSA-gmc6-fwg3-75m5 is classified under CWE-20: Improper Input Validation (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.).
How can I check NuGet dependencies for GHSA-gmc6-fwg3-75m5?
Run the dependency tree command: 'inspect dependencies for MimeKit'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}