---
id: CVE-2025-67720
title: 'Pyrofork is a modern, asynchronous MTProto API framework'
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
  downl…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N'
cwe:
  - CWE-22
vendor: pyrofork
product: pyrofork
affected:
  - pyrofork < 2.3.69
patched:
  - pyrofork 2.3.69
published: '2025-12-11'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T10:10:00.227'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-67720'
references:
  - url: >-
      https://github.com/Mayuri-Chan/pyrofork/commit/2f2d515575cc9c360bd74340a61a1d2b1e1f1f95
    label: security-advisories@github.com
  - url: >-
      https://github.com/Mayuri-Chan/pyrofork/security/advisories/GHSA-6h2f-wjhf-4wjx
    label: security-advisories@github.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-67720'
  - url: 'https://github.com/Mayuri-Chan/pyrofork'
tags:
  - nvd
  - osv
  - pip
epss: 0.00318
epssPercentile: 0.24531
aliases:
  - GHSA-6h2f-wjhf-4wjx
  - PYSEC-2026-1841
ecosystem: pip
ingestedAt: '2026-07-08T18:25:46.471Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2025-67720)

Affected packages:

- `pyrofork < 2.3.69`

Patched in:

- `pyrofork 2.3.69`

Source: https://osv.dev/vulnerability/GHSA-6h2f-wjhf-4wjx
