ManageIQ / ManageIQ/kubeclient

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

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

Nobody has claimed this yet.

Mend: dependency security vulnerability
Dominant language
Ruby
Stars
426
Forks
171
PR merge metrics
No merged PRs in 30d

Description

CVE-2026-42257 - 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, several Net::IMAP commands accept a raw string argument that is sent to the server without validation or escaping. If this string is derived from user-controlled input, it may contain contain CRLF sequences, which an attacker can use to inject arbitrary IMAP commands. 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-42257

CVSS 3 Score Details (6.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: High
    • 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-hm49-wcqc-g2xg

Release Date: 2026-05-05

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


Step up your Open Source Security Game with Mend here

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.

Research direction

Start by inspecting Gemfile.lock and vendor/cache/net-imap-0.5.12.gem, following the dependency path from mail-2.8.1. Update the dependency to a fixed net-imap release, then confirm the lockfile and cached dependency no longer contain 0.5.12.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.