CVE-2025-46551 Details
Description
JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL native library. Starting in JRuby-OpenSSL version 0.12.1 and prior to version 0.15.4 (corresponding to JRuby versions starting in 9.3.4.0 prior to 9.4.12.1 and 10.0.0.0 prior to 10.0.0.1), when verifying SSL certificates, JRuby-OpenSSL does not verify that the hostname presented in the certificate matches the one the user tries to connect to. This means a man-in-the-middle could just present any valid cert for a completely different domain they own, and JRuby would accept the cert. Anybody using JRuby to make requests of external APIs, or scraping the web, that depends on https to connect securely. JRuby-OpenSSL version 0.15.4 contains a fix for the issue. This fix is included in JRuby versions 10.0.0.1 and 9.4.12.1.
A vulnerability exists in JRuby-OpenSSL, an add-on gem for JRuby that mimics the Ruby OpenSSL native library. This issue affects JRuby-OpenSSL versions 0.12.1 through 0.15.3, as well as JRuby versions 9.3.4.0 prior to 9.4.12.1 and 10.0.0.0 prior to 10.0.0.1. The vulnerability arises because, during SSL certificate verification, JRuby-OpenSSL fails to ensure that the hostname in the certificate matches the hostname being connected to. As a result, a man-in-the-middle could present a valid certificate for a different domain, and JRuby would accept it. This flaw impacts users of JRuby who rely on HTTPS for secure connections when accessing external APIs or web scraping.
Users can upgrade to JRuby-OpenSSL version 0.15.4, which includes the hostname verification fix. This version is available in JRuby 10.0.0.1 and 9.4.12.1.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/jruby/jruby-openssl/security/advisories/GHSA-72qj-48g4-5xgx | CISA-ADP | ExploitVendor Advisory |
| https://github.com/jruby/jruby-openssl/commit/31a56d690ce9b8af47af09aaaf809081949ed285 | [email protected] | Patch |
| https://github.com/jruby/jruby-openssl/security/advisories/GHSA-72qj-48g4-5xgx | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-295 | Improper Certificate Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jruby jruby | >= 9.3.4.0, < 9.4.12.1 10.0.0.0 |
CPE
Remediation
| |
| jruby jruby-openssl | >= 0.12.1, < 0.15.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | Initial Analysis | [email protected] |
| May 7, 2025 | CVE Modified | CISA-ADP |
| May 7, 2025 | New CVE Received | [email protected] |