{"id":"UBUNTU-CVE-2026-40489","details":"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.","modified":"2026-06-02T18:29:26.370288131Z","published":"2026-04-20T00:00:00Z","related":["USN-8238-1","USN-8238-2"],"upstream":["CVE-2026-40489"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-40489"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-40489"},{"type":"REPORT","url":"https://github.com/editorconfig/editorconfig-core-c/security/advisories/GHSA-97xg-vrcq-254h"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8238-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8238-2"}],"affected":[{"package":{"name":"editorconfig-core","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/editorconfig-core?arch=source&distro=esm-apps-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.0-2ubuntu0.1~esm3"}]}],"versions":["0.12.0-2","0.12.0-2ubuntu0.1~esm1","0.12.0-2ubuntu0.1~esm2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro","binaries":[{"binary_name":"editorconfig","binary_version":"0.12.0-2ubuntu0.1~esm3"},{"binary_name":"libeditorconfig0","binary_version":"0.12.0-2ubuntu0.1~esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40489.json"}},{"package":{"name":"editorconfig-core","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/editorconfig-core?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.1-1.1ubuntu0.18.04.1~esm3"}]}],"versions":["0.12.1-1","0.12.1-1.1","0.12.1-1.1ubuntu0.18.04.1~esm1","0.12.1-1.1ubuntu0.18.04.1~esm2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"editorconfig","binary_version":"0.12.1-1.1ubuntu0.18.04.1~esm3"},{"binary_name":"libeditorconfig0","binary_version":"0.12.1-1.1ubuntu0.18.04.1~esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40489.json"}},{"package":{"name":"editorconfig-core","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/editorconfig-core?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.1-1.1+deb11u1ubuntu0.1~esm1"}]}],"versions":["0.12.1-1.1","0.12.1-1.1ubuntu0.20.04.1~esm1","0.12.1-1.1+deb11u1build0.20.04.1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"0.12.1-1.1+deb11u1ubuntu0.1~esm1","binary_name":"editorconfig"},{"binary_version":"0.12.1-1.1+deb11u1ubuntu0.1~esm1","binary_name":"libeditorconfig0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40489.json"}},{"package":{"name":"editorconfig-core","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/editorconfig-core?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.5-2ubuntu0.1~esm3"}]}],"versions":["0.12.1-1.1","0.12.1-2","0.12.5-2","0.12.5-2ubuntu0.1~esm1","0.12.5-2ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"editorconfig","binary_version":"0.12.5-2ubuntu0.1~esm3"},{"binary_name":"libeditorconfig0","binary_version":"0.12.5-2ubuntu0.1~esm3"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40489.json"}},{"package":{"name":"editorconfig-core","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/editorconfig-core?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.7-0.1ubuntu0.1"}]}],"versions":["0.12.6-0.1","0.12.7-0.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"0.12.7-0.1ubuntu0.1","binary_name":"editorconfig"},{"binary_name":"libeditorconfig0","binary_version":"0.12.7-0.1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40489.json"}},{"package":{"name":"editorconfig-core","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/editorconfig-core?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.9+~0.17.1-1ubuntu2.1"}]}],"versions":["0.12.9+~0.15.1-1ubuntu1","0.12.9+~0.17.1-1","0.12.9+~0.17.1-1ubuntu2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"editorconfig","binary_version":"0.12.9+~0.17.1-1ubuntu2.1"},{"binary_name":"libeditorconfig0","binary_version":"0.12.9+~0.17.1-1ubuntu2.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40489.json"}},{"package":{"name":"editorconfig-core","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/editorconfig-core?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.10+~0.17.1-3ubuntu0.1"}]}],"versions":["0.12.9+~0.17.1-1ubuntu2","0.12.10+~0.17.1-2","0.12.10+~0.17.1-3"],"ecosystem_specific":{"binaries":[{"binary_name":"editorconfig","binary_version":"0.12.10+~0.17.1-3ubuntu0.1"},{"binary_name":"libeditorconfig0","binary_version":"0.12.10+~0.17.1-3ubuntu0.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40489.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}