
CVE catalog
CVE-2026-40489
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 allow
- Severity
- High · CVSS 8.6
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 - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.15% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | editorconfig-core | sid | 0.12.10+~0.17.1-3 | vulnerable |
| Debian | editorconfig-core | forky | 0.12.10+~0.17.1-3 | vulnerable |
| Debian | editorconfig-core | trixie | 0.12.9+~0.17.1-1 | vulnerable |
| Debian | editorconfig-core | bookworm | 0.12.6-0.1 | vulnerable |
| Cpe | editorconfig-core | Not reported | 0.12.7-0.1ubuntu0.1 | fixed |
| Cpe | editorconfig | Not reported | 0.12.7-0.1ubuntu0.1 | fixed |
| Cpe | editorconfig-doc | Not reported | 0.12.7-0.1ubuntu0.1 | fixed |
| Cpe | libeditorconfig-dev | Not reported | 0.12.7-0.1ubuntu0.1 | fixed |
| Cpe | libeditorconfig0 | Not reported | 0.12.7-0.1ubuntu0.1 | fixed |
| Cpe | editorconfig-core | Not reported | Not reported | vulnerable |
| Suse | editorconfig-core-c | linux enterprise module for development tools 15 sp7 | 0.12.6-150600.3.6.1 | fixed |
| Opensuse | editorconfig-core-c | leap 16.0 | 0.12.9-160000.3.1 | fixed |
| Suse | editorconfig-core-c | linux enterprise server 16.0 | 0.12.9-160000.3.1 | fixed |
| Suse | editorconfig-core-c | linux enterprise server for sap applications 16.0 | 0.12.9-160000.3.1 | fixed |
| Ubuntu | editorconfig-core | pro | 0.12.1-1.1 | vulnerable |
| Ubuntu | editorconfig-core | pro | 0.12.1-2 | vulnerable |
| Ubuntu | editorconfig-core | pro | 0.12.5-2 | vulnerable |
| Ubuntu | editorconfig-core | pro | 0.12.5-2ubuntu0.1~esm1 | vulnerable |
| Ubuntu | editorconfig-core | pro | 0.12.5-2ubuntu0.1~esm2 | vulnerable |
| Ubuntu | editorconfig-core | pro | 0.12.5-2ubuntu0.1~esm3 | fixed |
| Ubuntu | editorconfig-core | pro | 0.12.1-1.1 | vulnerable |
| Ubuntu | editorconfig-core | pro | 0.12.1-2 | vulnerable |
| Ubuntu | editorconfig-core | pro | 0.12.5-2 | vulnerable |
| Ubuntu | editorconfig-core | pro | 0.12.5-2ubuntu0.1~esm1 | vulnerable |
| Ubuntu | editorconfig-core | pro | 0.12.5-2ubuntu0.1~esm2 | vulnerable |
| Ubuntu | editorconfig-core | pro | 0.12.5-2ubuntu0.1~esm3 | fixed |
| Ubuntu | editorconfig-core | 24.04 | 0.12.6-0.1 | vulnerable |
| Ubuntu | editorconfig-core | 24.04 | 0.12.7-0.1 | vulnerable |
| Ubuntu | editorconfig-core | 24.04 | 0.12.7-0.1ubuntu0.1 | fixed |
| Ubuntu | editorconfig-core | 25.10 | 0.12.9+~0.15.1-1ubuntu1 | vulnerable |
| Ubuntu | editorconfig-core | 25.10 | 0.12.9+~0.17.1-1 | vulnerable |
| Ubuntu | editorconfig-core | 25.10 | 0.12.9+~0.17.1-1ubuntu2 | vulnerable |
| Ubuntu | editorconfig-core | 25.10 | 0.12.9+~0.17.1-1ubuntu2.1 | fixed |
| Ubuntu | editorconfig-core | 26.04 | 0.12.9+~0.17.1-1ubuntu2 | vulnerable |
| Ubuntu | editorconfig-core | 26.04 | 0.12.10+~0.17.1-2 | vulnerable |
| Ubuntu | editorconfig-core | 26.04 | 0.12.10+~0.17.1-3 | vulnerable |
| Ubuntu | editorconfig-core | 26.04 | 0.12.10+~0.17.1-3ubuntu0.1 | fixed |
| Ubuntu | editorconfig-core | 24.04 | 0.12.6-0.1 | vulnerable |
| Ubuntu | editorconfig-core | 24.04 | 0.12.7-0.1 | vulnerable |
| Ubuntu | editorconfig-core | 24.04 | 0.12.7-0.1ubuntu0.1 | fixed |
| Ubuntu | editorconfig-core | 25.10 | 0.12.9+~0.15.1-1ubuntu1 | vulnerable |
| Ubuntu | editorconfig-core | 25.10 | 0.12.9+~0.17.1-1 | vulnerable |
| Ubuntu | editorconfig-core | 25.10 | 0.12.9+~0.17.1-1ubuntu2 | vulnerable |
| Ubuntu | editorconfig-core | 25.10 | 0.12.9+~0.17.1-1ubuntu2.1 | fixed |
| Ubuntu | editorconfig-core | 26.04 | 0.12.9+~0.17.1-1ubuntu2 | vulnerable |
| Ubuntu | editorconfig-core | 26.04 | 0.12.10+~0.17.1-2 | vulnerable |
| Ubuntu | editorconfig-core | 26.04 | 0.12.10+~0.17.1-3 | vulnerable |
| Ubuntu | editorconfig-core | 26.04 | 0.12.10+~0.17.1-3ubuntu0.1 | fixed |
| Opensuse | editorconfig-core-c | tumbleweed | 0.12.11-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | editorconfig-core | source | sid | (unfixed) | not yet assigned | Not reported | [1134338] |
| Debian | editorconfig-core | source | forky | (unfixed) | not yet assigned | Not reported | [1134338] |
| Debian | editorconfig-core | source | trixie | (unfixed) | not yet assigned | Not reported | [1134338] |
| Debian | editorconfig-core | source | bookworm | (unfixed) | not yet assigned | Not reported | [1134338] |
| Cpe | editorconfig-core | cpe | Not reported | 0.12.7-0.1ubuntu0.1 | Not reported | Not reported | Not reported |
| Cpe | editorconfig | cpe | Not reported | 0.12.7-0.1ubuntu0.1 | Not reported | Not reported | Not reported |
| Cpe | editorconfig-doc | cpe | Not reported | 0.12.7-0.1ubuntu0.1 | Not reported | Not reported | Not reported |
| Cpe | libeditorconfig-dev | cpe | Not reported | 0.12.7-0.1ubuntu0.1 | Not reported | Not reported | Not reported |
| Cpe | libeditorconfig0 | cpe | Not reported | 0.12.7-0.1ubuntu0.1 | Not reported | Not reported | Not reported |
| Suse | editorconfig-core-c | rpm | linux enterprise module for development tools 15 sp7 | 0.12.6-150600.3.6.1 | Not reported | SUSE-SU-2026:2731-1 | Not reported |
| Opensuse | editorconfig-core-c | rpm | leap 16.0 | 0.12.9-160000.3.1 | Not reported | OPENSUSE-SU-2026:20966-1 | Not reported |
| Suse | editorconfig-core-c | rpm | linux enterprise server 16.0 | 0.12.9-160000.3.1 | Not reported | SUSE-SU-2026:22125-1 | Not reported |
| Suse | editorconfig-core-c | rpm | linux enterprise server for sap applications 16.0 | 0.12.9-160000.3.1 | Not reported | SUSE-SU-2026:22125-1 | Not reported |
| Ubuntu | editorconfig-core | deb | pro | 0.12.5-2ubuntu0.1~esm3 | Not reported | USN-8238-2 | Not reported |
| Ubuntu | editorconfig-core | deb | pro | 0.12.5-2ubuntu0.1~esm3 | Not reported | UBUNTU-CVE-2026-40489 | Not reported |
| Ubuntu | editorconfig-core | deb | 24.04 | 0.12.7-0.1ubuntu0.1 | Not reported | UBUNTU-CVE-2026-40489 | Not reported |
| Ubuntu | editorconfig-core | deb | 25.10 | 0.12.9+~0.17.1-1ubuntu2.1 | Not reported | UBUNTU-CVE-2026-40489 | Not reported |
| Ubuntu | editorconfig-core | deb | 26.04 | 0.12.10+~0.17.1-3ubuntu0.1 | Not reported | UBUNTU-CVE-2026-40489 | Not reported |
| Ubuntu | editorconfig-core | deb | 24.04 | 0.12.7-0.1ubuntu0.1 | Not reported | USN-8238-1 | Not reported |
| Ubuntu | editorconfig-core | deb | 25.10 | 0.12.9+~0.17.1-1ubuntu2.1 | Not reported | USN-8238-1 | Not reported |
| Ubuntu | editorconfig-core | deb | 26.04 | 0.12.10+~0.17.1-3ubuntu0.1 | Not reported | USN-8238-1 | Not reported |
| Opensuse | editorconfig-core-c | rpm | tumbleweed | 0.12.11-1.1 | Not reported | OPENSUSE-SU-2026:10663-1 | Not reported |
Notes
[trixie] editorconfig-core: Minor issue [bookworm] editorconfig-core: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [editorconfig]Affected
Source package: [editorconfig-core]
Details (2)
0.12.6-0.1· amd64 · bookwormAffected
nvd · editorconfig-core · debian · bookworm; nvd · editorconfig-core · debian · 12
0.12.6-0.1· arm64 · bookwormAffected
nvd · editorconfig-core · debian · bookworm; nvd · editorconfig-core · debian · 12
- [editorconfig-doc]Affected
Source package: [editorconfig-core]
Details (2)
0.12.6-0.1· all · bookwormAffected
nvd · editorconfig-core · debian · bookworm; nvd · editorconfig-core · debian · 12
0.12.6-0.1· all · bookwormAffected
nvd · editorconfig-core · debian · bookworm; nvd · editorconfig-core · debian · 12
- [libeditorconfig0]Affected
Source package: [editorconfig-core]
Details (2)
0.12.6-0.1· amd64 · bookwormAffected
nvd · editorconfig-core · debian · bookworm; nvd · editorconfig-core · debian · 12
0.12.6-0.1· arm64 · bookwormAffected
nvd · editorconfig-core · debian · bookworm; nvd · editorconfig-core · debian · 12
- [libeditorconfig-dev]Affected
Source package: [editorconfig-core]
Details (2)
0.12.6-0.1· amd64 · bookwormAffected
nvd · editorconfig-core · debian · bookworm; nvd · editorconfig-core · debian · 12
0.12.6-0.1· arm64 · bookwormAffected
nvd · editorconfig-core · debian · bookworm; nvd · editorconfig-core · debian · 12
[Debian 13 (Trixie)]
- [editorconfig]Affected
Source package: [editorconfig-core]
Details (2)
0.12.9+~0.17.1-1· amd64 · trixieAffected
nvd · editorconfig-core · debian · 13
0.12.9+~0.17.1-1· arm64 · trixieAffected
nvd · editorconfig-core · debian · 13
- [editorconfig-doc]Affected
Source package: [editorconfig-core]
Details (2)
0.12.9+~0.17.1-1· all · trixieAffected
nvd · editorconfig-core · debian · 13
0.12.9+~0.17.1-1· all · trixieAffected
nvd · editorconfig-core · debian · 13
- [libeditorconfig0]Affected
Source package: [editorconfig-core]
Details (2)
0.12.9+~0.17.1-1· amd64 · trixieAffected
nvd · editorconfig-core · debian · 13
0.12.9+~0.17.1-1· arm64 · trixieAffected
nvd · editorconfig-core · debian · 13
- [libeditorconfig-dev]Affected
Source package: [editorconfig-core]
Details (2)
0.12.9+~0.17.1-1· amd64 · trixieAffected
nvd · editorconfig-core · debian · 13
0.12.9+~0.17.1-1· arm64 · trixieAffected
nvd · editorconfig-core · debian · 13
[openSUSE Tumbleweed]
- [editorconfig]Unknown
Source package: [editorconfig-core-c]
Details (1)
0.12.11-1.3· x86_64 · tumbleweedUnknown · Fixed:
0.12.11-1.1Version impact unknown
nvd · editorconfig-core-c · opensuse · tumbleweed
- [libeditorconfig0]Unknown
Source package: [editorconfig-core-c]
Details (1)
0.12.11-1.3· x86_64 · tumbleweedUnknown · Fixed:
0.12.11-1.1Version impact unknown
nvd · editorconfig-core-c · opensuse · tumbleweed
- [libeditorconfig-devel]Unknown
Source package: [editorconfig-core-c]
Details (1)
0.12.11-1.3· x86_64 · tumbleweedUnknown · Fixed:
0.12.11-1.1Version impact unknown
nvd · editorconfig-core-c · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10663-1.json]
- [https://github.com/editorconfig/editorconfig-core-c/commit/5159be88ad50641d9843289adda791ba300421ff]
- [https://github.com/editorconfig/editorconfig-core-c/releases/tag/v0.12.11]
- [https://github.com/editorconfig/editorconfig-core-c/security/advisories/GHSA-97xg-vrcq-254h]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-40489]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-40489]
- [https://osv.dev/vulnerability/SUSE-SU-2026:22125-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:2731-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-40489]
- [https://osv.dev/vulnerability/USN-8238-1]
- [https://osv.dev/vulnerability/USN-8238-2]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:10663-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:20966-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-40489]
- [https://ubuntu.com/security/notices/USN-8238-1]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]