CVE-2025-0306
High · 7.4CVSS
7.4
EPSS
0.7%
Published
Jan 9, 2025
CISA due date
—
Cloudanix analysis
A problem handling encrypted data lets attackers potentially read private messages or fake approvals by sending many requests to the system.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- High
- Impact
- Data Exposure
- Component
- Library
- Class
- Cryptographic Weakness
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability enables a Marvin Attack against the Ruby interpreter's cryptographic implementation, permitting decryption of encrypted messages or forgery of signatures through repeated message exchanges with the affected service.
Why it matters to the business
Attackers may compromise the confidentiality and integrity of encrypted data or signatures handled by affected systems, risking unauthorized access to sensitive information and potential operational disruptions in environments relying on the vulnerable packages.
How an attack unfolds
An attacker interacts repeatedly with the vulnerable service to exchange crafted messages, observes response behaviors to gradually recover cryptographic secrets, and ultimately decrypts prior messages or forges valid signatures.
How to fix it
Update opencv packages on Ubuntu 16.04 LTS to version 2.4.9.1+dfsg-1.5ubuntu1.1 and on Ubuntu 18.04 LTS to version 3.2.0+dfsg-4ubuntu0.1; apply all related security patches for Ruby cryptographic components.
How to confirm the fix worked
Confirm installed package versions match the listed fixed releases, retest cryptographic functions for resistance to message probing attacks, and review service configurations for updated libraries.
Typical attack path
- Locate services using the vulnerable Ruby cryptographic code
- Send numerous probe messages to elicit distinguishable responses
- Analyze timing or error patterns to extract key material
- Decrypt target ciphertexts or forge signatures for further access
How to detect it
Examine application and system logs for unusually high volumes of requests to cryptographic endpoints, repeated error responses during decryption or signature verification, and anomalous patterns consistent with probing attacks.
What your security team should do
- Prioritize applying the exact package upgrades listed for Ubuntu opencv
- Audit all Ruby-dependent applications for exposure to the cryptographic weakness
- Implement network controls to limit excessive message volumes to affected services
The record
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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Chainguard | ruby-3.2 | 0 | 0 |
| Chainguard | ruby-3.2-base | 0 | 0 |
| Chainguard | ruby-3.2-base-dev | 0 | 0 |
| Chainguard | ruby-3.2-dev | 0 | 0 |
| Chainguard | ruby-3.2-doc | 0 | 0 |
| Debian:11 | ruby2.7 | 0 | No fix |
| Debian:12 | ruby3.1 | 0 | No fix |
| Debian:13 | ruby3.1 | 0 | 3.1.2-8.4 |
| Ubuntu:20.04:LTS | jruby | 0 | No fix |
| Ubuntu:20.04:LTS | ruby2.7 | 0 | No fix |
| Ubuntu:22.04:LTS | ruby3.0 | 0 | No fix |
| Ubuntu:24.04:LTS | jruby | 0 | No fix |
| Ubuntu:24.04:LTS | ruby3.2 | 0 | No fix |
| Ubuntu:24.10 | jruby | 0 | No fix |
| Ubuntu:24.10 | ruby3.3 | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | jruby | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | jruby | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ruby2.3 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | jruby | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | ruby2.5 | 0 | No fix |
| Wolfi | ruby-3.2 | 0 | 0 |
| Wolfi | ruby-3.2-base | 0 | 0 |
| Wolfi | ruby-3.2-base-dev | 0 | 0 |
| Wolfi | ruby-3.2-dev | 0 | 0 |
| Wolfi | ruby-3.2-doc | 0 | 0 |
Related vulnerabilities
- CVE-2025-61594 URI is a module providing classes to handle Uniform Resource Identifiers. Also affects ruby-3.2
- CVE-2025-27221 In the URI gem before 1.0.3 for Ruby, the URI handling methods (URI.join, URI#merge… Also affects ruby-3.2
- CVE-2024-49761 REXML is an XML toolkit for Ruby. Also affects ruby-3.2
- CVE-2024-41946 REXML is an XML toolkit for Ruby. Also affects ruby-3.2
- CVE-2024-41123 REXML is an XML toolkit for Ruby. Also affects ruby-3.2
- CVE-2024-39908 REXML is an XML toolkit for Ruby. Also affects ruby-3.2
- CVE-2023-5363 Issue summary: A bug has been identified in the processing of key and initialisation… Also affects ruby-3.2
- CVE-2025-43857 net-imap rubygem vulnerable to possible DoS by memory exhaustion Also affects ruby3.1