CVE-2018-25059 pastebinit server.go pasteHandler path traversal

Low 3.5 Published Updated

An attacker can exploit a path traversal vulnerability in the pastebinit server to read arbitrary files from the system.

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-25059?

CVE-2018-25059 is a low-severity path traversal vulnerability in pastebinit, published on 30 Dec 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability was found in pastebinit up to 0.2.2 and classified as problematic. Affected by this issue is the function pasteHandler of the file server.go. The manipulation of the argument r.URL.Path leads to path traversal. Upgrading to version 0.2.3 is able to address this issue. The name of the patch is 1af2facb6d95976c532b7f8f82747d454a092272. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-217040.

Weakness: CWE-22

Which versions are affected by CVE-2018-25059?

3 open source packages ship an affected version, including github.com/jessfraz/pastebinit. It affects 1 product.

PackageAffectedFixed in
github.com/jessfraz/pastebinit GoAll versions0.2.3
github.com/jessfraz/pastebinit GoAll versions0.2.3
github.com/jessfraz/pastebinit GoAll versions0.2.3

Products include Pastebinit Project Pastebinit.

How do I fix CVE-2018-25059?

Upgrade github.com/jessfraz/pastebinit to 0.2.3 or later.

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

Is CVE-2018-25059 being exploited?

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

Sources

Also known as GHSA-cwh7-28vg-jmpr, GO-2022-1212.

Is CVE-2018-25059 in your software?

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

Check your SBOMs for free