CVEfocus › CVE database › CVE-2025-0306

CVE-2025-0306Ruby: openssl: ruby marvin attack

CVSS 7.4 HighEPSS 0.7% (higher than 52% of CVEs)Published 2025-01-09Updated 2026-11-24Assigner: redhat

A vulnerability was found in Ruby. The Ruby interpreter is vulnerable to the Marvin Attack. This attack allows the attacker to decrypt previously encrypted messages or forge signatures by exchanging a large number of messages with the vulnerable service.

CWE-385

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
24Will not fix
88Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04ruby3.2Not affected
vulnerable_code_not_present
Ubuntu 22.04ruby3.0Not affected
vulnerable_code_not_present
Debian 12ruby3.1Fixed3.1.2-8.4DEBIAN-CVE-2025-0306
Red Hat Enterprise Linux 10rubyNot affected
Red Hat Enterprise Linux 10ruby-bundled-gemsNot affected
Red Hat Enterprise Linux 10ruby-default-gemsNot affected
Red Hat Enterprise Linux 10ruby-develNot affected
Red Hat Enterprise Linux 10ruby-docNot affected
Red Hat Enterprise Linux 10ruby-libsNot affected
Red Hat Enterprise Linux 10rubygem-bigdecimalNot affected
Red Hat Enterprise Linux 10rubygem-bundlerNot affected
Red Hat Enterprise Linux 10rubygem-io-consoleNot affected
Red Hat Enterprise Linux 10rubygem-irbNot affected
Red Hat Enterprise Linux 10rubygem-jsonNot affected
Red Hat Enterprise Linux 10rubygem-minitestNot affected
Red Hat Enterprise Linux 10rubygem-power_assertNot affected
Red Hat Enterprise Linux 10rubygem-psychNot affected
Red Hat Enterprise Linux 10rubygem-raccNot affected
Red Hat Enterprise Linux 10rubygem-rakeNot affected
Red Hat Enterprise Linux 10rubygem-rbsNot affected
Red Hat Enterprise Linux 10rubygem-rdocNot affected
Red Hat Enterprise Linux 10rubygem-rexmlNot affected
Red Hat Enterprise Linux 10rubygem-rssNot affected
Red Hat Enterprise Linux 10rubygem-test-unitNot affected
Red Hat Enterprise Linux 10rubygem-typeprofNot affected
Red Hat Enterprise Linux 10rubygemsNot affected
Red Hat Enterprise Linux 10rubygems-develNot affected
Red Hat Enterprise Linux 9rubyNot affected
Red Hat Enterprise Linux 9ruby-default-gemsNot affected
Red Hat Enterprise Linux 9ruby-develNot affected
Red Hat Enterprise Linux 9ruby-docNot affected
Red Hat Enterprise Linux 9ruby-libsNot affected
Red Hat Enterprise Linux 9rubygem-bigdecimalNot affected
Red Hat Enterprise Linux 9rubygem-bundlerNot affected
Red Hat Enterprise Linux 9rubygem-io-consoleNot affected
Red Hat Enterprise Linux 9rubygem-irbNot affected
Red Hat Enterprise Linux 9rubygem-jsonNot affected
Red Hat Enterprise Linux 9rubygem-minitestNot affected
Red Hat Enterprise Linux 9rubygem-power_assertNot affected
Red Hat Enterprise Linux 9rubygem-psychNot affected
Red Hat Enterprise Linux 9rubygem-rakeNot affected
Red Hat Enterprise Linux 9rubygem-rbsNot affected
Red Hat Enterprise Linux 9rubygem-rdocNot affected
Red Hat Enterprise Linux 9rubygem-rexmlNot affected
Red Hat Enterprise Linux 9rubygem-rssNot affected
Red Hat Enterprise Linux 9rubygem-test-unitNot affected
Red Hat Enterprise Linux 9rubygem-typeprofNot affected
Red Hat Enterprise Linux 9rubygemsNot affected
Red Hat Enterprise Linux 9rubygems-develNot affected
Red Hat Enterprise Linux 8rubyNot affected
Red Hat Enterprise Linux 8ruby-bundled-gemsNot affected
Red Hat Enterprise Linux 8ruby-default-gemsNot affected
Red Hat Enterprise Linux 8ruby-develNot affected
Red Hat Enterprise Linux 8ruby-docNot affected
Red Hat Enterprise Linux 8ruby-irbNot affected
Red Hat Enterprise Linux 8ruby-libsNot affected
Red Hat Enterprise Linux 8rubygem-abrtNot affected
Red Hat Enterprise Linux 8rubygem-abrt-docNot affected
Red Hat Enterprise Linux 8rubygem-bigdecimalNot affected
Red Hat Enterprise Linux 8rubygem-bsonNot affected
Red Hat Enterprise Linux 8rubygem-bson-docNot affected
Red Hat Enterprise Linux 8rubygem-bundlerNot affected
Red Hat Enterprise Linux 8rubygem-bundler-docNot affected
Red Hat Enterprise Linux 8rubygem-did_you_meanNot affected
Red Hat Enterprise Linux 8rubygem-io-consoleNot affected
Red Hat Enterprise Linux 8rubygem-irbNot affected
Red Hat Enterprise Linux 8rubygem-jsonNot affected
Red Hat Enterprise Linux 8rubygem-minitestNot affected
Red Hat Enterprise Linux 8rubygem-mongoNot affected
Red Hat Enterprise Linux 8rubygem-mongo-docNot affected
Red Hat Enterprise Linux 8rubygem-mysql2Not affected
Red Hat Enterprise Linux 8rubygem-mysql2-docNot affected
Red Hat Enterprise Linux 8rubygem-net-telnetNot affected
Red Hat Enterprise Linux 8rubygem-opensslNot affected
Red Hat Enterprise Linux 8rubygem-pgNot affected
Red Hat Enterprise Linux 8rubygem-pg-docNot affected
Red Hat Enterprise Linux 8rubygem-power_assertNot affected
Red Hat Enterprise Linux 8rubygem-psychNot affected
Red Hat Enterprise Linux 8rubygem-raccNot affected
Red Hat Enterprise Linux 8rubygem-rakeNot affected
Red Hat Enterprise Linux 8rubygem-rbsNot affected
Red Hat Enterprise Linux 8rubygem-rdocNot affected
Red Hat Enterprise Linux 8rubygem-rexmlNot affected
Red Hat Enterprise Linux 8rubygem-rssNot affected
Red Hat Enterprise Linux 8rubygem-test-unitNot affected
Red Hat Enterprise Linux 8rubygem-typeprofNot affected
Red Hat Enterprise Linux 8rubygem-xmlrpcNot affected
Red Hat Enterprise Linux 8rubygemsNot affected
Red Hat Enterprise Linux 8rubygems-develNot affected
Red Hat Enterprise Linux 7rubyWill not fix
Out of support scope
Red Hat Enterprise Linux 7ruby-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7ruby-docWill not fix
Out of support scope
Red Hat Enterprise Linux 7ruby-irbWill not fix
Out of support scope
Red Hat Enterprise Linux 7ruby-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7ruby-tcltkWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygem-bigdecimalWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygem-io-consoleWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygem-jsonWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygem-minitestWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygem-psychWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygem-rakeWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygem-rdocWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygemsWill not fix
Out of support scope
Red Hat Enterprise Linux 7rubygems-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6rubyWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-irbWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-rdocWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-riWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 6ruby-tcltkWill not fix
Out of support scope

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: See the following possible mitigations for this flaw: * Do not use the methods with PKCS#1v1.5 padding in network contexts. Make sure that any calls that happen, will perform OAEP decryption only. Do not support PKCS#1v1.5 encryption padding at all. * Use Ruby with a version of OpenSSL that has the implicit rejection mechanism implemented.(https://github.com/openssl/openssl/pull/13817, https://github.com/openssl/openssl/commit/7fc67e0a33102aa47bbaa56533eeecb98c0450f7 included in 3.2.0, backported to RHEL-8)

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.