Vulnerability · Published May 7, 2025 · Assigned by GitHub_M

CVE-2025-46551JRuby-OpenSSL has hostname verification disabled by default

Medium 5.7

In plain English

A medium-severity improper certificate validation in jruby-openssl from jruby. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 10% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.7Medium
Exploit odds (30 days)0.2%top 90.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.jruby:jruby10.0.0.1GHSA-72qj-48g4-5xgx
Mavenorg.jruby:jruby9.4.12.1GHSA-72qj-48g4-5xgx
Mavenrubygems:jruby-openssl0.15.4GHSA-72qj-48g4-5xgx
RubyGemsjruby-openssl0.15.4GHSA-72qj-48g4-5xgx
Ubuntu:22.04:LTSjruby-opensslno fix listedUBUNTU-CVE-2025-46551

Affected products (as reported)

VendorProductVersions
jruby jruby-openssl >= 0.12.1, < 0.15.4

Weakness: CWE-295 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P

References