MidnightBSD

Advisories for jruby

CVE-2009-4123

The jruby-openssl gem before 0.6 for JRuby mishandles SSL certificate validation.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 3.9 3.6

Products Affected

Vendor Product Version
jruby jruby-openssl *
CVE-2010-1330 MEDIUM

The regular expression engine in JRuby before 1.4.1, when $KCODE is set to 'u', does not properly handle characters immediately after a UTF-8 character, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a crafted string.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-79,

Products Affected

Vendor Product Version
jruby jruby 1.0.3
jruby jruby 1.1.1
jruby jruby 1.3.0
jruby jruby 0.9.8
jruby jruby 1.4.0
jruby jruby 1.0.2
jruby jruby 1.1.2
jruby jruby 0.9.2
jruby jruby 1.1.3
jruby jruby 1.0.1
jruby jruby 0.9.9
jruby jruby 1.3.1
jruby jruby 1.1.5
jruby jruby 1.1.4
jruby jruby 0.9.0
jruby jruby 1.2.0
jruby jruby 1.1.6
jruby jruby 1.1
jruby jruby 0.9.1
jruby jruby 1.0.0
jruby jruby *
CVE-2011-4838 MEDIUM

JRuby before 1.6.5.1 computes hash values without restricting the ability to trigger hash collisions predictably, which allows context-dependent attackers to cause a denial of service (CPU consumption) via crafted input to an application that maintains a hash table.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-400,

Products Affected

Vendor Product Version
jruby jruby *
CVE-2012-5370 MEDIUM

JRuby computes hash values without properly restricting the ability to trigger hash collisions predictably, which allows context-dependent attackers to cause a denial of service (CPU consumption) via crafted input to an application that maintains a hash table, as demonstrated by a universal multicollision attack against the MurmurHash2 algorithm, a different vulnerability than CVE-2011-4838.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-310,

Products Affected

Vendor Product Version
jruby jruby -
CVE-2025-46551

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 3.7 LOW CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N 2.2 1.4

Products Affected

Vendor Product Version
jruby jruby-openssl *
jruby jruby 10.0.0.0
jruby jruby *