CVE-2018-6914

NameCVE-2018-6914
DescriptionDirectory traversal vulnerability in the Dir.mktmpdir method in the tmpdir library 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 might allow attackers to create arbitrary directories or files via a .. (dot dot) in the prefix argument.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-1358-1, DLA-1359-1, DLA-1421-1, DSA-4259-1
NVD severitymedium (attack range: remote)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby2.1 (PTS)jessie2.1.5-2+deb8u3vulnerable
jessie (security)2.1.5-2+deb8u6fixed
ruby2.3 (PTS)stretch2.3.3-1+deb9u2vulnerable
stretch (security)2.3.3-1+deb9u4fixed
ruby2.5 (PTS)buster, sid2.5.3-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ruby1.8source(unstable)(unfixed)medium
ruby1.8sourcewheezy1.8.7.358-7.1+deb7u6mediumDLA-1359-1
ruby1.9.1source(unstable)(unfixed)medium
ruby1.9.1sourcewheezy1.9.3.194-8.1+deb7u8mediumDLA-1358-1
ruby2.1source(unstable)(unfixed)medium
ruby2.1sourcejessie2.1.5-2+deb8u4mediumDLA-1421-1
ruby2.3source(unstable)(unfixed)medium
ruby2.3sourcestretch2.3.3-1+deb9u3mediumDSA-4259-1
ruby2.5source(unstable)2.5.1-1medium

Notes

https://www.ruby-lang.org/en/news/2018/03/28/unintentional-file-and-directory-creation-with-directory-traversal-cve-2018-6914/
https://hackerone.com/reports/302298
Fixed by: https://github.com/ruby/ruby/commit/10b96900b90914b0cc1dba36f9736c038db2859d
Fixed by: https://github.com/ruby/ruby/commit/e9ddf2ba41a0bffe1047e33576affd48808c5d0b (2.2.10)

Search for package or bug name: Reporting problems