{"id":"CVE-2023-0341","published":"2023-01-31T23:22:53Z","modified":"2025-11-03T21:46:50Z","title":"Stack Buffer Overflow in editorconfig-core-c","vendor":"EditorConfig","product":"EditorConfig C Core","tier":"tail","description":{"text":"A stack buffer overflow exists in the ec_glob function of editorconfig-core-c before v0.12.6 which allowed an attacker to arbitrarily write to the stack and possibly allows remote code execution. editorconfig-core-c v0.12.6 resolved this vulnerability by bound checking all write operations over the p_pcre buffer.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00999,"percentile":0.63583,"provenance":"source"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"references":[{"url":"https://github.com/editorconfig/editorconfig-core-c/commit/41281ea82fbf24b060a9f69b9c5369350fb0529e","tags":["patch"]},{"url":"https://litios.github.io/2023/01/14/CVE-2023-0341.html","tags":["technical-description"]},{"url":"https://ubuntu.com/security/notices/USN-5842-1","tags":["third-party-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZCFE7DXWAAKDJPRKMXHCACKGKNV37IYZ/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00036.html","tags":[]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":12.72},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"editorconfig","affectedVersions":[{"vendor":"EditorConfig","product":"EditorConfig C Core","versions":["< v0.12.6"]}],"capec":[{"id":"CAPEC-8","name":null}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-03-27T14:28:20.466703Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-12402","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-editorconfig-core-c-cve-2023-0341","children":[{"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-2023-0341","to":"CVE-2024-53849","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/41281ea82fbf24b060a9f69b9c5369350fb0529e","https://github.com/editorconfig/editorconfig-core-c/commit/4d5518a0a4e4910c37281ab13a048d0d86999782","https://github.com/editorconfig/editorconfig-core-c/commit/a8dd5312e08abeab95ff5656d32ed3cb85fba70b"],"basis":"shared function","functions":["ec_glob"]}]}]}}