CVE-2026-40489
editorconfig-core-c has incomplete fix for CVE-2023-0341
CVE-2026-40489 is a high vulnerability (CVSS 8.6) in Editorconfig Editorconfig-core-c, published April 18, 2026. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.15%, the 4th percentile. Fixed in editorconfig 0.12.11-r0.
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.6
editorconfig-core-c has incomplete fix for CVE-2023-0341
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.
- Record
CVE-2026-40489- CVSS 4.0
- 8.6 High
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 - Weakness
- CWE-121, CWE-787
- Updated
- 2026-11-02
EUVDEUVD-2026-23636
8.6
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.
- Record
EUVD-2026-23636- CVSS 4.0
- 8.6 High
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 - Updated
- 2026-11-02
NVD
8.6
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.
- Record
CVE-2026-40489- CVSS 4.0
- 8.6 High
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Weakness
- CWE-121, CWE-787
- Updated
- 2026-11-02
OSVALPINE-CVE-2026-40489
8.6
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.
- Record
ALPINE-CVE-2026-40489- CVSS 4.0
- 8.6 High
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Updated
- 2026-11-03
OSV
8.6
editorconfig-core-c has incomplete fix for CVE-2023-0341
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.
- Record
CVE-2026-40489- CVSS 4.0
- 8.6 High
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 - Weakness
- CWE-121, CWE-787
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-40489
8.6
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.
- Record
DEBIAN-CVE-2026-40489- CVSS 4.0
- 8.6 High
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Updated
- 2026-11-02
Show 10 moreShow less
OSVOESA-2026-2258
8.6
editorconfig security update
EditorConfig makes it easy to maintain the correct coding style when switching between different text editors and between different projects. The EditorConfig project maintains a file format and plugins for various text editors which allow this file format to be read and used by those editors.
Security Fix(es):
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.(CVE-2026-40489)
- Record
OESA-2026-2258- CVSS 4.0
- 8.6 High
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 - Updated
- 2026-11-02
OSVOESA-2026-2259
8.6
editorconfig security update
EditorConfig makes it easy to maintain the correct coding style when switching between different text editors and between different projects. The EditorConfig project maintains a file format and plugins for various text editors which allow this file format to be read and used by those editors.
Security Fix(es):
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.(CVE-2026-40489)
- Record
OESA-2026-2259- CVSS 4.0
- 8.6 High
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 - Updated
- 2026-11-02
OSVOESA-2026-2260
8.6
editorconfig security update
EditorConfig makes it easy to maintain the correct coding style when switching between different text editors and between different projects. The EditorConfig project maintains a file format and plugins for various text editors which allow this file format to be read and used by those editors.
Security Fix(es):
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.(CVE-2026-40489)
- Record
OESA-2026-2260- CVSS 4.0
- 8.6 High
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 - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-40489
8.6
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.
- Record
UBUNTU-CVE-2026-40489- CVSS 4.0
- 8.6 High
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 - Updated
- 2026-11-02
OSVopenSUSE-SU-2026:10663-1 No score
editorconfig-0.12.11-1.1 on GA media
These are all security issues fixed in the editorconfig-0.12.11-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:10663-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:20966-1 No score
Security update for editorconfig-core-c
This update for editorconfig-core-c fixes the following issue:
- CVE-2026-40489: l_pattern buffer overflow (bsc#1262131).
- Record
openSUSE-SU-2026:20966-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:22125-1 No score
Security update for editorconfig-core-c
This update for editorconfig-core-c fixes the following issue:
- CVE-2026-40489: l_pattern buffer overflow (bsc#1262131).
- Record
SUSE-SU-2026:22125-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:2731-1 No score
Security update for editorconfig-core-c
This update for editorconfig-core-c fixes the following issue:
- CVE-2026-40489: improper use of
strcpycan lead to a stack buffer overflow (bsc#1262131).
- Record
SUSE-SU-2026:2731-1- Updated
- 2026-11-02
OSVUSN-8238-1 No score
editorconfig-core vulnerability
It was discovered that EditorConfig incorrectly handled specially crafted configuration files. A local attacker could possibly use this issue to cause EditorConfig to crash, resulting in a denial of service.
- Record
USN-8238-1- Updated
- 2026-11-02
OSVUSN-8238-2 No score
editorconfig-core vulnerability
USN-8238-1 fixed a vulnerability in EditorConfig. This update contains the corresponding fix for Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS.
Original advisory details:
It was discovered that EditorConfig incorrectly handled specially crafted configuration files. A local attacker could possibly use this issue to cause EditorConfig to crash, resulting in a denial of service.
- Record
USN-8238-2- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
editorconfigAlpine:v3.24 |
before 0.12.11-r0 | 0.12.11-r0 |
editorconfig-coreDebian:12 |
All versions, plus listed versions 0.12.10+~0.17.1-10.12.10+~0.17.1-20.12.10+~0.17.1-30.12.6-0.10.12.7-0.10.12.9+~0.15.1-10.12.9+~0.17.1-10.12.9+~0.17.1-2 |
None known |
editorconfig-coreDebian:13 |
All versions, plus listed versions 0.12.10+~0.17.1-10.12.10+~0.17.1-20.12.10+~0.17.1-30.12.9+~0.17.1-10.12.9+~0.17.1-2 |
None known |
editorconfig-coreDebian:14 |
All versions, plus listed versions 0.12.10+~0.17.1-10.12.10+~0.17.1-20.12.10+~0.17.1-30.12.9+~0.17.1-10.12.9+~0.17.1-2 |
None known |
editorconfigopenEuler:24.03-LTS-SP3 |
before 0.12.6-3.oe2403sp3 | 0.12.6-3.oe2403sp3 |
editorconfigopenEuler:24.03-LTS |
before 0.12.6-3.oe2403 | 0.12.6-3.oe2403 |
editorconfigopenEuler:24.03-LTS-SP1 |
before 0.12.6-3.oe2403sp1 | 0.12.6-3.oe2403sp1 |
editorconfig-core-cSUSE:Linux Enterprise Server 16.0 |
before 0.12.9-160000.3.1 | 0.12.9-160000.3.1 |
editorconfig-core-cSUSE:Linux Enterprise Server for SAP applications 16.0 |
before 0.12.9-160000.3.1 | 0.12.9-160000.3.1 |
editorconfig-core-cSUSE:Linux Enterprise Module for Development Tools 15 SP7 |
before 0.12.6-150600.3.6.1 | 0.12.6-150600.3.6.1 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
editorconfig-coreUbuntu:Pro:16.04:LTS |
before 0.12.0-2ubuntu0.1~esm3, plus listed versions 0.12.0-20.12.0-2ubuntu0.1~esm10.12.0-2ubuntu0.1~esm2 |
0.12.0-2ubuntu0.1~esm3 |
editorconfig-coreUbuntu:Pro:18.04:LTS |
before 0.12.1-1.1ubuntu0.18.04.1~esm3, plus listed versions 0.12.1-10.12.1-1.10.12.1-1.1ubuntu0.18.04.1~esm10.12.1-1.1ubuntu0.18.04.1~esm2 |
0.12.1-1.1ubuntu0.18.04.1~esm3 |
editorconfig-coreUbuntu:Pro:20.04:LTS |
before 0.12.1-1.1+deb11u1ubuntu0.1~esm1, plus listed versions 0.12.1-1.10.12.1-1.1ubuntu0.20.04.1~esm10.12.1-1.1+deb11u1build0.20.04.1 |
0.12.1-1.1+deb11u1ubuntu0.1~esm1 |
editorconfig-coreUbuntu:Pro:22.04:LTS |
before 0.12.5-2ubuntu0.1~esm3, plus listed versions 0.12.1-1.10.12.1-20.12.5-20.12.5-2ubuntu0.1~esm10.12.5-2ubuntu0.1~esm2 |
0.12.5-2ubuntu0.1~esm3 |
editorconfig-coreUbuntu:24.04:LTS |
before 0.12.7-0.1ubuntu0.1, plus listed versions 0.12.6-0.10.12.7-0.1 |
0.12.7-0.1ubuntu0.1 |
editorconfig-coreUbuntu:25.10 |
before 0.12.9+~0.17.1-1ubuntu2.1, plus listed versions 0.12.9+~0.15.1-1ubuntu10.12.9+~0.17.1-10.12.9+~0.17.1-1ubuntu2 |
0.12.9+~0.17.1-1ubuntu2.1 |
editorconfig-coreUbuntu:26.04:LTS |
before 0.12.10+~0.17.1-3ubuntu0.1, plus listed versions 0.12.9+~0.17.1-1ubuntu20.12.10+~0.17.1-20.12.10+~0.17.1-3 |
0.12.10+~0.17.1-3ubuntu0.1 |
editorconfig-core-copenSUSE:Tumbleweed |
before 0.12.11-1.1 | 0.12.11-1.1 |
editorconfig-core-copenSUSE:Leap 16.0 |
before 0.12.9-160000.3.1 | 0.12.9-160000.3.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | saretawa/CVE-2026-40489 | 2026-10-30 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | affected, aliases, references | OSV |
| 2026-11-02 | created | CVE List, EUVD, NVD, OSV, PoC in GitHub |
References
github.com/editorconfig/editorconfig-core-c/security/advisories/GHSA-97xg-vrcq-254h
github.com/editorconfig/editorconfig-core-c/commit/5159be88ad50641d9843289adda791ba300421ff
github.com/editorconfig/editorconfig-core-c/releases/tag/v0.12.11
security.alpinelinux.org/vuln/CVE-2026-40489
github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40489.json
nvd.nist.gov/vuln/detail/CVE-2026-40489
Show 12 moreShow less
security-tracker.debian.org/tracker/CVE-2026-40489
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2258
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2259
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2260
suse.com/support/update/announcement/2026/suse-su-202622125-1
bugzilla.suse.com/1262131
suse.com/security/cve/CVE-2026-40489
suse.com/support/update/announcement/2026/suse-su-20262731-1
ubuntu.com/security/CVE-2026-40489
cve.org/CVERecord?id=CVE-2026-40489
ubuntu.com/security/notices/USN-8238-1
ubuntu.com/security/notices/USN-8238-2