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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-02)
- Published: 2025-12-10T20:21:54.000Z
- Modified: 2026-10-08T10:10:00.227Z
- Also known as: GHSA-6h2f-wjhf-4wjx, PYSEC-2026-1841
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Mayuri-Chan pyrofork: < 2.3.69
- pyrofork (PyPI): before 2.3.69

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://github.com/Mayuri-Chan/pyrofork/security/advisories/GHSA-6h2f-wjhf-4wjx> (web)
- <https://github.com/Mayuri-Chan/pyrofork/commit/2f2d515575cc9c360bd74340a61a1d2b1e1f1f95> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-67720> (advisory)
- <https://github.com/Mayuri-Chan/pyrofork> (package)
- <https://pypi.org/project/pyrofork> (package)
- <https://github.com/advisories/GHSA-6h2f-wjhf-4wjx> (advisory)

## Sources

- CVE List: [CVE-2025-67720](https://www.cve.org/CVERecord?id=CVE-2025-67720), CVE Terms of Use, modified 2025-12-11
- GitHub Advisory Database: [GHSA-6h2f-wjhf-4wjx](https://github.com/advisories/GHSA-6h2f-wjhf-4wjx), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-67720](https://nvd.nist.gov/vuln/detail/CVE-2025-67720), Public domain, modified 2026-10-08
- PyPA Advisory Database: [PYSEC-2026-1841](https://osv.dev/vulnerability/PYSEC-2026-1841), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-67720 · Whole record: https://cve.day/CVE-2025-67720.json · Rebuilt by cve.day 2026-11-25T22:59:09.216Z
