CVE-2025-62511

Source
https://cve.org/CVERecord?id=CVE-2025-62511
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-62511.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-62511
Aliases
  • GHSA-hwwf-fq6p-rw9q
Published
2025-10-17T19:55:34.825Z
Modified
2026-04-12T18:28:23.045503Z
Severity
  • 6.3 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H CVSS Calculator
Summary
yt-grabber-tui local arbitrary file overwrite via TOCTOU race in config file creation
Details

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, loadjsonsettings in Settings.hpp checks for the existence of config.json using boost::filesystem::exists and, if the file is missing, calls createjsonsettings which writes the JSON configuration with boost::propertytree::writejson. 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.

Database specific
{
    "cwe_ids": [
        "CWE-367"
    ],
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/62xxx/CVE-2025-62511.json"
}
References

Affected packages

Git / github.com/zheny-creator/ytgrabber-tui

Affected ranges

Type
GIT
Repo
https://github.com/zheny-creator/ytgrabber-tui
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*
1.0
1.0-alpha-1
1.0-alpha-2
1.0-beta
1.0-beta-2
1.0-rc

Database specific

vanir_signatures_modified
"2026-04-12T18:28:23Z"
vanir_signatures
[
    {
        "source": "https://github.com/zheny-creator/ytgrabber-tui/commit/e19352ed02e9af4e3dd36e171c0aaba275716cff",
        "target": {
            "file": "include/Settings.hpp"
        },
        "id": "CVE-2025-62511-c2463646",
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "39245973177963073766018988211499005940",
                "219498945029778649504035983825757453708",
                "177810629141885023434653826884211313634",
                "94603713706590230574187564569665580082",
                "192800366807400529706281774648445983334",
                "94509578245289289840191156242677227939",
                "21137316792795171585382426827811220124",
                "296380243249558821935828447671538857631",
                "236245156186183137322994103452410727576",
                "112127996761362666676170151620275500618",
                "314982830419182001327108003887750989491",
                "236114694573168628493311172558296098368",
                "68051689846000398347454396898710474331",
                "315900694495675532441428635392684603463",
                "81516505542032702745434997272448259474",
                "32998439880515568260928437363125032739",
                "285558115821485368536321787024913862700",
                "191671958916924580309044834349181419014",
                "212374796189979311829861771234651900040",
                "162998954888546298333158349468445697357",
                "141731925730635055927325589665522058945",
                "3238315429880472962487237298012868441",
                "283120880229768628946166270246992819414",
                "325464876035107628973338153703139664373",
                "119658456103938290293420409612951762256",
                "2452449662373157827742405421329763834",
                "160659921773790767864534408670719036077",
                "278775805017621172779852450128150119922",
                "35396992593520510911781629857945239786",
                "221819679023079970365448743462600758347",
                "335981466419949053236328775996405034531",
                "132545259635360580356872564723707327038",
                "33840499498762865785012761102690891411",
                "46412396334726546066723873005553290317",
                "246198391662971320789492552528757607194",
                "4913678502408396456298486818367475379",
                "80253194833422257989308653202998131481",
                "256389666015073915780990855934080736928",
                "244805704616690641002164598042266780992",
                "63599702390650276959327721892935635001",
                "135948716786527314988131598301669261185",
                "295699797220632219047637798369798680539",
                "72959954141312464225365142612356342518",
                "240401407322852231259128657149933495541",
                "36419233018668136275822257925168322408",
                "206932763473614883252960784708483035337",
                "309400493387658690218837197343879745171",
                "154012775002895976417013449512255509641",
                "225348388825230774848016770453119811665",
                "167815992405056488893575942326327461495",
                "1507647375714651444867992844202880817",
                "127090769538363021151483719271055088351",
                "202512794033812879980923652415737020845",
                "236825169938993079734599592311122265736",
                "168179415593768678240696369759327710363",
                "248022326732880615420434617542805870946",
                "175896109289554940090939261806987065686",
                "90071674192499637843724335703530884613",
                "171457901116836406771337497745015245282",
                "264120474396635097908651620618867083042",
                "328423373223797810260970552050885529571",
                "300098446878397681070501860576368870248",
                "295265758425860064250415189496373498425",
                "86472157708353977943881192032813260878",
                "60318811906064952596592008417709428910",
                "307099821473381234614389098398948318890",
                "140544837688672981020118545510708692465",
                "263469174941335010600950136288979445391",
                "271284247299957261710214612275891588787",
                "1832595864154061532558811334765054474",
                "178830658407190326500642516988900640473",
                "209219245614332218585818259374010880962",
                "213036577045463924670805817025913067479",
                "73608641410606287856356451517629671030",
                "145075979203064792650292927461927028426",
                "185341436693139599165888421572749296782",
                "166009573292860065600322126055320125898",
                "145873558928596274083325002576217473093",
                "319574286551222979622559631752268263862",
                "104544465980359390420872136237496402740",
                "154227332018279209006450720962143777768",
                "76345788931996971974463604406934575838",
                "70165839902070009011927805433720314312",
                "48194533339877960542575411314867206886",
                "322260968566021249435457295965020160356",
                "332912369049448886554064377171391846397",
                "185341436693139599165888421572749296782",
                "166009573292860065600322126055320125898",
                "145873558928596274083325002576217473093",
                "319574286551222979622559631752268263862",
                "104544465980359390420872136237496402740",
                "154227332018279209006450720962143777768",
                "101505415750833167925334952430528785099",
                "220413669694047518895477150481146168146",
                "43683167361151200472438388516191635209",
                "316822939439414128268474525035219571172",
                "176656164708110904266642944065062385843",
                "13096315051656258727346699271039685948",
                "49802147483938570162795628518066529164",
                "105928206595504948230260783377320008830",
                "1930131444506569029833233422162857546",
                "59139885564512483506033162943885463007",
                "124702907821762464971668044494866447883",
                "276072714692267325826290611921241239863",
                "43005769085658617969030493794793443408",
                "313943013027057496193356236739919747963",
                "50865512234697613512035244735426121665",
                "309769250625309758868915939864771149518",
                "258915449663560651227933323169519574652",
                "1930131444506569029833233422162857546",
                "59139885564512483506033162943885463007",
                "246922891300060465441116971684369233895",
                "204347442404714431893973610323843287094",
                "236046363662766170626241247205895514174"
            ],
            "threshold": 0.9
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-62511.json"