CVE-2018-19960 Path traversal in n/a

High 7.0 Published Updated

Local attackers can overwrite files or read sensitive data via a predictable log path when debug mode is enabled in OnionShare.

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-2018-19960?

CVE-2018-19960 is a high-severity path traversal vulnerability in n/a, published on 7 Dec 2018. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

The debug_mode function in web/web.py in OnionShare through 1.3.1, when --debug is enabled, uses the /tmp/onionshare_server.log pathname for logging, which might allow local users to overwrite files or obtain sensitive information by using this pathname.

Weakness: CWE-20

Which versions are affected by CVE-2018-19960?

It affects 1 product.

Linux distribution packages (1)
python-onionshare openSUSE:TumbleweedAll versions2.3.3-2.5

Products include Onionshare Onionshare.

How do I fix CVE-2018-19960?

Apply the vendor's patch.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-19960 being exploited?

There is no known exploitation of CVE-2018-19960 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2018-19960, UBUNTU-CVE-2018-19960, openSUSE-SU-2024:11246-1.

Is CVE-2018-19960 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free