{"answers":{"affected":"3 open source packages ship an affected version, including github.com/jessfraz/pastebinit. It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-25059 in the wild and no public exploit code.","fix":"Upgrade github.com/jessfraz/pastebinit to 0.2.3 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2018-25059 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2018-25059 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/jessfraz/pastebinit (Go): affected all versions; fixed in 0.2.3\n- github.com/jessfraz/pastebinit (Go): affected all versions; fixed in 0.2.3\n- github.com/jessfraz/pastebinit (Go): affected all versions; fixed in 0.2.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2018-25059/ (Markdown: https://insights.sbomify.com/CVE-2018-25059/index.md)","id":"CVE-2018-25059","markdown":"https://insights.sbomify.com/CVE-2018-25059/index.md","name":"CVE-2018-25059","record":{"aliases":["GHSA-cwh7-28vg-jmpr","GO-2022-1212"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go pastebin server","requires_auth":"low_privilege","summary":"An attacker can exploit a path traversal vulnerability in the pastebinit server to read arbitrary files from the system.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"pastebinit","vendor":"pastebinit_project"}],"cvss":{"score":3.5,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"pastebinit server.go pasteHandler path traversal","id":"CVE-2018-25059","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2018"},"n_packages":3,"n_references":5,"next":{"headline":"Macaron csrf csrf.go missing secure attribute","id":"CVE-2018-25060"},"packages":[{"ecosystem":"Go","fixed":["0.2.3"],"introduced":["0"],"last_affected":[],"package":"github.com/jessfraz/pastebinit","purl":null,"source":"GHSA-cwh7-28vg-jmpr"},{"ecosystem":"Go","fixed":["0.2.3"],"introduced":["0"],"last_affected":[],"package":"github.com/jessfraz/pastebinit","purl":"pkg:golang/github.com/jessfraz/pastebinit","source":"GHSA-cwh7-28vg-jmpr"},{"ecosystem":"Go","fixed":["0.2.3"],"introduced":["0"],"last_affected":[],"package":"github.com/jessfraz/pastebinit","purl":"pkg:golang/github.com/jessfraz/pastebinit","source":"GO-2022-1212"}],"prev":{"headline":"Twitter-Post-Fetcher Link Target twitterFetcher.js reverse tabnabbing","id":"CVE-2018-25058"},"products":["pastebinit"],"published":"2022-12-30","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"An attacker can exploit a path traversal vulnerability in the pastebinit server to read arbitrary files from the system.","url":"https://insights.sbomify.com/CVE-2018-25059/"}