CVE-2019-15845 Path traversal in n/a
Attackers can bypass path checks in Ruby's File.fnmatch to access or modify unintended files, requiring an upgrade to patched Ruby versions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-15845?
CVE-2019-15845 is a medium-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 26 Nov 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2019-15845?
It affects 2 products.
Products include Canonical Ubuntu Linux, Ruby-Lang Ruby.
How do I fix CVE-2019-15845?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2019-15845 being exploited?
There is no known exploitation of CVE-2019-15845 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as ALPINE-CVE-2019-15845, CLEANSTART-2026-AV92719, GHSA-x99v-c5pj-9m7r, UBUNTU-CVE-2019-15845.