{"id":"CVE-2026-40489","published":"2026-04-18T01:24:57Z","modified":"2026-04-20T16:15:31Z","title":"editorconfig-core-c has incomplete fix for CVE-2023-0341","vendor":"editorconfig","product":"editorconfig-core-c","tier":"tail","description":{"text":"editorconfig-core-c  is an EditorConfig core library for use by plugins supporting EditorConfig parsing. Versions up to and including 0.12.10 have a stack-based buffer overflow in ec_glob() that allows an attacker to crash any application using libeditorconfig by providing a specially crafted directory structure and .editorconfig file. This is an incomplete fix for CVE-2023-0341. The pcre_str buffer was protected in 0.12.6 but the adjacent l_pattern[8194] stack buffer received no equivalent protection. On Ubuntu 24.04, FORTIFY_SOURCE converts the overflow to SIGABRT (DoS). Version 0.12.11 contains an updated fix.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00144,"percentile":0.0373,"provenance":"source"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"},{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/editorconfig/editorconfig-core-c/security/advisories/GHSA-97xg-vrcq-254h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/editorconfig/editorconfig-core-c/commit/5159be88ad50641d9843289adda791ba300421ff","tags":["x_refsource_MISC"]},{"url":"https://github.com/editorconfig/editorconfig-core-c/releases/tag/v0.12.11","tags":["x_refsource_MISC"]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":0.75},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"editorconfig","affectedVersions":[{"vendor":"editorconfig","product":"editorconfig-core-c","versions":["< 0.12.11"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-20T16:10:35.794222Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-23636","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-editorconfig-core-c-cve-2023-0341","parents":[{"from":"CVE-2023-0341","to":"CVE-2026-40489","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This is an incomplete fix for CVE-2023-0341.","from":"CVE.org","in":"CVE-2026-40489"},{"kind":"same-code","provenance":"machine","files":["src/lib/ec_glob.c"],"commits":["https://github.com/editorconfig/editorconfig-core-c/commit/41281ea82fbf24b060a9f69b9c5369350fb0529e","https://github.com/editorconfig/editorconfig-core-c/commit/5159be88ad50641d9843289adda791ba300421ff"],"basis":"shared function","functions":["ec_glob"]}]},{"from":"CVE-2024-53849","to":"CVE-2026-40489","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/lib/ec_glob.c"],"commits":["https://github.com/editorconfig/editorconfig-core-c/commit/4d5518a0a4e4910c37281ab13a048d0d86999782","https://github.com/editorconfig/editorconfig-core-c/commit/a8dd5312e08abeab95ff5656d32ed3cb85fba70b","https://github.com/editorconfig/editorconfig-core-c/commit/5159be88ad50641d9843289adda791ba300421ff"],"basis":"shared function","functions":["ec_glob"]},{"kind":"similar","provenance":"machine","score":0.36,"basis":"same product + CWE + description similarity"}]}]}}