{"id":"CVE-2023-0341","state":"PUBLISHED","title":"Stack Buffer Overflow in editorconfig-core-c","description":"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.","publishedAt":"2023-01-31T23:22:53.634Z","updatedAt":"2025-11-03T21:46:50.070Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"canonical"},"assigner":"canonical","products":["EditorConfig EditorConfig C Core"],"affected":[{"vendor":"EditorConfig","product":"EditorConfig C Core","packageName":"editorconfig-core-c","versions":[{"version":"0","status":"affected","lessThan":"v0.12.6","versionType":"commit"}],"collectionURL":"https://github.com/editorconfig/editorconfig-core-c/releases","modules":["configuration file parsing"],"platforms":["Linux","MacOS","Windows"],"repo":"https://github.com/editorconfig/editorconfig-core-c/"}],"references":["https://github.com/editorconfig/editorconfig-core-c/commit/41281ea82fbf24b060a9f69b9c5369350fb0529e","https://litios.github.io/2023/01/14/CVE-2023-0341.html","https://ubuntu.com/security/notices/USN-5842-1","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZCFE7DXWAAKDJPRKMXHCACKGKNV37IYZ/","https://lists.debian.org/debian-lts-announce/2024/11/msg00036.html"],"weaknesses":["CWE-121"],"ingestedAt":"2026-10-29T20:05:36.141Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/0xxx/CVE-2023-0341.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-0341","state":"PUBLISHED","datePublished":"2023-01-31T23:22:53.634Z","dateUpdated":"2025-11-03T21:46:50.070Z","assignerShortName":"canonical","assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateReserved":"2023-01-17T16:04:01.890Z"},"containers":{"cna":{"title":"Stack Buffer Overflow in editorconfig-core-c","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"EditorConfig","product":"EditorConfig C Core","packageName":"editorconfig-core-c","versions":[{"version":"0","status":"affected","lessThan":"v0.12.6","versionType":"commit"}],"collectionURL":"https://github.com/editorconfig/editorconfig-core-c/releases","modules":["configuration file parsing"],"platforms":["Linux","MacOS","Windows"],"repo":"https://github.com/editorconfig/editorconfig-core-c/"}],"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/"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-121","description":"CWE-121","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"canonical","orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateUpdated":"2023-06-03T04:06:30.411Z"},"credits":[{"lang":"en","type":"analyst","value":"David Fernandez Gonzalez"},{"lang":"en","type":"finder","value":"Mark Esler"}],"datePublic":"2023-01-19T08:21:49.000Z","impacts":[{"capecId":"CAPEC-8","descriptions":[{"lang":"en","value":"CAPEC-8"}]}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/editorconfig/editorconfig-core-c/commit/41281ea82fbf24b060a9f69b9c5369350fb0529e","tags":["patch","x_transferred"]},{"url":"https://litios.github.io/2023/01/14/CVE-2023-0341.html","tags":["technical-description","x_transferred"]},{"url":"https://ubuntu.com/security/notices/USN-5842-1","tags":["third-party-advisory","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZCFE7DXWAAKDJPRKMXHCACKGKNV37IYZ/","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00036.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T21:46:50.070Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-03-27T14:28:20.466703Z","id":"CVE-2023-0341","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-27T14:30:42.646Z"}}]}}}