CVE-2025-62511 Details
Description
yt-grabber-tui is a C++ terminal user interface application for downloading YouTube content. yt-grabber-tui version 1.0 contains a Time-of-Check to Time-of-Use (TOCTOU) race condition (CWE-367) in the creation of the default configuration file config.json. In version 1.0, load_json_settings in Settings.hpp checks for the existence of config.json using boost::filesystem::exists and, if the file is missing, calls create_json_settings which writes the JSON configuration with boost::property_tree::write_json. A local attacker with write access to the application’s configuration directory (~/.config/yt-grabber-tui on Linux or the current working directory on Windows) can create a symbolic link between the existence check and the subsequent write so that the write operation follows the symlink and overwrites an attacker-chosen file accessible to the running process. This enables arbitrary file overwrite within the privileges of the application process, which can corrupt files and cause loss of application or user data. If the application is executed with elevated privileges, this could extend to system file corruption. The issue is fixed in version 1.0.1.
A Time-of-Check to Time-of-Use (TOCTOU) race condition vulnerability has been identified in yt-grabber-tui version 1.0, a C++ terminal user interface application for downloading YouTube content. The vulnerability arises in the handling of the default configuration file, config.json. In this version, the 'load_json_settings' function checks for the existence of config.json. If the file is absent, it calls 'create_json_settings', which writes the JSON configuration using 'boost::property_tree::write_json'. This creates a window of opportunity for a local attacker with write access to the application's configuration directory to introduce a symbolic link that redirects the write operation to an attacker-chosen file. This flaw enables arbitrary file overwriting within the application's process privileges, potentially leading to corruption of important files and loss of application or user data. If the application is run with elevated privileges, the impact could extend to critical system files.
Users are advised to upgrade to yt-grabber-tui version 1.0.1 or later. The vulnerability has been fully patched in version 1.0.1 by implementing atomic file creation, ensuring that the JSON configuration is first written to a temporary file and then renamed to config.json in an atomic operation. This update eliminates the race condition, as the rename process is atomic on both POSIX and NTFS filesystems.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 17, 2025CISA-ADP
Assessed Oct 17, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/zheny-creator/YtGrabber-TUI/commit/bf065e833820bb4253a70a4c1dc6b843c6d8bf21 | [email protected] | Source CodeVendor |
| https://github.com/zheny-creator/YtGrabber-TUI/security/advisories/GHSA-hwwf-fq6p-rw9q | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| zheny-creator yt-grabber-tui | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 8, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 17, 2025 | New CVE Received | [email protected] |
Volerion