CVE-2025-67720
BaseFortify
Publication date: 2025-12-11
Last updated on: 2025-12-11
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| pyrofork | mtproto_api_framework | 2.3.69 |
| pyrofork | mtproto_api_framework | 2.3.68 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-22 | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability in Pyrofork (versions 2.3.68 and earlier) involves improper sanitization of filenames received from Telegram messages in the download_media method. When a user downloads media without specifying a custom filename, the method uses the file_name attribute from the media object, which is controlled by the message sender. Because this filename is not properly sanitized before being used in file path construction, it could lead to security issues such as path traversal or file overwrite attacks. The issue is fixed in version 2.3.69.
How can this vulnerability impact me? :
This vulnerability can impact you by allowing an attacker who sends a specially crafted Telegram message to control the filename used during media download. This could lead to overwriting important files or placing files in unintended locations on the system, potentially compromising the integrity of your files or application. It may also enable further attacks depending on the environment where Pyrofork is used.
What immediate steps should I take to mitigate this vulnerability?
Upgrade Pyrofork to version 2.3.69 or later, as this version fixes the improper filename sanitization issue in the download_media method.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
The provided resources do not contain information regarding the impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
To detect this vulnerability on your system, you can monitor for suspicious file downloads or file writes that include path traversal sequences such as '../' in filenames originating from Telegram messages processed by Pyrofork versions 2.3.68 or earlier. Specifically, look for files being written outside the intended download directory. You can use commands like: 1. To find files created or modified recently with suspicious names: find /path/to/download/directory -type f -name '*..*' -or -name '*/*' -mtime -1 2. To check running Pyrofork version: pip show pyrofork 3. To monitor file writes in real-time (Linux example): sudo inotifywait -m /path/to/download/directory 4. To search logs or application output for filenames containing '../' or absolute paths: grep -rE '(\.\./|/)' /path/to/pyrofork/logs These commands help identify exploitation attempts or presence of malicious files due to path traversal. Additionally, ensure your Pyrofork version is updated to 2.3.69 or later where the issue is fixed. [1]