CVE-2026-40489 json
editorconfig-core-c has incomplete fix for CVE-2023-0341
published 6mo ago modified 14d ago also EUVD-2026-23636
- cvss
- 8.6
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 4%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- editorconfig editorconfig 0.12.11
- editorconfig-core Ubuntu 24.04 LTS 0.12.7-0.1ubuntu0.1
- editorconfig-core Ubuntu 25.10 0.12.9+~0.17.1-1ubuntu2.1
- editorconfig-core Ubuntu 26.04 LTS 0.12.10+~0.17.1-3ubuntu0.1
- editorconfig-core Ubuntu Pro 16.04 LTS 0.12.0-2ubuntu0.1~esm3
- editorconfig-core Ubuntu Pro 18.04 LTS 0.12.1-1.1ubuntu0.18.04.1~esm3
- editorconfig-core Ubuntu Pro 20.04 LTS 0.12.1-1.1+deb11u1ubuntu0.1~esm1
- editorconfig-core Ubuntu Pro 22.04 LTS 0.12.5-2ubuntu0.1~esm3
ubuntu advisories UBUNTU-CVE-2026-40489
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- editorconfig-core-c SLE Module for Development Tools 15 SP7 0.12.6-150600.3.6.1
- editorconfig-core-c SLES for SAP applications 16.0, SLES 16.0 0.12.9-160000.3.1
suse advisories SUSE-SU-2026:2731-1SUSE-SU-2026:22125-1
- editorconfig-core-c openSUSE Leap 16.0 0.12.9-160000.3.1
- editorconfig-core-c openSUSE Tumbleweed 0.12.11-1.1
opensuse advisories openSUSE-SU-2026:20966-1openSUSE-SU-2026:10663-1
- editorconfig Alpine 3.24 0.12.11-r0
alpine advisories ALPINE-CVE-2026-40489
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2026-40489 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 6mo ago
Exploit prediction
0.15% chance of exploitation in the next 30 days, higher than 4% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 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 |
| CNA | 4.0 | 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 |
Affected products
- editorconfig editorconfig-core-c
Classification
References
Sources
- CVE List CVE-2026-40489
- NVD CVE-2026-40489
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.