CVE-2025-64714

MEDIUM

PrivateBin 1.7.7-2.0.3 - Unauthenticated Local File Inclusion via Template Cookie

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2025-64714. PoCs published by Medaz-Sploit.

AI-analyzed exploit summary This repository contains a functional Python-based PoC for CVE-2025-64714, a Local File Inclusion (LFI) vulnerability in PrivateBin versions >= 1.7.7 and < 2.0.3. The exploit leverages path traversal via the 'template' cookie to read arbitrary files and, with a pre-existing write primitive, achieve RCE.

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

Exploits (1)

nomisec WORKING POC
by Medaz-Sploit · poc
https://github.com/Medaz-Sploit/CVE-2025-64714-privatebin-2.0.2-PoC

This repository contains a functional Python-based PoC for CVE-2025-64714, a Local File Inclusion (LFI) vulnerability in PrivateBin versions >= 1.7.7 and < 2.0.3. The exploit leverages path traversal via the 'template' cookie to read arbitrary files and, with a pre-existing write primitive, achieve RCE.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: PrivateBin >= 1.7.7, < 2.0.3
No auth needed
Prerequisites: templateselection = true in cfg/conf.php · write access to a directory reachable via path traversal from <privatebin_root>/tpl/ for RCE
devstral-2 · analyzed May 08, 2026 Full analysis →

Scores

CVSS v3 5.8
EPSS 0.0043
EPSS Percentile 33.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact partial

Details

CWE
CWE-23 CWE-73 CWE-98
Status published
Products (2)
privatebin/privatebin 1.7.7 - 2.0.3Packagist
PrivateBin/PrivateBin >= 1.7.7, < 2.0.3
Published Nov 13, 2025
Tracked Since Feb 18, 2026