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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| editorconfig | editorconfig-core-c | < 0.12.11 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | editorconfig-core | No fix yet | — |
| Debian 13 | editorconfig-core | No fix yet | — |
| Debian 12 | editorconfig-core | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | editorconfig-core | 0.12.10+~0.17.1-3ubuntu0.1 | — |
| Ubuntu 25.10 | editorconfig-core | 0.12.9+~0.17.1-1ubuntu2.1 | — |
| Ubuntu 24.04 LTS | editorconfig-core | 0.12.7-0.1ubuntu0.1 | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | editorconfig-core | 0.12.5-2ubuntu0.1~esm3 | USN-8238-2 |
| Ubuntu Pro 20.04 LTS | editorconfig-core | 0.12.1-1.1+deb11u1ubuntu0.1~esm1 | USN-8238-2 |
| Ubuntu Pro 18.04 LTS | editorconfig-core | 0.12.1-1.1ubuntu0.18.04.1~esm3 | USN-8238-2 |
| Ubuntu Pro 16.04 LTS | editorconfig-core | 0.12.0-2ubuntu0.1~esm3 | USN-8238-2 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | editorconfig-core-c | 0.12.6-150600.3.6.1 | SUSE-SU-2026:2731-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | editorconfig-core-c | 0.12.9-160000.3.1 | SUSE-SU-2026:22125-1 |
| SLES 16.0 | editorconfig-core-c | 0.12.9-160000.3.1 | SUSE-SU-2026:22125-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | editorconfig-core-c | 0.12.11-1.1 | openSUSE-SU-2026:10663-1 |
| openSUSE Leap 16.0 | editorconfig-core-c | 0.12.9-160000.3.1 | openSUSE-SU-2026:20966-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | editorconfig | 0.12.11-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | editorconfig +2 | 0.12.11-2.amzn2023.0.1 | ALAS2023-2026-1642 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
saretawa/CVE-2026-40489 ★ 0 · Oct 30, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 6
- SUSE-SU-2026:2731-1 Security update for editorconfig-core-c SUSE / openSUSE Security Updates · Jul 4, 2026
- openSUSE-SU-2026:20966-1 Security update for editorconfig-core-c SUSE / openSUSE Security Updates · Jun 24, 2026
- SUSE-SU-2026:22125-1 Security update for editorconfig-core-c SUSE / openSUSE Security Updates · Jun 17, 2026
- USN-8238-2 editorconfig-core vulnerability Ubuntu Security Notices (USN) · Jun 2, 2026
- ALAS2023-2026-1642 Moderate: editorconfig security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · May 13, 2026
- openSUSE-SU-2026:10663-1 editorconfig-0.12.11-1.1 on GA media SUSE / openSUSE Security Updates · May 2, 2026