CVE-2025-46551

Low

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.

SeverityLow
CVSS3.7
Exploit probability—
ProductJruby
PublishedMay 7, 2025
First seenMay 7, 2025
Weakness typeCWE-295CWE-295

How to fix

Update
  • jruby jruby9.4.12.1 or later
  • jruby jruby-openssl0.15.4 or later
  • rubygems:jruby-openssl0.15.4 or later
  • org.jruby:jruby10.0.0.1, 9.4.12.1 or later
  • jruby-openssl0.15.4 or later

Affected products

ProductAffected versionsFixed in
jruby jruby9.3.4.0 ≤ v < 9.4.12.1, 10.0.0.09.4.12.1
jruby jruby-openssl0.12.1 ≤ v < 0.15.40.15.4
rubygems:jruby-opensslMaven0.12.1 ≤ v < 0.15.40.15.4
org.jruby:jrubyMaven10.0.0.0 ≤ v < 10.0.0.1, 9.3.4.0 ≤ v < 9.4.12.110.0.0.1, 9.4.12.1
jruby-opensslRubyGems0.12.1 ≤ v < 0.15.40.15.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.