Vulnerability · Published Dec 11, 2025 · Assigned by GitHub_M

CVE-2025-67720Pyrofork has a Path Traversal in download_media Method

Medium 6.5

In plain English

A medium-severity path traversal in pyrofork from Mayuri-Chan. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.3%top 75.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIpyrofork2.3.69GHSA-6h2f-wjhf-4wjx
PyPIpyrofork2.3.69PYSEC-2026-1841

Affected products (as reported)

VendorProductVersions
Mayuri-Chan pyrofork < 2.3.69

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

References