Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.jruby/jruby
  4. ›
  5. CVE-2025-46551

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

May 7, 2025

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.

References

  • github.com/advisories/GHSA-72qj-48g4-5xgx
  • github.com/jruby/jruby-openssl
  • github.com/jruby/jruby-openssl/commit/b1fc5d645c0d90891b8865925ac1c15e3f15a055
  • github.com/jruby/jruby-openssl/security/advisories/GHSA-72qj-48g4-5xgx
  • nvd.nist.gov/vuln/detail/CVE-2025-46551

Code Behaviors & Features

Detect and mitigate CVE-2025-46551 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 10.0.0.0 before 10.0.0.1, all versions starting from 9.3.4.0 before 9.4.12.1

Fixed versions

  • 10.0.0.1
  • 9.4.12.1

Solution

Upgrade to versions 10.0.0.1, 9.4.12.1 or above.

Weakness

  • CWE-295: Improper Certificate Validation
  • CWE-297: Improper Validation of Certificate with Host Mismatch

Source file

maven/org.jruby/jruby/CVE-2025-46551.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:43 +0000.