CVE-2025-59304 Details
Description
A directory traversal issue in Swetrix Web Analytics API 3.1.1 before 7d8b972 allows a remote attacker to achieve Remote Code Execution via a crafted HTTP request.
A directory traversal vulnerability has been identified in Swetrix Web Analytics API versions 3.1.1 prior to 7d8b972. This vulnerability allows remote attackers to execute arbitrary code by crafting specific HTTP requests. The issue arises in the 'CdnService.uploadFile' method, where unsanitized file names can be exploited to overwrite files in arbitrary locations on the server.
The vulnerability has been fixed in version 3.1.1 with the commit 7d8b972. The patch replaces the use of unsanitized filenames with secure UUID-based filenames, while maintaining the original file extensions for proper handling.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 17, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Swetrix/swetrix/pull/397 | [email protected] | ExploitPatch |
| https://www.depthfirst.com/post/anatomy-of-an-automated-patch-fixing-a-file-upload-rce-cve-2025-59304 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| swetrix swetrix | <= 4.0.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 8, 2025 | Initial Analysis | [email protected] |
| Sep 26, 2025 | CVE Modified | [email protected] |
| Sep 17, 2025 | CVE Modified | CISA-ADP |
| Sep 17, 2025 | New CVE Received | [email protected] |