Vulnerabilities · 2017 · Ruby-lang
CVE-2017-6181
Ruby-lang Ruby vulnerability
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.
Affected products
Ruby. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugs.ruby-lang.org/issues/13234 · Vendor Advisory
- bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/57660 · Vendor Advisory
- www.securityfocus.com/bid/97304 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2017-6181
- cve.org/CVERecord?id=CVE-2017-6181
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.