{"id":"CVE-2025-46551","aliases":["EUVD-2025-13880","GHSA-72qj-48g4-5xgx","UBUNTU-CVE-2025-46551"],"status":"published","title":"JRuby-OpenSSL has hostname verification disabled by default","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.","severity":{"version":"4.0","score":5.7,"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","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00201,"percentile":0.10136,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-295","CWE-297"],"published":"2025-05-07T16:12:23Z","modified":"2026-10-28T02:31:04Z","fixes":[{"ecosystem":"Maven","package":"rubygems:jruby-openssl","fixed_in":["0.15.4"],"sources":["ghsa","osv"]},{"ecosystem":"Maven","package":"org.jruby:jruby","fixed_in":["10.0.0.1","9.4.12.1"],"sources":["ghsa","osv"]},{"ecosystem":"RubyGems","package":"jruby-openssl","fixed_in":["0.15.4"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"rubygems:jruby-openssl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.12.1"},{"fixed":"0.15.4"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.jruby:jruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.0.0.0"},{"fixed":"10.0.0.1"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.jruby:jruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.3.4.0"},{"fixed":"9.4.12.1"}]}]},{"source":"ghsa","ecosystem":"RubyGems","package":"jruby-openssl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.12.1"},{"fixed":"0.15.4"}]}]},{"source":"osv","ecosystem":"Maven","package":"rubygems:jruby-openssl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.12.1"},{"fixed":"0.15.4"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.jruby:jruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.0.0.0"},{"fixed":"10.0.0.1"}]}],"versions":["10.0.0.0"]},{"source":"osv","ecosystem":"Maven","package":"org.jruby:jruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.3.4.0"},{"fixed":"9.4.12.1"}]}],"versions":["9.3.10.0","9.3.11.0","9.3.12.0","9.3.13.0","9.3.14.0","9.3.15.0","9.3.4.0","9.3.5.0","9.3.6.0","9.3.7.0","9.3.8.0","9.3.9.0","9.4.0.0","9.4.1.0","9.4.10.0","9.4.11.0","9.4.12.0","9.4.2.0","9.4.3.0","9.4.4.0","9.4.5.0","9.4.6.0","9.4.7.0","9.4.8.0","9.4.9.0"]},{"source":"osv","ecosystem":"RubyGems","package":"jruby-openssl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.12.1"},{"fixed":"0.15.4"}]}],"versions":["0.12.1","0.12.2","0.13.0","0.14.0","0.14.1","0.14.1.cr2","0.14.2","0.14.3","0.14.4","0.14.5","0.14.6","0.15.0","0.15.1","0.15.2","0.15.3","0.15.4.pre1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"jruby-openssl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.7-2","0.9.11-1","0.9.11-2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"jruby-openssl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.20-1","0.9.21-1","0.9.21-2~18.04"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"jruby-openssl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.21-2","0.9.21-3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"jruby-openssl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.21-3"]}],"products":[{"vendor":"jruby","product":"jruby"},{"vendor":"jruby","product":"jruby-openssl"}],"references":[{"url":"https://github.com/jruby/jruby-openssl/security/advisories/GHSA-72qj-48g4-5xgx","tags":["x_refsource_CONFIRM","exploit","Exploit","Vendor Advisory","advisory","web","report"]},{"url":"https://github.com/jruby/jruby-openssl/commit/31a56d690ce9b8af47af09aaaf809081949ed285","tags":["x_refsource_MISC","Patch","fix","web","report"]},{"url":"https://github.com/jruby/jruby-openssl/commit/b1fc5d645c0d90891b8865925ac1c15e3f15a055","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46551","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jruby-openssl/CVE-2025-46551.yml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-72qj-48g4-5xgx"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46551.json","tags":["advisory"]},{"url":"https://github.com/jruby/jruby-openssl","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2025-46551","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-46551","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2025-46551","title":"JRuby-OpenSSL has hostname verification disabled by default","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.","status":"published","published":"2025-05-07T16:12:23.771Z","modified":"2025-05-07T20:17:32.055Z","cvss":[{"version":"4.0","score":5.7,"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","level":"medium","assessor":"cna"}],"cwes":["CWE-295"],"updated_at":"2026-11-02T14:32:36.706507Z"}],"euvd":[{"id":"EUVD-2025-13880","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.","status":"published","published":"2025-05-07T16:12:23Z","modified":"2025-05-07T20:17:32Z","cvss":[{"version":"4.0","score":5.7,"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","level":"medium"}],"updated_at":"2026-11-02T20:32:52.670412Z"}],"ghsa":[{"id":"GHSA-72qj-48g4-5xgx","title":"JRuby-OpenSSL has hostname verification disabled by default","description":"### Summary\nWhen 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. \n\n### Details\nn/a\n\n### PoC\nAn 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\n\n```ruby\nrequire \"net/http\"\nrequire \"openssl\"\n\nuri   = URI(\"https://bad.substitutealert.com/\")\nhttps = Net::HTTP.new(uri.host, uri.port)\nhttps.use_ssl      = true\nhttps.verify_mode  = OpenSSL::SSL::VERIFY_PEER\n\nbody = https.start { https.get(uri.request_uri).body }\nputs body\n```\n\n### Impact\nAnybody using JRuby to make requests of external APIs, or scraping the web, that depends on https to connect securely","status":"published","published":"2025-05-07T17:32:54Z","modified":"2026-01-21T16:54:32Z","cvss":[{"version":"4.0","score":5.7,"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","level":"medium"}],"cwes":["CWE-295","CWE-297"],"updated_at":"2026-11-02T14:39:18.564331Z"}],"nvd":[{"id":"CVE-2025-46551","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.","status":"published","published":"2025-05-07T17:15:58.153Z","modified":"2026-06-17T09:26:36.93Z","cvss":[{"version":"4.0","score":5.7,"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-295"],"updated_at":"2026-11-02T14:11:06.085152Z"}],"osv":[{"id":"CVE-2025-46551","title":"JRuby-OpenSSL has hostname verification disabled by default","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.","status":"published","published":"2025-05-07T16:12:23.771Z","modified":"2026-10-28T02:31:04.700205387Z","cvss":[{"version":"4.0","score":5.7,"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","level":"medium"}],"cwes":["CWE-295"],"updated_at":"2026-11-02T15:44:49.707645Z"},{"id":"GHSA-72qj-48g4-5xgx","title":"JRuby-OpenSSL has hostname verification disabled by default","description":"### Summary\nWhen 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. \n\n### Details\nn/a\n\n### PoC\nAn 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\n\n```ruby\nrequire \"net/http\"\nrequire \"openssl\"\n\nuri   = URI(\"https://bad.substitutealert.com/\")\nhttps = Net::HTTP.new(uri.host, uri.port)\nhttps.use_ssl      = true\nhttps.verify_mode  = OpenSSL::SSL::VERIFY_PEER\n\nbody = https.start { https.get(uri.request_uri).body }\nputs body\n```\n\n### Impact\nAnybody using JRuby to make requests of external APIs, or scraping the web, that depends on https to connect securely","status":"published","published":"2025-05-07T17:32:54Z","modified":"2026-09-10T03:50:24.589913336Z","cvss":[{"version":"4.0","score":5.7,"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","level":"medium"}],"cwes":["CWE-295","CWE-297"],"updated_at":"2026-11-02T15:46:40.308826Z"},{"id":"UBUNTU-CVE-2025-46551","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.","status":"published","published":"2025-05-07T17:15:00Z","modified":"2025-10-24T05:23:32Z","cvss":[{"version":"4.0","score":5.7,"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","level":"medium"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"low"}],"updated_at":"2026-11-02T16:55:50.31802Z"}]}}
