CVE-2023-0341
Stack Buffer Overflow in editorconfig-core-c
CVE-2023-0341 is a high vulnerability (CVSS 7.8) in Editorconfig, published January 30, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.96%, the 61st percentile. Fixed in editorconfig-core 0.12.6-0.1.
A stack buffer overflow exists in the ec_glob function of editorconfig-core-c before v0.12.6 which allowed an attacker to arbitrarily write to the stack and possibly allows remote code execution. editorconfig-core-c v0.12.6 resolved this vulnerability by bound checking all write operations over the p_pcre buffer.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.8
Stack Buffer Overflow in editorconfig-core-c
A stack buffer overflow exists in the ec_glob function of editorconfig-core-c before v0.12.6 which allowed an attacker to arbitrarily write to the stack and possibly allows remote code execution. editorconfig-core-c v0.12.6 resolved this vulnerability by bound checking all write operations over the p_pcre buffer.
- Record
CVE-2023-0341- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-121
- Updated
- 2026-11-02
EUVDEUVD-2023-12402
7.8
A stack buffer overflow exists in the ec_glob function of editorconfig-core-c before v0.12.6 which allowed an attacker to arbitrarily write to the stack and possibly allows remote code execution. editorconfig-core-c v0.12.6 resolved this vulnerability by bound checking all write operations over the p_pcre buffer.
- Record
EUVD-2023-12402- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-f352-cwm8-5w9w
7.8
A stack buffer overflow exists in the ec_glob function of editorconfig-core-c before v0.12.6...
A stack buffer overflow exists in the ec_glob function of editorconfig-core-c before v0.12.6 which allowed an attacker to arbitrarily write to the stack and possibly allows remote code execution. editorconfig-core-c v0.12.6 resolved this vulnerability by bound checking all write operations over the p_pcre buffer.
- Record
GHSA-f352-cwm8-5w9w- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-121, CWE-787
- Updated
- 2026-11-02
NVD
7.8
A stack buffer overflow exists in the ec_glob function of editorconfig-core-c before v0.12.6 which allowed an attacker to arbitrarily write to the stack and possibly allows remote code execution. editorconfig-core-c v0.12.6 resolved this vulnerability by bound checking all write operations over the p_pcre buffer.
- Record
CVE-2023-0341- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-121, CWE-787
- Updated
- 2026-11-02
OSV
7.8
Stack Buffer Overflow in editorconfig-core-c
A stack buffer overflow exists in the ec_glob function of editorconfig-core-c before v0.12.6 which allowed an attacker to arbitrarily write to the stack and possibly allows remote code execution. editorconfig-core-c v0.12.6 resolved this vulnerability by bound checking all write operations over the p_pcre buffer.
- Record
CVE-2023-0341- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-121
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-0341
7.8
A stack buffer overflow exists in the ec_glob function of editorconfig-core-c before v0.12.6 which allowed an attacker to arbitrarily write to the stack and possibly allows remote code execution. editorconfig-core-c v0.12.6 resolved this vulnerability by bound checking all write operations over the p_pcre buffer.
- Record
DEBIAN-CVE-2023-0341- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 6 moreShow less
OSVUBUNTU-CVE-2023-0341
7.8
A stack buffer overflow exists in the ec_glob function of editorconfig-core-c before v0.12.6 which allowed an attacker to arbitrarily write to the stack and possibly allows remote code execution. editorconfig-core-c v0.12.6 resolved this vulnerability by bound checking all write operations over the p_pcre buffer.
- Record
UBUNTU-CVE-2023-0341- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2023-0048 No score
Updated editorconfig-core-c packages fix security vulnerability
Mark Esler and David Fernandez Gonzalez discovered that EditorConfig Core C incorrectly handled memory when handling certain inputs. An attacker could possibly use this issue to cause applications using EditorConfig Core C to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2023-0341)
- Record
MGASA-2023-0048- Updated
- 2026-11-02
OSVopenSUSE-SU-2023:0102-1 No score
Security update for editorconfig-core-c
This update for editorconfig-core-c fixes the following issues:
Update to version 0.12.6:
- CVE-2023-0341: Fixed a buffer overflow in ec_blob (boo#1211032)
- Update property key, value length limits per spec change
- Record
openSUSE-SU-2023:0102-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12906-1 No score
editorconfig-0.12.6-1.1 on GA media
These are all security issues fixed in the editorconfig-0.12.6-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12906-1- Updated
- 2026-11-02
OSVUSN-5842-1 No score
editorconfig-core vulnerability
Mark Esler and David Fernandez Gonzalez discovered that EditorConfig Core C incorrectly handled memory when handling certain inputs. An attacker could possibly use this issue to cause applications using EditorConfig Core C to crash, resulting in a denial of service, or possibly execute arbitrary code.
- Record
USN-5842-1- Updated
- 2026-11-02
OSVUSN-7168-1 No score
editorconfig-core vulnerabilities
It was discovered that EditorConfig improperly managed memory when handling certain inputs, leading to overflows. An attacker could possibly use these issues to cause a denial of service, or execute arbitrary code.
- Record
USN-7168-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
editorconfig-coreDebian:12 |
before 0.12.6-0.1 | 0.12.6-0.1 |
editorconfig-coreDebian:13 |
before 0.12.6-0.1 | 0.12.6-0.1 |
editorconfig-coreDebian:14 |
before 0.12.6-0.1 | 0.12.6-0.1 |
editorconfig-coreDebian:11 |
before 0.12.1-1.1+deb11u1, plus listed versions 0.12.1-1.1 |
0.12.1-1.1+deb11u1 |
editorconfig-core-cMageia:8 |
before 0.12.6-1.mga8 | 0.12.6-1.mga8 |
editorconfig-coreUbuntu:Pro:16.04:LTS |
before 0.12.0-2ubuntu0.1~esm1, plus listed versions 0.12.0-2 |
0.12.0-2ubuntu0.1~esm1 |
editorconfig-coreUbuntu:Pro:18.04:LTS |
before 0.12.1-1.1ubuntu0.18.04.1~esm1, plus listed versions 0.12.1-10.12.1-1.1 |
0.12.1-1.1ubuntu0.18.04.1~esm1 |
editorconfig-coreUbuntu:20.04:LTS |
before 0.12.1-1.1+deb11u1build0.20.04.1, plus listed versions 0.12.1-1.1 |
0.12.1-1.1+deb11u1build0.20.04.1 |
editorconfig-coreUbuntu:Pro:20.04:LTS |
before 0.12.1-1.1ubuntu0.20.04.1~esm1, plus listed versions 0.12.1-1.1 |
0.12.1-1.1ubuntu0.20.04.1~esm1 |
editorconfig-coreUbuntu:Pro:22.04:LTS |
before 0.12.5-2ubuntu0.1~esm1, plus listed versions 0.12.1-1.10.12.1-20.12.5-2 |
0.12.5-2ubuntu0.1~esm1 |
Show 5 moreShow less
| Package | Affected | Fixed |
|---|---|---|
editorconfig-coreUbuntu:Pro:16.04:LTS |
before 0.12.0-2ubuntu0.1~esm2, plus listed versions 0.12.0-20.12.0-2ubuntu0.1~esm1 |
0.12.0-2ubuntu0.1~esm2 |
editorconfig-coreUbuntu:Pro:18.04:LTS |
before 0.12.1-1.1ubuntu0.18.04.1~esm2, plus listed versions 0.12.1-10.12.1-1.10.12.1-1.1ubuntu0.18.04.1~esm1 |
0.12.1-1.1ubuntu0.18.04.1~esm2 |
editorconfig-coreUbuntu:Pro:22.04:LTS |
before 0.12.5-2ubuntu0.1~esm2, plus listed versions 0.12.1-1.10.12.1-20.12.5-20.12.5-2ubuntu0.1~esm1 |
0.12.5-2ubuntu0.1~esm2 |
editorconfig-core-cSUSE:Package Hub 15 SP4 |
before 0.12.6-bp154.2.3.1 | 0.12.6-bp154.2.3.1 |
editorconfig-core-copenSUSE:Leap 15.4 |
before 0.12.6-bp154.2.3.1 | 0.12.6-bp154.2.3.1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-02 | created | CVE List, EUVD, GitHub Advisories, NVD, OSV |
References
github.com/editorconfig/editorconfig-core-c/commit/41281ea82fbf24b060a9f69b9c5369350fb0529e
litios.github.io/2023/01/14/CVE-2023-0341.html
ubuntu.com/security/notices/USN-5842-1
lists.fedoraproject.org/archives/list/[email protected]/message/ZCFE7DXWAAKDJPRKMXHCACKGKNV37IYZ
lists.debian.org/debian-lts-announce/2024/11/msg00036.html
nvd.nist.gov/vuln/detail/CVE-2023-0341
Show 15 moreShow less
github.com/advisories/GHSA-f352-cwm8-5w9w
github.com/editorconfig/editorconfig-core-c
github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0341.json
github.com/editorconfig/editorconfig-core-c/releases
security-tracker.debian.org/tracker/CVE-2023-0341
advisories.mageia.org/MGASA-2023-0048.html
bugs.mageia.org/show_bug.cgi?id=31516
ubuntu.com/security/CVE-2023-0341
github.com/editorconfig/editorconfig-core-c/pull/87
cve.org/CVERecord?id=CVE-2023-0341
ubuntu.com/security/notices/USN-7168-1
ubuntu.com/security/CVE-2024-53849
lists.opensuse.org/archives/list/[email protected]/thread/PFRY22273IZL5F7JS7P3P2H4OJHOP3ZA
bugzilla.suse.com/1211032
suse.com/security/cve/CVE-2023-0341