JRuby-OpenSSL has hostname verification disabled by default
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Partial Red Hat: 7 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-295.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| jruby | jruby-openssl | 0.12.1 to before 0.15.4 | 0.15.4 | Patch available | CNA |
| — | rubygems:jruby-openssl (Maven) | 0.12.1 to before 0.15.4 | 0.15.4 | Patch available | GHSA-72qj-48g4-5xgx |
| — | org.jruby:jruby (Maven) | 10.0.0.0 to before 10.0.0.1 | 10.0.0.1 | Patch available | GHSA-72qj-48g4-5xgx |
| — | org.jruby:jruby (Maven) | 9.3.4.0 to before 9.4.12.1 | 9.4.12.1 | Patch available | GHSA-72qj-48g4-5xgx |
| — | jruby-openssl (RubyGems) | 0.12.1 to before 0.15.4 | 0.15.4 | Patch available | GHSA-72qj-48g4-5xgx |
- jruby-openssl Vendorjruby Affected 0.12.1 to before 0.15.4 Fixed in 0.15.4 Patch available CNA
- rubygems:jruby-openssl (Maven) Vendor— Affected 0.12.1 to before 0.15.4 Fixed in 0.15.4 Patch available GHSA-72qj-48g4-5xgx
- org.jruby:jruby (Maven) Vendor— Affected 10.0.0.0 to before 10.0.0.1 Fixed in 10.0.0.1 Patch available GHSA-72qj-48g4-5xgx
- org.jruby:jruby (Maven) Vendor— Affected 9.3.4.0 to before 9.4.12.1 Fixed in 9.4.12.1 Patch available GHSA-72qj-48g4-5xgx
- jruby-openssl (RubyGems) Vendor— Affected 0.12.1 to before 0.15.4 Fixed in 0.15.4 Patch available GHSA-72qj-48g4-5xgx
Remediation
- Fix · CNA jruby-openssl (jruby) Fixed in 0.15.4
- Fix · GHSA-72qj-48g4-5xgx rubygems:jruby-openssl (Maven) Fixed in 0.15.4 Advisory →
- Fix · GHSA-72qj-48g4-5xgx org.jruby:jruby (Maven) Fixed in 10.0.0.1 Advisory →
- Fix · GHSA-72qj-48g4-5xgx org.jruby:jruby (Maven) Fixed in 9.4.12.1 Advisory →
- Fix · GHSA-72qj-48g4-5xgx jruby-openssl (RubyGems) Fixed in 0.15.4 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat AMQ Broker 7 | Affected | No fix yet: Fix deferred |
| Red Hat Data Grid 8 | Affected | No fix yet: Fix deferred |
| Red Hat Fuse 7 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Enterprise Application Platform 8 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | Affected | No fix yet: Fix deferred |
| Red Hat Satellite 6 | Affected | No fix yet: Fix deferred |
| Red Hat build of Apache Camel for Spring Boot 4 | Affected | No fix yet: Fix deferred |
Not affected: 8 products
- Red Hat Integration Camel K 1
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat Process Automation 7
- Red Hat build of OptaPlanner 8
- Red Hat build of Quarkus
- streams for Apache Kafka
Timeline
- 2026-10-02 Threatist record created from CVE-2025-46551
- 2026-10-03 Alias added: GHSA-72qj-48g4-5xgx
References
More Jruby vulnerabilities
- TI-2011-04166 JRuby before 1.6.5.1 computes hash values without restricting the ability to trigger hash… CVSS 2.0MEDIUM 5.0
- TI-2012-04543 JRuby computes hash values without properly restricting the ability to trigger hash… CVSS 2.0MEDIUM 5.0
- TI-2010-01285 The regular expression engine in JRuby before 1.4.1, when $KCODE is set to 'u', does not… CVSS 2.0MEDIUM 4.3
Sources
- CVE-2025-46551 · CVE Program
- CVE-2025-46551 · NVD
- FIRST EPSS
- GHSA-72qj-48g4-5xgx · GitHub Advisory Database · CC BY 4.0
- CVE-2025-46551 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences