CVE-2019-15845

NameCVE-2019-15845
DescriptionRuby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 mishandles path checking within File.fnmatch functions.
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-2007-1, DSA-4586-1, DSA-4587-1
NVD severitymedium

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
jruby (PTS)stretch (security), stretch1.7.26-1+deb9u1fixed
bullseye, sid, buster9.1.17.0-3vulnerable
ruby2.3 (PTS)stretch (security), stretch2.3.3-1+deb9u7fixed
ruby2.5 (PTS)buster2.5.5-3+deb10u1fixed
buster (security)2.5.5-3+deb10u2fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
jrubysource(unstable)(unfixed)
jrubysourcejessie(not affected)
jrubysourcestretch(not affected)
ruby2.1source(unstable)(unfixed)
ruby2.1sourcejessie2.1.5-2+deb8u8DLA-2007-1
ruby2.3source(unstable)(unfixed)
ruby2.3sourcestretch2.3.3-1+deb9u7DSA-4587-1
ruby2.5source(unstable)2.5.7-1
ruby2.5sourcebuster2.5.5-3+deb10u1DSA-4586-1

Notes

[stretch] - jruby <not-affected> (Vulnerable code is not present)
[jessie] - jruby <not-affected> (vulnerable code is not present)
https://github.com/ruby/ruby/commit/a0a2640b398cffd351f87d3f6243103add66575b
https://hackerone.com/reports/449617
https://www.ruby-lang.org/en/news/2019/10/01/nul-injection-file-fnmatch-cve-2019-15845/

Search for package or bug name: Reporting problems