CVE-2025-66548
Executive Summary
CVE-2025-66548 is a low-severity (CVSS 3.3) spoofing vulnerability in the Nextcloud Deck application, a kanban-style project management tool. The flaw allows an attacker to manipulate file extensions displayed to users by embedding Unicode Right-to-Left Override (RTLO) characters in filenames. This causes the displayed file extension to differ from the actual file extension, tricking users into downloading and potentially executing malicious files disguised as safe documents (e.g., a .exe file appearing as .pdf). The vulnerability affects Deck versions prior to 1.12.7, 1.14.4, and 1.15.1. No public proof-of-concept or exploit code is available at this time. The EPSS score is 0.0%, indicating a very low probability of active exploitation in the wild.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
Nextcloud Deck is distributed as a Nextcloud app via the Nextcloud App Store and official Nextcloud server updates. The vulnerability is patched in the latest versions. Users should update their Nextcloud instance and ensure the Deck app is updated to the fixed versions. No third-party package manager (NPM, PyPI, etc.) is directly involved, but the app's codebase may include JavaScript dependencies that should be reviewed for similar RTLO handling issues.
CVSS Breakdown & Threat Level
- CVSS Score: 3.3 (Low)
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- Attack Vector (AV): Network – The attack is carried out over the network.
- Attack Complexity (AC): Low – No special conditions are required.
- Privileges Required (PR): None – The attacker does not need authentication.
- User Interaction (UI): Required – The victim must download and open the file.
- Scope (S): Unchanged – The impact is confined to the vulnerable component.
- Confidentiality (C): None – No data is exposed.
- Integrity (I): Low – The attacker can spoof the file extension, potentially leading to execution of a malicious file.
- Availability (A): None – No denial of service.
Threat Level: Low. The vulnerability requires user interaction and does not directly lead to code execution. However, it can be chained with social engineering to deliver malware.
Deep Dive & Mechanics
The vulnerability resides in how Nextcloud Deck handles file names when displaying them to users. The application does not sanitize or neutralize Unicode control characters, specifically the Right-to-Left Override (U+202E) character. This character forces the text that follows to be displayed from right to left.
Attack Scenario:
- An attacker uploads a file to a Deck board with a name like:
document.pdf[U+202E]txt.exe - Due to the RTLO character, the file name is displayed as:
document.exe.txt(the.exepart is rendered as.txtbecause the RTLO reverses the order). - The actual file extension is
.exe, but the user sees.txtor.pdfdepending on the crafted name. - When the user downloads and opens the file, they execute the malicious
.exefile.
Root Cause: Lack of input validation and sanitization for Unicode control characters in file names. The application should either strip or escape RTLO and other bidirectional override characters.
Vulnerable vs. Patched Code
Vulnerable Code (Conceptual):
// In file upload handler, no sanitization of filename
$filename = $_FILES['file']['name'];
// Store filename as-is
$file->setName($filename);
Patched Code (Conceptual):
// Sanitize filename by removing RTLO characters
$filename = preg_replace('/[\x{202A}-\x{202E}]/u', '', $_FILES['file']['name']);
$file->setName($filename);
The patch removes all Unicode bidirectional override characters (U+202A to U+202E) from the filename before storage and display.
Exploitation & Lab Setup
Red Team (Offensive)
Prerequisites:
- A Nextcloud instance with Deck app version < 1.12.7, < 1.14.4, or < 1.15.1.
- An account with permission to upload files to a Deck board.
Steps:
- Create a malicious executable (e.g.,
payload.exe). - Rename it to:
important_document.pdf%E2%80%AEtxt.exe(URL-encoded RTLO character). - Upload the file to a Deck board.
- The file will appear as
important_document.exe.txtto other users. - Social engineer a user to download and open the file.
Note: No public exploit code is available. This is a conceptual demonstration.
Blue Team (Defensive)
Detection:
- Monitor file uploads for filenames containing Unicode control characters (U+202A-U+202E).
- Alert on filenames with suspicious patterns like
[safe_ext][RTLO][malicious_ext]. - Use YARA rules to scan file names in transit and at rest.
Prevention:
- Apply the patch immediately.
- Implement input validation to strip or reject filenames with bidirectional override characters.
- Educate users about the risks of downloading files from untrusted sources.
Indicators of Compromise (IOCs)
- File Names: Any filename containing Unicode characters U+202A, U+202B, U+202C, U+202D, or U+202E.
- Network Traffic: HTTP requests to Nextcloud with filenames containing
%E2%80%AE(URL-encoded RTLO) or similar. - Logs: Nextcloud audit logs showing file uploads with suspicious filenames.
Detection Engineering
YARA Rule
rule Detect_RTLO_Filename_Spoofing {
meta:
description = "Detects filenames containing Right-to-Left Override (RTLO) characters used for spoofing"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-66548"
strings:
$rtlo = { E2 80 AE } // UTF-8 encoding of U+202E
$rtlo2 = { E2 80 AB } // UTF-8 encoding of U+202B
$rtlo3 = { E2 80 AA } // UTF-8 encoding of U+202A
condition:
any of them
}
Sigma Rule
title: Nextcloud Deck RTLO Filename Spoofing
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects file uploads with RTLO characters in Nextcloud Deck
author: Valters IT
date: 2025-04-10
logsource:
product: nextcloud
service: audit
detection:
selection:
EventID: 'file_created'
FileName|contains:
- '%E2%80%AE'
- '%E2%80%AB'
- '%E2%80%AA'
condition: selection
falsepositives:
- Legitimate use of bidirectional text (rare)
level: medium
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-66548 Nextcloud Deck RTLO Filename Spoofing"; flow:to_server; content:"POST"; http_method; content:"/remote.php/dav/files/"; http_uri; pcre:"/%E2%80%AE|%E2%80%AB|%E2%80%AA/"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Update Nextcloud Deck to version 1.12.7, 1.14.4, or 1.15.1 (or later).
- If immediate update is not possible, implement a Web Application Firewall (WAF) rule to block filenames containing
%E2%80%AE,%E2%80%AB, or%E2%80%AA.
Long-term Measures:
- Enforce filename sanitization in all file upload handlers.
- Conduct security training for users on social engineering attacks.
- Regularly review and update Nextcloud and its apps.
Valters IT Signature: This report was generated by Valters IT DevSecOps AI. For questions, contact security@valters-it.com.