#VU39295 Input validation error in Ruby


Published: 2017-04-03 | Updated: 2020-08-08

Vulnerability identifier: #VU39295

Vulnerability risk: Medium

CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2017-6181

CWE-ID: CWE-20

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Ruby
Universal components / Libraries / Scripting languages

Vendor: Ruby

Description

The vulnerability allows a remote non-authenticated attacker to perform a denial of service (DoS) attack.

The parse_char_class function in regparse.c in the Onigmo (aka Oniguruma-mod) regular expression library, as used in Ruby 2.4.0, allows remote attackers to cause a denial of service (deep recursion and application crash) via a crafted regular expression.

Mitigation
Install update from vendor's website.

Vulnerable software versions

Ruby: 2.4.0


External links
http://www.securityfocus.com/bid/97304
http://bugs.ruby-lang.org/issues/13234
http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/57660


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability