CVE-2018-7442 Path traversal in n/a
Attackers can overwrite arbitrary files via path traversal in the gplotMakeOutput function of the Leptonica library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-7442?
CVE-2018-7442 is a critical path traversal vulnerability in n/a, published on 23 Feb 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block '/' characters in the gplot rootname argument, potentially leading to path traversal and arbitrary file overwrite.
Weakness: CWE-22
Which versions are affected by CVE-2018-7442?
It affects 1 product.
Products include Leptonica Leptonica.
How do I fix CVE-2018-7442?
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-2018-7442 being exploited?
There is no known exploitation of CVE-2018-7442 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2018-7442, GHSA-fmvw-q9g6-wfgh, UBUNTU-CVE-2018-7442.