CVE-2025-62511
JSON

6.3medium

yt-grabber-tui local arbitrary file overwrite via TOCTOU race in config file creation

Severity
6.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.11% (higher than 1% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
zheny-creator YtGrabber-TUI< 1.0.1CVE List

Classification

CWE-367

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

yt-grabber-tui es una aplicación de interfaz de usuario de terminal en C++ para descargar contenido de YouTube. yt-grabber-tui versión 1.0 contiene una condición de carrera de Tiempo de Verificación a Tiempo de Uso (TOCTOU) (CWE-367) en la creación del archivo de configuración predeterminado config.json. En la versión 1.0, load_json_settings en Settings.hpp verifica la existencia de config.json usando boost::filesystem::exists y, si el archivo falta, llama a create_json_settings que escribe la configuración JSON con boost::property_tree::write_json. Un atacante local con acceso de escritura al directorio de configuración de la aplicación (~/.config/yt-grabber-tui en Linux o el directorio de trabajo actual en Windows) puede crear un enlace simbólico entre la verificación de existencia y la escritura subsiguiente para que la operación de escritura siga el enlace simbólico y sobrescriba un archivo elegido por el atacante accesible para el proceso en ejecución. Esto permite la sobrescritura arbitraria de archivos dentro de los privilegios del proceso de la aplicación, lo que puede corromper archivos y causar la pérdida de datos de la aplicación o del usuario. Si la aplicación se ejecuta con privilegios elevados, esto podría extenderse a la corrupción de archivos del sistema. El problema está solucionado en la versión 1.0.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-62511 changed 2025-10-17CVE Terms of Use
NVDCVE-2025-62511 changed 2026-10-08Public domain