Loading...
Skip to main content

CVE-2025-46551 — Vulnerability in org.jruby:jruby — CVE Details

MEDIUM

JRuby-OpenSSL has hostname verification disabled by default

Published May 7, 2025Updated September 10, 2026Source: osv

Summary

### Summary When verifying SSL certificates, jruby-openssl is not verifying that the hostname presented in the certificate matches the one we are trying to connect to, meaning a MITM could just present _any_ valid cert for a completely different domain they own, and JRuby wouldn't complain. ### Details n/a ### PoC An example domain bad.substitutealert.com was created to present the a certificate for the domain s8a.me. The following script run in IRB in CRuby 3.4.3 will fail with `certificate verify failed (hostname mismatch)`, but will work just fine in JRuby 10.0.0.0 and JRuby 9.4.2.0, both of which use jruby-openssl version 0.15.3 ```ruby require "net/http" require "openssl" uri = URI("https://bad.substitutealert.com/") https = Net::HTTP.new(uri.host, uri.port) https.use_ssl = true https.verify_mode = OpenSSL::SSL::VERIFY_PEER body = https.start { https.get(uri.request_uri).body } puts body ``` ### Impact Anybody using JRuby to make requests of external APIs, or scraping the web, that depends on https to connect securely

Advisory Timeline

  • First published May 7, 2025 (523 days ago).
  • Last revised September 10, 2026 — 490 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.jruby:jruby to 10.0.0.1 or later
<!-- Update pom.xml dependency version to 10.0.0.1 for org.jruby:jruby -->
Maven
Update org.jruby:jruby to 9.4.12.1 or later
<!-- Update pom.xml dependency version to 9.4.12.1 for org.jruby:jruby -->
Bundler
Update jruby-openssl to 0.15.4 or later
gem install jruby-openssl -v 0.15.4
Maven
Update rubygems:jruby-openssl to 0.15.4 or later
<!-- Update pom.xml dependency version to 0.15.4 for rubygems:jruby-openssl -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 2 ecosystems: maven (2), rubygems (1).

PackageEcosystemAffectedFixed In
org.jruby:jruby
maven
10.0.0.010.0.0.1
org.jruby:jruby
maven
9.3.10.0, 9.3.11.0, 9.3.12.0, 9.3.13.0 (+21 more)9.4.12.1
jruby-openssl
rubygems
0.12.1, 0.12.2, 0.13.0, 0.14.0 (+12 more)0.15.4
rubygems:jruby-openssl
maven
All versions0.15.4

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2025-46551?
JRuby-OpenSSL has hostname verification disabled by default This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.5/10).
How do I check if my project is affected by CVE-2025-46551?
CVE-2025-46551 affects org.jruby:jruby, jruby-openssl and rubygems:jruby-openssl. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-46551 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
6.5

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-72qj-48g4-5xgx

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies