CVE-2026-47241: Net::IMAP Denial of Service via Incomplete Raw Argument Validation

net-imap Updated 09 Jun 2026

Summary

09/06/2026
Yes i
Low
2.1

CVE-2026-47241: Net::IMAP: Denial of Service via incomplete raw argument validation. Affects net-imap across 2 version ranges.

< 0.5.15 >= 0.6.0, < 0.6.4.1

Fixed in 0.5.15 or 0.6.4.1, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Net::IMAP is a Ruby library that provides an interface for interacting with Internet Message Access Protocol (IMAP) servers. It allows users to manage and retrieve emails from their mail servers. The library is widely used in applications that require email functionalities, making it crucial for maintaining reliable communication. However, it is susceptible to vulnerabilities that can lead to denial of service attacks, particularly when user-controlled input is not properly validated.

Vulnerability Detail

The vulnerability arises from several Net::IMAP commands that accept raw string arguments, which are only partially validated to prevent CRLF injection. If an attacker provides a crafted string derived from user input, they can manipulate the command flow, causing the first command to hang until another command is issued. This can lead to unexpected crashes and timeouts, effectively creating a denial of service scenario. The issue is exacerbated in multi-threaded environments where commands may not be synchronized, leading to further complications.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 0.5.15 0.5.15
    gem install net-imap -v 0.5.15
  • >= 0.6.0, < 0.6.4.1 0.6.4.1
    gem install net-imap -v 0.6.4.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading is not possible, validate user input to ensure that it does not end with '}' before passing it to the affected command arguments. Additionally, implement timeout strategies to handle slow connections and misbehaving servers. Here is a sample code snippet for input validation:

if user_input.end_with?('}') raise 'Invalid input: cannot end with }' end

Conclusion

CVE-2026-47241 represents a significant risk for applications using the Net::IMAP library, particularly in multi-threaded environments. It is essential to update to the patched versions or implement workarounds to mitigate potential denial of service attacks.

See every vulnerability recorded for net-imap →

Share this vulnerability

FAQ

CVE-2026-47241 is a vulnerability in the Net::IMAP library that allows for denial of service attacks due to incomplete validation of raw string arguments.

If your application uses the Net::IMAP library and accepts user input for IMAP commands, it may be vulnerable to denial of service attacks, leading to application hangs or crashes.

Versions of net-imap prior to 0.6.4.1 and 0.5.15 are affected by this vulnerability.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.

If upgrading is not feasible, ensure that user inputs are validated to prevent the use of invalid characters and implement timeout strategies to mitigate the effects of this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for net-imap.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 0.5.15 0.5.15
    gem install net-imap -v 0.5.15
  • >= 0.6.0, < 0.6.4.1 0.6.4.1
    gem install net-imap -v 0.6.4.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback