CVE-2018-25059 json
pastebinit server.go pasteHandler path traversal
published 2022-12-30 3 y ago modified 2026-06-17 4 mo ago also GHSA-cwh7-28vg-jmpr , GO-2022-1212 , EUVD-2022-7606
- cvss
- 3.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 57%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/jessfraz/pastebinit 0.2.3
- github.com/jessfraz/pastebinit@1af2fac commit
- github.com/jessfraz/pastebinit#3 pull request
- github.com/jessfraz/pastebinit/releases/tag/v0.2.3 release
Exploit prediction
0.83% chance of exploitation in the next 30 days, higher than 57% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.5 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| CNA | 3.0 | 3.5 | CVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| CNA | 2.0 | 2.7 | AV:A/AC:L/Au:S/C:P/I:N/A:N |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/jessfraz/pastebinit | <0.2.3 |
0.2.3 |
Affected products
- n/a pastebinit
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/jessfraz/pastebinit/pull/3
issue-tracking, web, patch, third-party-advisory
-
github.com
/jessfraz/pastebinit/commit/1af2facb6d95976c532b7f8f82747d454a092272
patch, web, third-party-advisory
-
github.com
/jessfraz/pastebinit/releases/tag/v0.2.3
patch, web, release-notes, third-party-advisory
-
vuldb.com
/?id.217040
vdb-entry, technical-description, web, third-party-advisory
-
vuldb.com
/?ctiid.217040
signature, permissions-required, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-25059
advisory
-
github.com
/jessfraz/pastebinit
package
-
github.com
/advisories/GHSA-cwh7-28vg-jmpr
advisory
Sources
- CVE List CVE-2018-25059
- GitHub Advisory GHSA-cwh7-28vg-jmpr
- NVD CVE-2018-25059
- OSV GO-2022-1212
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.