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, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-2007-1, DSA-4586-1, DSA-4587-1, ELA-201-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
jruby (PTS)jessie, jessie (lts)1.5.6-9+deb8u2fixed
stretch (security), stretch (lts), stretch1.7.26-1+deb9u3fixed
buster9.1.17.0-3fixed
buster (security)9.1.17.0-3+deb10u1fixed
bookworm9.3.9.0+ds-8fixed
sid, trixie9.4.6.0+ds-1.1fixed
ruby2.1 (PTS)jessie, jessie (lts)2.1.5-2+deb8u13fixed
ruby2.3 (PTS)stretch (security), stretch (lts), stretch2.3.3-1+deb9u11fixed
ruby2.5 (PTS)buster2.5.5-3+deb10u4fixed
buster (security)2.5.5-3+deb10u6fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
jrubysourcewheezy(unfixed)end-of-life
jrubysource(unstable)(not affected)
ruby1.9.1sourcewheezy1.9.3.194-8.1+deb7u10ELA-201-1
ruby1.9.1source(unstable)(unfixed)
ruby2.1sourcewheezy(unfixed)end-of-life
ruby2.1sourcejessie2.1.5-2+deb8u8DLA-2007-1
ruby2.1source(unstable)(unfixed)
ruby2.3sourcestretch2.3.3-1+deb9u7DSA-4587-1
ruby2.3source(unstable)(unfixed)
ruby2.5sourcebuster2.5.5-3+deb10u1DSA-4586-1
ruby2.5source(unstable)2.5.7-1

Notes

- jruby <not-affected> (Dir.java in JRuby does not have this C string handling bug from dir.c in Ruby)
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