Skip to content
OpenAdvisories
Medium · 6.5 CVE-2025-67720 EUVD-2025-202593GHSA-6h2f-wjhf-4wjxPYSEC-2026-1841

Pyrofork has a Path Traversal in download_media Method

Published Dec 11, 2025 · Updated Dec 11, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
Mayuri-Chan pyrofork < 2.3.69 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pyrofork < 2.3.69 2.3.69 GHSA-6h2f-wjhf-4wjx

References