CVE-2026-42245 (Medium) detected in net-imap-0.5.12.gem

Open Beginner friendly
#710 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
ruby
Domain
security

Research direction

Start with Gemfile.lock and the cached gem at vendor/cache/net-imap-0.5.12.gem, then trace the dependency through mail and validate_email. Upgrade net-imap to the fixed 0.5.14 release and update the dependency metadata so the vulnerable 0.5.12 version is no longer present. Done means the lockfile and vendor cache resolve to a patched version.

Written by the indexing model from the issue text.

Description

Mend: dependency security vulnerability

CVE-2026-42245 - Medium Severity Vulnerability

Vulnerable Library - net-imap-0.5.12.gem

Ruby client api for Internet Message Access Protocol

Library home page: https://rubygems.org/gems/net-imap-0.5.12.gem

Sample Path to Dependency File: /Gemfile.lock

Path to vulnerable library: /vendor/cache/net-imap-0.5.12.gem

Dependency Hierarchy:

  • openid_connect-1.4.2.gem (Root Library)
    • validate_email-0.1.6.gem
      • mail-2.8.1.gem
        • net-imap-0.5.12.gem (Vulnerable Library)

Found in base branch: master

Vulnerability Details

Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.4.24, 0.5.14, and 0.6.4, Net::IMAP::ResponseReader has quadratic time complexity when reading large responses containing many string literals. A hostile server can send responses which are crafted to exhaust the client's CPU for a denial of service attack. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.

Publish Date: 2026-05-09

URL: CVE-2026-42245

CVSS 3 Score Details (4.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/ruby/net-imap/security/advisories/GHSA-q2mw-fvj9-vvcw

Release Date: 2026-05-05

Fix Resolution: net-imap - 0.5.14,https://github.com/ruby/net-imap.git - v0.4.24,https://github.com/ruby/net-imap.git - v0.5.14,https://github.com/ruby/net-imap.git - v0.6.4,net-imap - 0.6.4,net-imap - 0.4.24


Step up your Open Source Security Game with Mend here

Dominant language
Ruby
Stars
426
Forks
171
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ManageIQ/kubeclient

All issues in ManageIQ/kubeclient

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.