{"answers":{"affected":"2 open source packages ship an affected version, including privatebin/privatebin.","exploited":"There is no known exploitation of CVE-2025-64714 in the wild and no public exploit code.","fix":"Upgrade privatebin/privatebin to 2.0.3 or later.","what":"CVE-2025-64714 is a medium-severity path traversal vulnerability in PrivateBin, published on 13 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-64714 and fix it if it is affected.\n\nWhat it is: CVE-2025-64714 is a medium-severity path traversal vulnerability in PrivateBin, published on 13 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-64714 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- privatebin/privatebin (Packagist): affected from 1.7.7; fixed in 2.0.3\n- privatebin/privatebin (Packagist): affected from 1.7.7; fixed in 2.0.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-2025-64714/ (Markdown: https://insights.sbomify.com/CVE-2025-64714/index.md)","id":"CVE-2025-64714","markdown":"https://insights.sbomify.com/CVE-2025-64714/index.md","name":"CVE-2025-64714","record":{"aliases":["GHSA-g2j9-g8r5-rg82"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"PrivateBin pastebin","requires_auth":"none","summary":"Unauthenticated attackers can exploit path traversal in the template-switching feature to read sensitive files or execute code if template selection is enabled.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"},{"id":"CWE-98","name":"Improper Control of Filename for Include/Require Statement in PHP Program"},{"id":"CWE-23","name":"Relative Path Traversal"}],"description":"PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Starting in version 1.7.7 and prior to version 2.0.3, an unauthenticated Local File Inclusion exists in the template-switching feature. If `templateselection` is enabled in the configuration, the server trusts the `template` cookie and includes the referenced PHP file. An attacker can read sensitive data or, if they manage to drop a PHP file elsewhere, gain remote code execution. The constructed path of the template file is checked for existence, then included. For PrivateBin project files this does not leak any secrets due to data files being created with PHP code that prevents execution, but if a configuration file without that line got created or the visitor figures out the relative path to a PHP script that directly performs an action without appropriate privilege checking, those might execute or leak information. The issue has been patched in version 2.0.3. As a workaround, set `templateselection = false` (which is the default) in `cfg/conf.php` or remove it entirely","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":"2026-05-07","github_poc":1,"max_poc_stars":2,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-05-07T20:01:37Z","kind":"github_poc","ref":"https://github.com/Medaz-Sploit/CVE-2025-64714-privatebin-2.0.2-PoC","stars":2,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"PrivateBin's template-switching feature allows arbitrary local file inclusion through path traversal","id":"CVE-2025-64714","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":2,"n_references":2,"next":{"headline":"Cilium with misconfigured toGroups in policies can lead to unrestricted egress traffic","id":"CVE-2025-64715"},"packages":[{"ecosystem":"Packagist","fixed":["2.0.3"],"introduced":["1.7.7"],"last_affected":[],"package":"privatebin/privatebin","purl":null,"source":"GHSA-g2j9-g8r5-rg82"},{"ecosystem":"Packagist","fixed":["2.0.3"],"introduced":["1.7.7"],"last_affected":[],"package":"privatebin/privatebin","purl":"pkg:composer/privatebin/privatebin","source":"GHSA-g2j9-g8r5-rg82"}],"prev":{"headline":"Memory corruption in wasm-micro-runtime","id":"CVE-2025-64713"},"products":["PrivateBin"],"published":"2025-11-13","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-13","vendors":["PrivateBin"]},"summary":"Unauthenticated attackers can exploit path traversal in the template-switching feature to read sensitive files or execute code if template selection is enabled.","url":"https://insights.sbomify.com/CVE-2025-64714/"}