Skip to content
OpenAdvisories
Medium · 5.7 CVE-2025-46551 EUVD-2025-13880GHSA-72qj-48g4-5xgx

JRuby-OpenSSL has hostname verification disabled by default

Published May 7, 2025 · Updated May 7, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
jruby jruby-openssl >= 0.12.1, < 0.15.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS jruby-openssl No fix yet —
Ubuntu 20.04 LTS jruby-openssl No fix yet —
Ubuntu 18.04 LTS jruby-openssl No fix yet —
Ubuntu 16.04 LTS jruby-openssl No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling logstash-8-with-output-opensearch No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.jruby:jruby >= 10.0.0.0, < 10.0.0.1 10.0.0.1 GHSA-72qj-48g4-5xgx
Maven org.jruby:jruby >= 9.3.4.0, < 9.4.12.1 9.4.12.1 GHSA-72qj-48g4-5xgx
Maven rubygems:jruby-openssl >= 0.12.1, < 0.15.4 0.15.4 GHSA-72qj-48g4-5xgx
RubyGems jruby-openssl >= 0.12.1, < 0.15.4 0.15.4 GHSA-72qj-48g4-5xgx

References