CVE-2025-46551 JRuby-OpenSSL has hostname verification disabled by default
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- OpenSSLUbuntu
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.
Upgrade path
6 packages: 5 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/jruby-openssl(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| jruby | = 10.0.0.0; >= 9.3.4.0, < 9.4.12.1 | 9.4.12.1 | Fixed |
| jruby-openssl | = >= 0.12.1, < 0.15.4; >= 0.12.1, < 0.15.4 | 0.15.4 | Fixed |
| org.jruby/jruby(Maven) | = 9.3.4.0; = 9.3.5.0; = 9.3.6.0; = 9.3.7.0 +24 more | 9.4.12.1, 10.0.0.1 | Fixed |
| rubygems jruby-openssl(Maven) | >= 0.12.1, < 0.15.4 | 0.15.4 | Fixed |
| rubygems jruby-openssl(RubyGems) | = 0.12.1; = 0.12.2; = 0.13.0; = 0.14.0 +13 more | 0.15.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems jruby-openssl(Maven) | >= 0.12.1, < 0.15.4 | 0.15.4 |
| org.jruby/jruby(Maven) | >= 10.0.0.0, < 10.0.0.1 | 10.0.0.1 |
| org.jruby/jruby(Maven) | = 10.0.0.0 | No fix listed |
| org.jruby/jruby(Maven) | >= 9.3.4.0, < 9.4.12.1 | 9.4.12.1 |
| org.jruby/jruby(Maven) | = 9.3.10.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.3.11.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.3.12.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.3.13.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.3.14.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.3.15.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.3.4.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.3.5.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.3.6.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.3.7.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.3.8.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.3.9.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.4.0.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.4.1.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.4.10.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.4.11.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.4.12.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.4.2.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.4.3.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.4.4.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.4.5.0 | No fix listed |
Show 26 more
| Product | Affected versions | Fixed in |
|---|---|---|
| org.jruby/jruby(Maven) | = 9.4.6.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.4.7.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.4.8.0 | No fix listed |
| org.jruby/jruby(Maven) | = 9.4.9.0 | No fix listed |
| rubygems jruby-openssl(RubyGems) | >= 0.12.1, < 0.15.4 | 0.15.4 |
| rubygems jruby-openssl(RubyGems) | = 0.12.1 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.12.2 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.13.0 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.14.0 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.14.1 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.14.1.cr2 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.14.2 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.14.3 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.14.4 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.14.5 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.14.6 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.15.0 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.15.1 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.15.2 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.15.3 | No fix listed |
| rubygems jruby-openssl(RubyGems) | = 0.15.4.pre1 | No fix listed |
| jruby-openssl | = >= 0.12.1, < 0.15.4 | No fix listed |
| ubuntu/jruby-openssl(Ubuntu:22.04) | All versions | No fix listed |
| jruby | >= 9.3.4.0, < 9.4.12.1 | 9.4.12.1 |
| jruby | = 10.0.0.0 | No fix listed |
| jruby-openssl | >= 0.12.1, < 0.15.4 | 0.15.4 |
References
- https://github.com/jruby/jruby-openssl/security/advisories/GHSA-72qj-48g4-5xgx exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/jruby/jruby-openssl/commit/31a56d690ce9b8af47af09aaaf809081949ed285 patch
- github.com patch
- github.com product
- github.com exploit
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org