Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts malicious repository
-
DeliveryDeveloper clones/opens repository
-
ExploitIDE reads .editorconfig file
-
Executionec_glob() processes oversized pattern
-
PersistStack buffer overflow in l_pattern[8194]
-
ImpactCrash (FORTIFY) or arbitrary code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Local filesystem access required to place malicious .editorconfig files where target applications will process them. The attacker must control directory structure and .editorconfig file content in a location that will be parsed by an application using the vulnerable libeditorconfig version. No authentication, special privileges, or user interaction required beyond the application's normal operation of reading .editorconfig files (CVSS PR:N/UI:N). Exploitation is limited to systems running editorconfig-core-c versions ≤0.12.10. Attack complexity is low (AC:L) as crafting the overflow pattern requires only understanding of the l_pattern buffer size (8194 bytes) and basic knowledge of .editorconfig syntax. Exploitation impact is constrained on systems with stack-smashing protections (FORTIFY_SOURCE, stack canaries) where overflow results in SIGABRT rather than arbitrary code execution. The vulnerability is not exploitable remotely unless combined with another vulnerability allowing remote file write to directories processed by affected applications. |
| Impact | Real-world risk is MODERATE with local attack surface constraining widespread impact. CVSS 8.6 HIGH severity accurately reflects the technical impact (VC:H/VI:H/VA:H - full confidentiality, integrity, and availability compromise) but requires important context: AV:L (Local attack vector) limits exposure to attackers with existing filesystem access, PR:N (no privileges required) means any local user can trigger it, and AC:L (low complexity) indicates reliable exploitation. No CISA KEV listing confirms this is not currently exploited in the wild. No public POC code identified in references, though the GitHub security advisory and commit provide sufficient technical detail for skilled attackers to develop exploits. The attack targets applications parsing untrusted .editorconfig files - most commonly developer tools (IDEs, text editors, build systems). Primary risk scenarios: (1) malicious repository cloning where developers unknowingly process attacker-controlled .editorconfig files, (2) shared development environments where untrusted users can write files, (3) CI/CD pipelines processing external repositories. FORTIFY_SOURCE mitigations on modern Linux distributions downgrade impact from potential code execution to denial-of-service, significantly reducing severity in hardened environments. However, legacy systems, custom builds without hardening, or non-Linux platforms remain at higher risk. The incomplete fix history (CVE-2023-0341 → CVE-2026-40489) suggests potential for additional undiscovered buffer handling issues in this codebase. Priority: MEDIUM-HIGH for organizations using affected versions in multi-user or CI/CD environments; MEDIUM for single-user developer workstations with modern OS protections. |
| Exploit ScenarioDerived | An attacker creates a malicious Git repository containing a specially crafted .editorconfig file with deeply nested directory patterns designed to overflow the l_pattern[8194] buffer in ec_glob(). A developer clones this repository and opens it in their IDE (e.g., VS Code with EditorConfig extension, Vim with editorconfig-vim plugin). The IDE automatically parses the .editorconfig file to apply style rules, triggering the buffer overflow. On Ubuntu 24.04 with FORTIFY_SOURCE, the IDE crashes immediately (DoS), disrupting the developer's workflow. On older systems without stack protection, the attacker potentially achieves arbitrary code execution in the context of the editor process, enabling local privilege escalation, data exfiltration from open files, or backdoor installation. The attack requires no user interaction beyond opening the malicious repository, making it particularly effective in supply chain scenarios or against developers who routinely clone external code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 18, 2026
Stack-based buffer overflow in editorconfig-core-c library (versions ≤0.12.10) enables local attackers to crash applications or potentially execute arbitrary code via maliciously crafted .editorconfig files and directory structures. This incomplete fix for CVE-2023-0341 left the l_pattern[8194] stack buffer unprotected while only addressing the pcre_str buffer in version 0.12.6. Patched in version 0.12.11. No active exploitation confirmed (not in CISA KEV), but publicly exploitable with local access and minimal complexity (CVSS AV:L/AC:L/PR:N).
RemediationAI
Upgrade editorconfig-core-c to version 0.12.11 or later, which contains the complete fix for the l_pattern buffer overflow (commit 5159be88ad50641d9843289adda791ba300421ff). Organizations should identify all applications using libeditorconfig through dependency scanning and update accordingly. Release details: https://github.com/editorconfig/editorconfig-core-c/releases/tag/v0.12.11. For systems where immediate patching is not feasible, implement compensating controls: (1) Restrict processing of .editorconfig files to trusted sources only - configure IDEs/editors to ignore .editorconfig in untrusted repositories or require manual approval before parsing, understanding this breaks automatic style enforcement; (2) Deploy on systems with FORTIFY_SOURCE enabled (standard in Ubuntu 24.04+, RHEL 9+, Fedora 35+) to downgrade exploitation from code execution to denial-of-service, though this only mitigates severity and does not eliminate the vulnerability; (3) In CI/CD environments, run builds in isolated containers with limited privileges to contain potential exploitation impact; (4) Monitor for unexpected application crashes (SIGABRT) when processing repositories, which may indicate exploitation attempts. Trade-offs: Disabling .editorconfig processing eliminates automatic code style consistency; container isolation adds pipeline complexity and resource overhead. Verify patch deployment by checking library version in dependent applications and testing with known-malicious .editorconfig patterns if safe test environments are available.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
EditorConfig is a widely-adopted configuration system used by text editors and IDEs to maintain consistent coding styles across projects. The editorconfig-core-c library (CPE: cpe:2.3:a:editorconfig:editorconfig-core-c) provides the parsing engine for .editorconfig files. The vulnerability resides in the ec_glob() function, where the l_pattern[8194] static stack buffer lacks bounds checking during pattern matching operations. This is classified as CWE-121 (Stack-based Buffer Overflow), a memory safety issue allowing writes beyond allocated buffer boundaries. The vulnerability represents an incomplete remediation of CVE-2023-0341 - while the earlier patch protected the pcre_str buffer in version 0.12.6, the adjacent l_pattern buffer remained vulnerable. On systems with FORTIFY_SOURCE protections (standard in Ubuntu 24.04 and modern Linux distributions), the overflow triggers SIGABRT, resulting in application crash (DoS). On systems without these protections, arbitrary code execution becomes theoretically possible depending on stack layout and exploit sophistication.
Know when Editorconfig gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub Advisory
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.
Executive ViewAI
editorconfig-core-c versions 0.12.10 and earlier contain a stack-based buffer overflow vulnerability that allows local attackers to crash applications or execute arbitrary code through malicious .editorconfig files. Organizations using this library in development tools, IDEs, or build systems face potential code execution risk if developers process untrusted project configurations; patched version 0.12.11 is available and should be deployed immediately.
Apply vendor patch (editorconfig-core-c ≥0.12.11). If immediate patching is impossible: restrict project access to trusted developers only, disable automatic .editorconfig processing in development tools where feasible, monitor file access to .editorconfig files for anomalous activity, and isolate affected build systems from critical infrastructure until patched.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
More in Editorconfig
View allSame weakness CWE-121 – Stack-based Buffer Overflow
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: Medium| Product | Status |
|---|---|
| SUSE Linux Enterprise Desktop 15 SP7 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 16.0 | Fixed |
| SUSE Linux Enterprise Server 16.1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| SUSE Linux Enterprise Module for Development Tools 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP6 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Fixed |
EUVD-2026-23636
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB