CVE-2023-0341 Stack Buffer Overflow in editorconfig-core-c
A stack buffer overflow in editorconfig-core-c allows attackers to write to the stack, potentially enabling remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-0341?
CVE-2023-0341 is a high-severity memory corruption vulnerability in EditorConfig C Core, published on 31 Jan 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
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.
Which versions are affected by CVE-2023-0341?
It affects 1 product.
Linux distribution packages (2)
editorconfig-core-c SUSE:Package Hub 15 SP4 | All versions | 0.12.6-bp154.2.3.1 |
editorconfig-core-c openSUSE:Leap 15.4 | All versions | 0.12.6-bp154.2.3.1 |
Products include Editorconfig Editorconfig.
How do I fix CVE-2023-0341?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-0341 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-0341 exists.
Sources
Also known as DEBIAN-CVE-2023-0341, GHSA-f352-cwm8-5w9w, MGASA-2023-0048, UBUNTU-CVE-2023-0341, USN-5842-1, openSUSE-SU-2023:0102-1 and 1 more.