CVE-2025-67720 Details
Description
Pyrofork is a modern, asynchronous MTProto API framework. Versions 2.3.68 and earlier do not properly sanitize filenames received from Telegram messages in the download_media method before using them in file path construction. When downloading media, if the user does not specify a custom filename (which is the common/default usage), the method falls back to using the file_name attribute from the media object. The attribute originates from Telegram's DocumentAttributeFilename and is controlled by the message sender. This issue is fixed in version 2.3.69.
A path traversal vulnerability has been identified in Pyrofork, an asynchronous MTProto API framework, in versions through 2.3.68. The issue arises in the 'download_media' method, which fails to properly sanitize filenames received from Telegram messages before using them to construct file paths. This flaw allows remote attackers to write files to arbitrary locations on the filesystem by sending documents with specially crafted filenames that include path traversal sequences or absolute paths. The vulnerability is exploited when the method is used with default filename settings, relying on the 'file_name' attribute controlled by the message sender.
Users can upgrade to Pyrofork version 2.3.69, which addresses the vulnerability by sanitizing filenames to prevent path traversal. The recommended sanitization process involves removing any path components to keep only the basename, eliminating null bytes, and handling edge cases where the filename may be empty or contain only directory references.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 11, 2025CISA-ADP
Assessed Dec 11, 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/Mayuri-Chan/pyrofork/commit/2f2d515575cc9c360bd74340a61a1d2b1e1f1f95 | [email protected] | Source CodeVendor |
| https://github.com/Mayuri-Chan/pyrofork/security/advisories/GHSA-6h2f-wjhf-4wjx | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Mayuri-Chan pyrofork | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 11, 2025 | New CVE Received | [email protected] |
Volerion