Patchwire CVEs, their patch status, and feeds to follow them

CVE-2025-43857

Fixed in a distro release EPSS <1%CVSS 6.0

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.

Published 2025-04-28 · CVE record · OSV

Products: ruby net-imap

Fixed upstream

EcosystemPackageFixed in
RubyGemsnet-imap0.5.7
RubyGemsnet-imap0.4.20
RubyGemsnet-imap0.3.9
RubyGemsnet-imap0.2.5

Distro releases

ReleasePackageFixed in
Alpine 3.20ruby-net-imap0.4.22-r0
Alpine 3.21ruby-net-imap0.4.22-r0
Chainguardgitlab-rails-ce-18.1no fix
Chainguardgitlab-rails-ce-18.2no fix
Chainguardgitlab-rails-ce-fips-18.1no fix
Chainguardgitlab-rails-ce-fips-18.2no fix
Chainguardgraalvm-24-trufflerubyno fix
Chainguardjruby-9.49.4.13.0-r0
Chainguardjruby-9.4-default-ruby9.4.13.0-r0
Chainguardkube-fluentd-operator1.18.2-r36
Chainguardkube-fluentd-operator-compat1.18.2-r36
Chainguardkube-fluentd-operator-default-config1.18.2-r36
Chainguardkube-fluentd-operator-oci-entrypoint1.18.2-r36
Chainguardlogstash-8-with-output-opensearchno fix
Chainguardruby-3.1no fix
Chainguardruby-3.1-devno fix
Chainguardtruffleruby34.0.1-r0
Debian 12ruby3.1no fix
Debian 13ruby3.3no fix
Debian 14ruby3.3no fix
Ubuntu 16.04 LTSjrubyno fix
Ubuntu 18.04 LTSjrubyno fix
Ubuntu 20.04 LTSjrubyno fix
Ubuntu 22.04 LTSruby3.0no fix
Ubuntu 24.04 LTSjrubyno fix
Ubuntu 24.04 LTSruby3.2no fix
Ubuntu 25.10jrubyno fix
Ubuntu 25.10ruby3.3no fix
Ubuntu 26.04 LTSjrubyno fix
Ubuntu 26.04 LTSruby3.3no fix
Ubuntu 26.10jrubyno fix
Ubuntu 26.10ruby3.3no fix
Ubuntu Pro 14.04 LTSjrubyno fix
Ubuntu Pro 18.04 LTSruby2.5no fix
Ubuntu Pro 20.04 LTSruby2.7no fix
Wolfijruby-9.49.4.13.0-r0
Wolfijruby-9.4-default-ruby9.4.13.0-r0
Wolfikube-fluentd-operator1.18.2-r36
Wolfikube-fluentd-operator-compat1.18.2-r36
Wolfikube-fluentd-operator-default-config1.18.2-r36
Wolfikube-fluentd-operator-oci-entrypoint1.18.2-r36
Wolfilogstash-8-with-output-opensearchno fix
Wolfiruby-3.1no fix
Wolfiruby-3.1-devno fix