Ruby net-imap < 0.5.15 / 0.6.x < 0.6.4.1 Multiple Vulnerabilities

medium Nessus Plugin ID 321503

Synopsis

The remote host has a module installed that is affected by multiple vulnerabilities.

Description

The version of the net-imap Ruby library installed on the remote host is prior to 0.5.15, or 0.6.x prior to 0.6.4.1.
It is, therefore, affected by multiple vulnerabilities.

- Several Net::IMAP commands accept a raw data argument that is sent verbatim after validation to prevent command injection. However, if a server does not support non-synchronizing literals, it may still be possible to inject arbitrary IMAP commands inside non-synchronizing literals. (CVE-2026-47240)

- Several Net::IMAP commands accept a raw string argument which is only validated to prevent CRLF injection and then sent verbatim. If this string is derived from user-controlled input, an attacker can force the next command to be absorbed as a continuation of the first command, causing a denial of service. (CVE-2026-47241)

- Two Net::IMAP commands, id and enable, do not validate their arguments. Arguments to either command could be used by an attacker to inject arbitrary IMAP commands. (CVE-2026-47242)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to net-imap version 0.5.15 or 0.6.4.1 or later.

See Also

http://www.nessus.org/u?85e59783

http://www.nessus.org/u?0f4b0562

http://www.nessus.org/u?f8bf6a87

Plugin Details

Severity: Medium

ID: 321503

File Name: ruby_gem_netimap_CVE_2026_47240_47241_47242.nasl

Version: 1.1

Type: Local

Agent: windows, macosx, unix

Family: Misc.

Published: 6/18/2026

Updated: 6/18/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: High

Score: 8.4

CVSS v2

Risk Factor: Medium

Base Score: 5.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:N/I:C/A:P

CVSS Score Source: CVE-2026-47240

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L

CVSS v4

Risk Factor: Medium

Base Score: 5.8

Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Vulnerability Information

CPE: cpe:/a:ruby:net-imap

Required KB Items: Host/ruby/modules/enumerated

Patch Publication Date: 6/9/2026

Vulnerability Publication Date: 6/9/2026

Reference Information

CVE: CVE-2026-47240, CVE-2026-47241, CVE-2026-47242