{
  "id": "CVE-2026-42246",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-42246",
  "published_at": "2026-05-09T19:33:17.88Z",
  "title": "net-imap vulnerable to STARTTLS stripping via invalid response timing",
  "vendor": "ruby",
  "product": "net-imap",
  "cvss": {
    "score": 7.6,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.3.10, 0.4.24, 0.5.14, and 0.6.4, a man-in-the-middle attacker can cause Net::IMAP#starttls to return \"successfully\", without starting TLS. This issue has been patched in versions 0.3.10, 0.4.24, 0.5.14, and 0.6.4.",
  "cwe": "CWE-392",
  "cpes": [
    "cpe:2.3:a:ruby-lang:net\\:\\:imap:*:*:*:*:*:ruby:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.6,
    "nvd": 7.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "ruby",
        "product": "net-imap",
        "ranges": [
          "\u003c 0.3.10",
          "\u003e= 0.4.0, \u003c 0.4.24",
          "\u003e= 0.5.0, \u003c 0.5.14",
          "\u003e= 0.6.0, \u003c 0.6.4"
        ],
        "fixed_in": [
          "0.3.10",
          "0.4.24",
          "0.5.14",
          "0.6.4"
        ]
      }
    ],
    "upgrade": [
      "Upgrade net-imap to 0.3.10 or 0.4.24 or 0.5.14 or 0.6.4 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/ruby/net-imap/security/advisories/GHSA-vcgp-9326-pqcp"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/ruby/net-imap/commit/0ede4c40b1523dfeaf95777b2678e54cc0fd9618"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/ruby/net-imap/commit/24a4e770b43230286a05aa2a9746cdbb3eb8485e"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/ruby/net-imap/commit/97e2488fb5401a1783bddd959dde007d9fbce42c"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/ruby/net-imap/commit/f79d35bf5833f186e81044c57c843eda30c873da"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/ruby/net-imap/releases/tag/v0.3.10"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/ruby/net-imap/releases/tag/v0.4.24"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/ruby/net-imap/releases/tag/v0.5.14"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
