{"id":"CVE-2025-67720","published":"2025-12-11T01:25:46Z","modified":"2025-12-11T15:35:02Z","title":"Pyrofork has a Path Traversal in download_media Method","vendor":"Mayuri-Chan","product":"pyrofork","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0034,"percentile":0.28217,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/Mayuri-Chan/pyrofork/security/advisories/GHSA-6h2f-wjhf-4wjx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Mayuri-Chan/pyrofork/commit/2f2d515575cc9c360bd74340a61a1d2b1e1f1f95","tags":["x_refsource_MISC"]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":5.64},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"mayuri-chan","affectedVersions":[{"vendor":"Mayuri-Chan","product":"pyrofork","versions":["< 2.3.69"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-12-11T15:34:47.033434Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pyrofork","vulnerableRanges":["<2.3.69"],"patched":["2.3.69"],"from":["GHSA-6h2f-wjhf-4wjx","PYSEC-2026-1841"],"provenance":"source"}],"summary":{"text":"The Pyrofork framework (Mayuri-Chan's asynchronous MTProto API library) has a path traversal flaw in its download_media method, which builds file paths from unsanitised filenames supplied by Telegram message senders when no custom filename is given. An attacker who can send a crafted media message to a user or chat that downloads media with this method can write files outside the intended directory, with user interaction required for the download to occur.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:50Z"},"euvd":{"id":"EUVD-2025-202593","exploited":false,"provenance":"source"}}