Name | CVE-2019-15845 |
Description | Ruby 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. |
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-2007-1, DSA-4586-1, DSA-4587-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
jruby (PTS) | buster | 9.1.17.0-3 | fixed |
| buster (security) | 9.1.17.0-3+deb10u1 | fixed |
| bookworm, sid | 9.3.9.0+ds-8 | fixed |
ruby2.5 (PTS) | buster | 2.5.5-3+deb10u4 | fixed |
| buster (security) | 2.5.5-3+deb10u6 | fixed |
The information below is based on the following data on fixed versions.
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/