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

Medium 6.3 Published Updated

A local attacker can exploit a TOCTOU race condition to overwrite arbitrary files via symbolic links, potentially leading to data corruption or privilege escalation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-62511?

CVE-2025-62511 is a medium-severity vulnerability in zheny-creator YtGrabber-TUI, published on 17 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-367

Which versions are affected by CVE-2025-62511?

How do I fix CVE-2025-62511?

No fix has been published for CVE-2025-62511 yet. Limit exposure of the affected software until one is available.

Is CVE-2025-62511 being exploited?

There is no known exploitation of CVE-2025-62511 in the wild and no public exploit code.

Sources

Also known as GHSA-hwwf-fq6p-rw9q.

Is CVE-2025-62511 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free