Vulnerability · Published Jan 31, 2023 · Assigned by canonical
CVE-2023-0341Stack Buffer Overflow in editorconfig-core-c
High 7.8
In plain English
A high-severity stack buffer overflow in EditorConfig C Core from EditorConfig. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 62% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | editorconfig-core | 0.12.6-0.1 | DEBIAN-CVE-2023-0341 |
| Debian:13 | editorconfig-core | 0.12.6-0.1 | DEBIAN-CVE-2023-0341 |
| Debian:14 | editorconfig-core | 0.12.6-0.1 | DEBIAN-CVE-2023-0341 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| EditorConfig | EditorConfig C Core | 0 – before v0.12.6 |
Weakness: CWE-121 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://github.com/editorconfig/editorconfig-core-c/commit/41281ea82fbf24b060a9f69b9c5369350fb0529e patch
- https://litios.github.io/2023/01/14/CVE-2023-0341.html technical-description
- https://ubuntu.com/security/notices/USN-5842-1 third-party-advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZCFE7DXWAAKDJPRKMXHCACKGKNV37IYZ/
- https://lists.debian.org/debian-lts-announce/2024/11/msg00036.html