Vulnerabilities · 2017 · Ruby-lang
CVE-2017-0898
Ruby-lang Ruby vulnerability
Ruby before 2.4.2, 2.3.5, and 2.2.8 is vulnerable to a malicious format string which contains a precious specifier (*) with a huge minus value. Such situation can lead to a buffer overrun, resulting in a heap memory corruption or an information disclosure from the heap.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
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
- www.ruby-lang.org/en/news/2017/09/14/sprintf-buffer-underrun-cve-2017-0898/ · Vendor Advisory
- www.securityfocus.com/bid/100862 · Third Party Advisory
- www.securitytracker.com/id/1039363 · Third Party Advisory
- github.com/mruby/mruby/issues/3722 · Exploit
- hackerone.com/reports/212241 · Exploit
- access.redhat.com/errata/RHSA-2017:3485
- access.redhat.com/errata/RHSA-2018:0378
- access.redhat.com/errata/RHSA-2018:0583
- nvd.nist.gov/vuln/detail/CVE-2017-0898
- cve.org/CVERecord?id=CVE-2017-0898
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.