Read the docs
TI-2025-41416 Aliases CVE-2025-67720GHSA-6h2f-wjhf-4wjx

Pyrofork has a Path Traversal in download_media Method

Priority LOW 29CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00318 24th percentileScored 2026-11-07
Fix Fixed pyrofork (Mayuri-Chan): 2.3.69pyrofork (PyPI): 2.3.69

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Mayuri-Chanpyroforkbefore 2.3.692.3.69Patch availableCNA
—pyrofork (PyPI)before 2.3.692.3.69Patch availableGHSA-6h2f-wjhf-4wjx
  • pyrofork VendorMayuri-Chan Affected before 2.3.69 Fixed in 2.3.69 Patch available CNA
  • pyrofork (PyPI) Vendor— Affected before 2.3.69 Fixed in 2.3.69 Patch available GHSA-6h2f-wjhf-4wjx

Remediation

  • Fix · CNA pyrofork (Mayuri-Chan) Fixed in 2.3.69
  • Fix · GHSA-6h2f-wjhf-4wjx pyrofork (PyPI) Fixed in 2.3.69 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-67720
  2. 2026-10-03 Alias added: GHSA-6h2f-wjhf-4wjx

References

Sources