CVE-2018-8780
Critical
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.
SeverityCritical
CVSS9.1
Exploit probability—
Product
Ruby
PublishedApr 3, 2018
First seenApr 3, 2018
How to fix
Update
- ruby-lang ruby2.2.10, 2.3.7, 2.4.4, 2.5.1 or later
Vendor advisories
- access.redhat.com/errata/RHSA-2018:3729
- usn.ubuntu.com/3626-1/
- access.redhat.com/errata/RHSA-2018:3730
- access.redhat.com/errata/RHSA-2018:3731
- debian.org/security/2018/dsa-4259
- access.redhat.com/errata/RHSA-2019:2028
- access.redhat.com/errata/RHSA-2020:0542
- access.redhat.com/errata/RHSA-2020:0591
- access.redhat.com/errata/RHSA-2020:0663
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ruby-lang ruby | v < 2.2.10, 2.3.0 ≤ v < 2.3.7, 2.4.0 ≤ v < 2.4.4, 2.5.0 ≤ v < 2.5.1, 2.6.0 | 2.2.10, 2.3.7, 2.4.4, 2.5.1 |
| canonical ubuntu_linux | 14.04, 16.04, 17.10 | — |
| debian debian_linux | 7.0, 8.0, 9.0 | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.