CVE-2017-18196 Path traversal in n/a
Local attackers can bypass file restrictions in Leptonica by exploiting path duplication in /tmp subdirectories to access or modify unintended files.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-18196?
CVE-2017-18196 is a low-severity path traversal vulnerability in n/a, published on 23 Feb 2018. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Leptonica 1.74.4 constructs unintended pathnames (containing duplicated path components) when operating on files in /tmp subdirectories, which might allow local users to bypass intended file restrictions by leveraging access to a directory located deeper within the /tmp directory tree, as demonstrated by /tmp/ANY/PATH/ANY/PATH/input.tif.
Weakness: CWE-22
Which versions are affected by CVE-2017-18196?
It affects 1 product.
Products include Leptonica Leptonica.
How do I fix CVE-2017-18196?
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-2017-18196 being exploited?
There is no known exploitation of CVE-2017-18196 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2017-18196, GHSA-m7cf-9jqx-8xrq, UBUNTU-CVE-2017-18196.