Overview
The vulnerability CVE-2025-59049 is a critical security flaw found in Mockoon, which allows attackers to exploit Path Traversal and Local File Inclusion (LFI) weaknesses. Due to this vulnerability, an attacker can access any file in the mock server filesystem, potentially leading to system compromise or data leakage. This vulnerability is especially concerning for cloud hosted server instances, where sensitive data may be stored.
Vulnerability Summary
CVE ID: CVE-2025-59049
Severity: High, 7.5 (CVSS score)
Attack Vector: Network
Privileges Required: None
User Interaction: None
Impact: Potential system compromise or data leakage
Affected Products
A new way to communicate
Ameeba Chat is built on encrypted identity, not personal profiles.
Message, call, share files, and coordinate with identities kept separate.
- • Encrypted identity
- • Ameeba Chat authenticates access
- • Aliases and categories
- • End-to-end encrypted chat, calls, and files
- • Secure notes for sensitive information
Private communication, rethought.
Product | Affected Versions
Mockoon | Prior to 9.2.0
How the Exploit Works
The vulnerability stems from the way Mockoon handles the configuration for static file serving in its mock API. The server filename is generated via templating features from user input, which leaves the system open to Path Traversal and LFI attacks. An attacker could manipulate the input to traverse the file directory and gain access to any file in the mock server filesystem.
Conceptual Example Code
Here’s a conceptual example of how the vulnerability could be exploited. The attacker sends a malicious request to the server:
GET /api/files/../../etc/passwd HTTP/1.1
Host: vulnerablemockserver.com
In this example, the malicious request is attempting to traverse the directory to access the ‘/etc/passwd’ file, which contains sensitive user data.
Impact and Mitigation
The successful exploitation of this vulnerability could lead to unauthorized access to sensitive data, potentially resulting in system compromise or data leakage. Users are strongly advised to apply the patch provided by the vendor in version 9.2.0. In cases where patching is not immediately possible, using a Web Application Firewall (WAF) or Intrusion Detection System (IDS) could serve as a temporary mitigation technique.
