ADVISORIES

Vulnerability

CVE-2025-43857

Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.5.7, 0.4.20, 0.3.9, and 0.2.5, there is a possibility for denial of service by memory exhaustion when net-imap reads server responses. At any time while the client is connected, a malicious server can send can send a "literal" byte count, which is automatically read by the client's receiver thread. The response reader immediately allocates memory for the number of bytes indicated by the server response. This should not be an issue when securely connecting to trusted IMAP servers that are well-behaved. It can affect insecure connections and buggy, untrusted, or compromised servers (for example, connecting to a user supplied hostname). This issue has been patched in versions 0.5.7, 0.4.20, 0.3.9, and 0.2.5.

38 advisories report this vulnerability, across 11 ecosystems.

Advisories

  • ALAS2023-2025-1168

    Amazon Linux 2023 - ALAS2023-2025-1168: Medium priority package update for ruby3.2

    Medium CVE-2025-43857 Amazon Linux Updated 8 September 2025
  • ALPINE-CVE-2025-43857

    Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.5.7, 0.4.20, 0.3.9, and 0.2.5, there is a possibility for denial of service by memory exhaustion when…

    CVE-2025-43857 Alpine Updated 27 August 2026
  • CGA-2pmm-4mx4-233x
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-3qc5-fx32-66r2
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-46rm-328c-gpvq
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-475f-hhp2-p3r9
    CVE-2025-43857 Chainguard Updated 5 November 2026
  • CGA-4g72-hxc5-67w9
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-4r4r-p4cq-8j9m
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-4x59-38qj-vq5x
    CVE-2025-43857 Chainguard Updated 27 October 2026
  • CGA-5jx2-9cx2-h45x
    CVE-2025-43857 Chainguard Updated 27 October 2026
  • CGA-7f69-qvp7-pcjx
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-8v3w-8pvh-7hqg
    CVE-2025-43857 Chainguard Updated 11 September 2026
  • CGA-9x84-m822-w4rm
    CVE-2025-43857 Chainguard Updated 27 October 2026
  • CGA-cjj7-74q8-9p79
    CVE-2025-43857 Chainguard Updated 5 November 2026
  • CGA-cqgh-hq94-7vwm
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-fpx5-h7cg-66c3
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-g6hw-7j8r-r833
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-grjp-r68g-3v44
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-h6gv-xcjx-mx2w
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-jf5w-m88q-73q8
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-m353-v5cg-3vq5
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-m99v-j3f2-m45g
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-qc3g-j56v-m9vq
    CVE-2025-43857 Chainguard Updated 5 November 2026
  • CGA-qj44-h3hx-78wg
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-qj57-h8f9-2qq3
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-r2xq-fcpp-g3cv
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-rp4c-5744-5w6h
    CVE-2025-43857 Chainguard Updated 5 November 2026
  • CGA-rrfh-jrjf-c6mh
    CVE-2025-43857 Chainguard Updated 5 November 2026
  • CGA-rwwf-w852-m3r9
    CVE-2025-43857 Chainguard Updated 5 November 2026
  • CGA-vc5g-frq8-xcwx
    CVE-2025-43857 Chainguard Updated 27 October 2026
  • CGA-vjq6-qx5x-whc4
    CVE-2025-43857 ChainguardWolfi Updated 5 November 2026
  • CGA-w7mv-9gfv-cgwq
    CVE-2025-43857 Chainguard Updated 11 September 2026
  • DEBIAN-CVE-2025-43857

    Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.5.7, 0.4.20, 0.3.9, and 0.2.5, there is a possibility for denial of service by memory exhaustion when…

    CVE-2025-43857 Debian Updated 1 September 2026
  • GHSA-j3g3-5qv5-52mj

    net-imap rubygem vulnerable to possible DoS by memory exhaustion

    Moderate CVE-2025-43857 RubyGems Updated 10 September 2026
  • OESA-2025-1640

    ruby security update

    High CVE-2025-43857 openEuler Updated 18 August 2026
  • RHVEX-CVE-2025-43857

    net-imap: net-imap rubygem vulnerable to possible DoS by memory exhaustion

    Moderate CVE-2025-43857 Red Hat Updated 7 November 2026
  • SUSEVEX-CVE-2025-43857

    Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.5.7, 0.4.20, 0.3.9, and 0.2.5, there is a possibility for denial of service by memory exhaustion when…

    Moderate CVE-2025-43857 SUSEopenSUSE Updated 12 November 2026
  • UBUNTU-CVE-2025-43857

    Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.5.7, 0.4.20, 0.3.9, and 0.2.5, there is a possibility for denial of service by memory exhaustion when…

    CVE-2025-43857 Ubuntu Updated 20 November 2026

References