Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/jessfraz/pastebinit
  4. ›
  5. CVE-2018-25059

CVE-2018-25059: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

December 30, 2022 (updated January 3, 2023)

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.

References

  • github.com/advisories/GHSA-cwh7-28vg-jmpr
  • github.com/jessfraz/pastebinit/commit/1af2facb6d95976c532b7f8f82747d454a092272
  • github.com/jessfraz/pastebinit/pull/3
  • github.com/jessfraz/pastebinit/releases/tag/v0.2.3
  • nvd.nist.gov/vuln/detail/CVE-2018-25059
  • vuldb.com/?ctiid.217040
  • vuldb.com/?id.217040

Code Behaviors & Features

Detect and mitigate CVE-2018-25059 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.2.3

Fixed versions

  • v0.2.3

Solution

Upgrade to version 0.2.3 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

go/github.com/jessfraz/pastebinit/CVE-2018-25059.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:50 +0000.