CVE-2017-0898: 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.
Critical CVSS 9.1
- CVE id
- CVE-2017-0898
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Ruby Runtimes and servers |
15 listed versions | not fixed yet |
How to fix it
No fix yet. No fixed Ruby release is listed yet.
ruby --version
- Check the advisory and its references below for a workaround or a configuration change that turns off the affected feature.
- Limit exposure: don't pass untrusted input to the affected code path, and keep it off public endpoints if you can.
- Install the patched Ruby release of your minor line (rbenv, the ruby image tag) and update .ruby-version.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2017-0898 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2017-0898
- Web: https://access.redhat.com/errata/RHSA-2017:3485
- Web: https://access.redhat.com/errata/RHSA-2018:0378
- Web: https://access.redhat.com/errata/RHSA-2018:0583
- Web: https://access.redhat.com/errata/RHSA-2018:0585
- Web: https://github.com/mruby/mruby/issues/3722
- Web: https://hackerone.com/reports/212241
- Web: https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- Web: https://security.gentoo.org/glsa/201710-18
- Web: https://usn.ubuntu.com/3685-1/
- Web: https://www.debian.org/security/2017/dsa-4031
- Web: https://www.ruby-lang.org/en/news/2017/09/14/sprintf-buffer-underrun-cve-2017-0898/
- Web: https://access.redhat.com/errata/RHSA-2017:3485
- Web: https://access.redhat.com/errata/RHSA-2018:0378
- Web: https://access.redhat.com/errata/RHSA-2018:0583
- Web: https://access.redhat.com/errata/RHSA-2018:0585
- Web: https://github.com/mruby/mruby/issues/3722
- Web: https://hackerone.com/reports/212241
- Web: https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- Web: https://security.gentoo.org/glsa/201710-18
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.