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

- Severity: Medium 5.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-05-07T16:12:23.771Z
- Modified: 2026-09-10T03:50:24.589Z
- Also known as: GHSA-72qj-48g4-5xgx
- Weaknesses: CWE-295, CWE-297
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- jruby jruby-openssl: >= 0.12.1, < 0.15.4; from 0.12.1 before 0.15.4
- rubygems:jruby-openssl (Maven): from 0.12.1 before 0.15.4
- org.jruby:jruby (Maven): from 10.0.0.0 before 10.0.0.1; from 9.3.4.0 before 9.4.12.1
- jruby-openssl (RubyGems): from 0.12.1 before 0.15.4
- jruby jruby: from 9.3.4.0 before 9.4.12.1; 10.0.0.0

## Every score

- GitHub_M: CVSS:4.0 5.7 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/jruby/jruby-openssl/security/advisories/GHSA-72qj-48g4-5xgx> (exploit, vendor-advisory, web)
- <https://github.com/jruby/jruby-openssl/commit/31a56d690ce9b8af47af09aaaf809081949ed285> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-46551> (advisory)
- <https://github.com/jruby/jruby-openssl/commit/b1fc5d645c0d90891b8865925ac1c15e3f15a055> (web)
- <https://github.com/jruby/jruby-openssl> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jruby-openssl/CVE-2025-46551.yml> (web)

## Sources

- CVE List: [CVE-2025-46551](https://www.cve.org/CVERecord?id=CVE-2025-46551), CVE Terms of Use, modified 2025-05-07
- GitHub Advisory Database: [GHSA-72qj-48g4-5xgx](https://github.com/advisories/GHSA-72qj-48g4-5xgx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-46551](https://nvd.nist.gov/vuln/detail/CVE-2025-46551), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-46551 · Whole record: https://cve.day/CVE-2025-46551.json · Rebuilt by cve.day 2026-11-25T22:58:57.736Z
