CVE-2018-25059: pastebinit Path Traversal vulnerability
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.27038%
CWE
Published
12/30/2022
Updated
2/3/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/jessfraz/pastebinit | go | < 0.2.3 | 0.2.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows the vulnerability was in the filename construction logic within pasteHandler. The original code directly joined user-controlled r.URL.Path with the storage directory without proper sanitization. The patch added path.Clean and filepath.FromSlash to neutralize traversal sequences. Multiple sources (CVE description, GHSA, and commit message) explicitly attribute the vulnerability to this function's handling of r.URL.Path.