CVEfocus › CVE database › CVE-2025-46551

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

CVSS 5.7 MediumEPSS 0.3% (higher than 10% of CVEs)Published 2025-05-07Updated 2025-05-07Assigner: GitHub_M

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.

CWE-295

What to do

Fixed builds are available from Maven, RubyGems: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
3Fix pending
1Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04jruby-opensslUnder investigationUBUNTU-CVE-2025-46551
Ubuntu 20.04jruby-opensslFix pendingUBUNTU-CVE-2025-46551
Ubuntu 18.04jruby-opensslFix pendingUBUNTU-CVE-2025-46551
Ubuntu 16.04jruby-opensslFix pendingUBUNTU-CVE-2025-46551
RubyGems libraryjruby-opensslFixed0.15.4GHSA-72qj-48g4-5xgx
Maven libraryorg.jruby:jrubyFixed10.0.0.1GHSA-72qj-48g4-5xgx
Maven libraryrubygems:jruby-opensslFixed0.15.4GHSA-72qj-48g4-5xgx

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.