Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-0306

HIGH 7.4EPSS 66%

Ruby: openssl: ruby marvin attack

Mitigation

  • Vendor 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)

Who should check

  • Anyone running Ruby < *
  • Anyone running Red Hat Enterprise Linux 10 (versions: see the vendor advisory)
  • Anyone running Red Hat Enterprise Linux 6 (versions: see the vendor advisory)
  • Anyone running Red Hat Enterprise Linux 7 (versions: see the vendor advisory)
  • Anyone running Red Hat Enterprise Linux 8 (versions: see the vendor advisory)
  • Anyone running Red Hat Enterprise Linux 9 (versions: see the vendor advisory)
  • Anyone running Red Hat Storage 3 (versions: see the vendor advisory)

Vulnerability facts

Affected
Ruby < *; Red Hat Enterprise Linux 10; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9; Red Hat Enterprise Linux 9; Red Hat Enterprise Linux 9; Red Hat Storage 3
Fixed in
No fix listed yet
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: None
EPSS
1.11% chance of exploitation in 30 days (percentile 66, 2026-11-26)
CWE
CWE-385
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Ruby< *—cvelist
Red Hat Enterprise Linux 10——cvelist
Red Hat Enterprise Linux 6——cvelist
Red Hat Enterprise Linux 7——cvelist
Red Hat Enterprise Linux 8——cvelist
Red Hat Enterprise Linux 8——cvelist
Red Hat Enterprise Linux 8——cvelist
Red Hat Enterprise Linux 9——cvelist
Red Hat Enterprise Linux 9——cvelist
Red Hat Enterprise Linux 9——cvelist
Red Hat Storage 3——cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-0306. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-0306.md
Affected: Ruby < *; Red Hat Enterprise Linux 10; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9; Red Hat Enterprise Linux 9; Red Hat Enterprise Linux 9; Red Hat Storage 3
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Ruby, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-0306 being exploited?

There is no confirmed exploitation: CVE-2025-0306 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.11% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-0306?

High: CVSS 7.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2025-0306?

Ruby < *; Red Hat Enterprise Linux 10; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9; Red Hat Enterprise Linux 9; Red Hat Enterprise Linux 9; Red Hat Storage 3.

Is there a fix for CVE-2025-0306?

No fixed version is listed in the sources yet. Vendor 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)

How do I check if I'm affected by CVE-2025-0306?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors