Stack overwrite via unchecked glob expansion
Published Jan 31, 2023 · Updated Nov 3, 2025
Stack buffer overflow in EditorConfig C Core before 0.12.6 allows local users to overwrite stack memory through a crafted glob pattern. In ec_glob, unchecked character writes and concatenations expand nonalphanumeric and bracket syntax into the fixed p_pcre buffer without enforcing pcre_str_end. A user or integrating application must parse attacker-controlled path and .editorconfig data; the demonstrated overwrite corrupts control state, terminates the process, and can enable code execution.
Summary
What happened
Stack buffer overflow in EditorConfig C Core before 0.12.6 allows local users to overwrite stack memory through a crafted glob pattern. In ec_glob, unchecked character writes and concatenations expand nonalphanumeric and bracket syntax into the fixed p_pcre buffer without enforcing pcre_str_end. A user or integrating application must parse attacker-controlled path and .editorconfig data; the demonstrated overwrite corrupts control state, terminates the process, and can enable code execution.
The record
- CVE
- CVE-2023-0341
- Published
- Jan 31, 2023
- Updated
- Nov 3, 2025
- Vendor
- EditorConfig
- Product
- EditorConfig C Core
- Classifications
- CWE-121, CAPEC-8, T1204.002
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jan 31, 2023CVE publishedPublication date reported by the CVE source.
- Nov 3, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <v0.12.6
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- ec_glob stack-overwrite proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo