editorconfig-core-c has incomplete fix for CVE-2023-0341
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-121 and the CVSS impact.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| editorconfig | editorconfig-core-c | before 0.12.11 | 0.12.11 | Patch available | CNA |
- editorconfig-core-c Vendoreditorconfig Affected before 0.12.11 Fixed in 0.12.11 Patch available CNA
Remediation
- Fix · CNA editorconfig-core-c (editorconfig) Fixed in 0.12.11
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40489
References
More editorconfig vulnerabilities
- TI-2023-00325 Stack Buffer Overflow in editorconfig-core-c CVSS 3.1HIGH 7.8
- TI-2024-36045 Several stack buffer overflows and pointer overflows in editorconfig-core-c CVSS 4.0MEDIUM 4.8
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences