Name | CVE-2018-8780 |
Description | In Ruby before 2.2.10, 2.3.x before 2.3.7, 2.4.x before 2.4.4, 2.5.x before 2.5.1, and 2.6.0-preview1, the Dir.open, Dir.new, Dir.entries and Dir.empty? methods do not check NULL characters. When using the corresponding method, unintentional directory traversal may be performed. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-1358-1, DLA-1359-1, DLA-1421-1, DSA-4259-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
ruby2.1 (PTS) | jessie, jessie (lts) | 2.1.5-2+deb8u14 | fixed |
ruby2.3 (PTS) | stretch (security) | 2.3.3-1+deb9u11 | fixed |
stretch (lts), stretch | 2.3.3-1+deb9u12 | fixed | |
ruby2.5 (PTS) | buster, buster (lts) | 2.5.5-3+deb10u7 | fixed |
buster (security) | 2.5.5-3+deb10u6 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
ruby1.8 | source | wheezy | 1.8.7.358-7.1+deb7u6 | DLA-1359-1 | ||
ruby1.8 | source | (unstable) | (unfixed) | |||
ruby1.9.1 | source | wheezy | 1.9.3.194-8.1+deb7u8 | DLA-1358-1 | ||
ruby1.9.1 | source | (unstable) | (unfixed) | |||
ruby2.1 | source | jessie | 2.1.5-2+deb8u4 | DLA-1421-1 | ||
ruby2.1 | source | (unstable) | (unfixed) | |||
ruby2.3 | source | stretch | 2.3.3-1+deb9u3 | DSA-4259-1 | ||
ruby2.3 | source | (unstable) | (unfixed) | |||
ruby2.5 | source | (unstable) | 2.5.1-1 |
https://www.ruby-lang.org/en/news/2018/03/28/poisoned-nul-byte-dir-cve-2018-8780/
https://hackerone.com/reports/302338
Fixed by: https://github.com/ruby/ruby/commit/bd5661a3cbb38a8c3a3ea10cd76c88bbef7871b8
Fixed by: https://github.com/ruby/ruby/commit/143eb22f1877815dd802f7928959c5f93d4c7bb3 (2.2.10)