CVE-2025-64714
PrivateBin's template-switching feature allows arbitrary local file inclusion through path traversal
Also known as GHSA-g2j9-g8r5-rg82
Mitigation
- Upgrade privatebin/privatebin to 2.0.3 or later.
Who should check
- Projects that depend on Packagist package privatebin/privatebin (>= 1.7.7, < 2.0.3)
- Anyone running PrivateBin >= 1.7.7, < 2.0.3
Vulnerability facts
- Affected
- privatebin/privatebin >= 1.7.7, < 2.0.3
- Fixed in
- 2.0.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.81% chance of exploitation in 30 days (percentile 54, 2026-11-26)
- CWE
- CWE-23, CWE-73, CWE-98
- Modified
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
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist privatebin/privatebin | >= 1.7.7, < 2.0.3 | 2.0.3 | osv |
| PrivateBin | >= 1.7.7, < 2.0.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-64714. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-64714.md Affected: privatebin/privatebin >= 1.7.7, < 2.0.3 Fixed in: 2.0.3 Steps: 1. Search this machine and project for privatebin/privatebin (Packagist), PrivateBin: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2025-64714 being exploited?
There is no confirmed exploitation: CVE-2025-64714 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.81% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-64714?
Medium: CVSS 5.8 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-64714?
privatebin/privatebin >= 1.7.7, < 2.0.3.
Is there a fix for CVE-2025-64714?
Yes. Fixed in 2.0.3. Upgrade privatebin/privatebin to 2.0.3 or later.
How do I check if I'm affected by CVE-2025-64714?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.