{"id":"CVE-2026-40489","state":"PUBLISHED","title":"editorconfig-core-c has incomplete fix for CVE-2023-0341","description":"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.","publishedAt":"2026-04-18T01:24:57.278Z","updatedAt":"2026-04-20T16:15:31.570Z","severity":{"score":8.6,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["editorconfig editorconfig-core-c"],"affected":[{"vendor":"editorconfig","product":"editorconfig-core-c","versions":[{"version":"< 0.12.11","status":"affected"}]}],"references":["https://github.com/editorconfig/editorconfig-core-c/security/advisories/GHSA-97xg-vrcq-254h","https://github.com/editorconfig/editorconfig-core-c/commit/5159be88ad50641d9843289adda791ba300421ff","https://github.com/editorconfig/editorconfig-core-c/releases/tag/v0.12.11"],"weaknesses":["CWE-121","CWE-787"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/40xxx/CVE-2026-40489.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-40489","state":"PUBLISHED","datePublished":"2026-04-18T01:24:57.278Z","dateUpdated":"2026-04-20T16:15:31.570Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-04-13T19:50:42.114Z"},"containers":{"cna":{"title":"editorconfig-core-c has incomplete fix for CVE-2023-0341","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"editorconfig","product":"editorconfig-core-c","versions":[{"version":"< 0.12.11","status":"affected"}]}],"references":[{"url":"https://github.com/editorconfig/editorconfig-core-c/security/advisories/GHSA-97xg-vrcq-254h","name":"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","name":"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","name":"https://github.com/editorconfig/editorconfig-core-c/releases/tag/v0.12.11","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.6,"baseSeverity":"HIGH","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-121","lang":"en","description":"CWE-121: Stack-based Buffer Overflow","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-787","lang":"en","description":"CWE-787: Out-of-bounds Write","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-04-18T01:24:57.278Z"},"source":{"advisory":"GHSA-97xg-vrcq-254h","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-20T16:10:35.794222Z","id":"CVE-2026-40489","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":"2026-04-20T16:15:31.570Z"}}]}}}