CVE Catalog

CVE-2025-67720

MediumCVSS 6.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.32%

23th percentile - higher than 23% of all known CVEs

Summary

Pyrofork is an 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 no custom filename is specified, the sender-controlled file_name attribute is used, potentially leading to path traversal. This is fixed in version 2.3.69.

Risk Assessment

An attacker could force a file to be written outside the intended directory, potentially overwriting system files or placing malicious files in critical locations. This affects applications using Pyrofork to download media.

Recommendation

Update Pyrofork to version 2.3.69 or later. Until updated, always provide a custom, validated filename when downloading media.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS