First published: Thu Oct 25 2018(Updated: )
An issue was discovered in Ruby before 2.3.8, 2.4.x before 2.4.5, 2.5.x before 2.5.2, and 2.6.x before 2.6.0-preview3. It does not taint strings that result from unpacking tainted strings with some formats.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
ubuntu/ruby1.9.1 | <1.9.3.484-2ubuntu1.13 | 1.9.3.484-2ubuntu1.13 |
ubuntu/ruby2.0 | <2.0.0.484-1ubuntu2.11 | 2.0.0.484-1ubuntu2.11 |
ubuntu/ruby2.3 | <2.3.1-2~16.04.11 | 2.3.1-2~16.04.11 |
ubuntu/ruby2.5 | <2.5.1-1ubuntu1.1 | 2.5.1-1ubuntu1.1 |
ubuntu/ruby2.5 | <2.5.1-5ubuntu4.1 | 2.5.1-5ubuntu4.1 |
debian/ruby2.1 | ||
debian/ruby2.5 | ||
ruby-lang Ruby | >=2.3.0<=2.3.7 | |
ruby-lang Ruby | >=2.4.0<=2.4.4 | |
ruby-lang Ruby | >=2.5.0<=2.5.1 | |
ruby-lang Ruby | =2.6.0-preview1 | |
ruby-lang Ruby | =2.6.0-preview2 | |
Ubuntu Linux | =14.04 | |
Ubuntu Linux | =16.04 | |
Ubuntu Linux | =18.04 | |
Ubuntu Linux | =18.10 | |
Debian Debian Linux | =8.0 | |
Debian Debian Linux | =9.0 | |
Red Hat Enterprise Linux | =6.0 | |
Red Hat Enterprise Linux | =7.0 | |
Red Hat Enterprise Linux | =7.4 | |
Red Hat Enterprise Linux | =7.5 | |
Red Hat Enterprise Linux | =7.6 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2018-16396 is a vulnerability discovered in Ruby before version 2.6.0-preview3 that does not taint strings that result from unpacking tainted strings with some formats.
The severity of CVE-2018-16396 is high, with a CVSS score of 8.1.
Versions before 2.3.8, 2.4.x before 2.4.5, 2.5.x before 2.5.2, and 2.6.x before 2.6.0-preview3 are affected by CVE-2018-16396.
If you're on Ubuntu, upgrade to the corresponding fixed version for your release: 2.0.0.484-1ubuntu2.11 (Trusty), 2.3.1-2~16.04.11 (Xenial), 2.5.1-1ubuntu1.1 (Bionic), or 2.5.1-5ubuntu4.1 (Cosmic).
You can find more information about CVE-2018-16396 at the following references: [Debian Security Tracker](https://lists.debian.org/debian-lts-announce/2018/10/msg00020.html), [HackerOne](https://hackerone.com/reports/385070), [Ruby-lang website](https://www.ruby-lang.org/en/news/2018/10/17/not-propagated-taint-flag-in-some-formats-of-pack-cve-2018-16396/).