Skip to content
Heist/ feed
Back to feed
MediumFix available

ruby-net-imap — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2026-47242

Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, when Net::IMAP#id is called with a hash argument, although the ID field value strings are correctly quoted (escaping quoted specials), they were not validated to prohibit CRLF sequences. While Net::IMAP#enable does process its arguments for aliases, it does not validate them as valid atoms (or as a list of valid atoms). The #to_s value is sent verbatim. Arguments to either command could be used by an attacker to inject arbitrary IMAP commands. This vulnerability is fixed in 0.6.5 and 0.5.15.

Products
ruby-net-imap
Affected versions
Not specified
Fixed versions
0.4.25-r0, 0.5.15-r0
CVEs
CVE-2026-47242
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 17:57 UTC · Revision 1

Source evidence

ALPINE-CVE-2026-47242

core-osv · Original source

Published 22 Jun 2026, 21:16 UTC

Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, when Net::IMAP#id is called with a hash argument, although the ID field value strings are correctly quoted (escaping quoted specials), they were not validated to prohibit CRLF sequences. While Net::IMAP#enable does process its arguments for aliases, it does not validate them as valid atoms (or as a list of valid atoms). The #to_s value is sent verbatim. Arguments to either command could be used by an attacker to inject arbitrary IMAP commands. This vulnerability is fixed in 0.6.5 and 0.5.15.

osv:ALPINE-CVE-2026-47242

ruby-net-imap

Fixed versions: 0.4.25-r0

ruby-net-imap

Fixed versions: 0.5.15-r0

ruby-net-imap

Fixed versions: 0.5.15-r0

ruby-net-imap

Fixed versions: 0.5.15-r0

Complete source record
{
  "id": "327d61943bd5856b010568ee2b74bb049fd554b312787655703c970c84c44ef4",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2026-47242",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2026-47242",
    "summary": "Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, when Net::IMAP#id is called with a hash argument, although the ID field value strings are correctly quoted (escaping quoted specials), they were not validated to prohibit CRLF sequences. While Net::IMAP#enable does process its arguments for aliases, it does not validate them as valid atoms (or as a list of valid atoms). The #to_s value is sent verbatim. Arguments to either command could be used by an attacker to inject arbitrary IMAP commands. This vulnerability is fixed in 0.6.5 and 0.5.15.",
    "evidence": "osv:ALPINE-CVE-2026-47242",
    "products": [
      {
        "name": {
          "value": "ruby-net-imap",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.4.25-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "ruby-net-imap",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.5.15-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "ruby-net-imap",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.5.15-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "ruby-net-imap",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.5.15-r0",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "ALPINE-CVE-2026-47242",
      "aliases": [
        "ALPINE-CVE-2026-47242"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.4.25-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-net-imap",
            "purl": "pkg:apk/alpine/ruby-net-imap?arch=source",
            "ecosystem": "Alpine:v3.21"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2026-47242.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.5.15-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-net-imap",
            "purl": "pkg:apk/alpine/ruby-net-imap?arch=source",
            "ecosystem": "Alpine:v3.22"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2026-47242.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.5.15-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-net-imap",
            "purl": "pkg:apk/alpine/ruby-net-imap?arch=source",
            "ecosystem": "Alpine:v3.23"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2026-47242.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.5.15-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-net-imap",
            "purl": "pkg:apk/alpine/ruby-net-imap?arch=source",
            "ecosystem": "Alpine:v3.24"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2026-47242.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-27T12:30:04.755154842Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-47242"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2026-47242"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-47242",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 461549,
  "published_at": "2026-06-22T21:16:24.807+00:00"
}