# CVE-2023-0341: Stack Buffer Overflow in editorconfig-core-c

- Severity: High 7.8 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.08%, higher than 66% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-01-31T23:22:53.634Z
- Modified: 2026-06-17T05:25:19.530Z
- Weaknesses: CWE-121, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- editorconfig-core-c: before v0.12.6
- editorconfig editorconfig: before 0.12.6

## Every score

- canonical: 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`
- NVD: 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`

## References

- <https://litios.github.io/2023/01/14/CVE-2023-0341.html> (exploit, patch, technical-description, third-party-advisory)
- <https://github.com/editorconfig/editorconfig-core-c/commit/41281ea82fbf24b060a9f69b9c5369350fb0529e> (patch, third-party-advisory)
- <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>

## Sources

- CVE List: [CVE-2023-0341](https://www.cve.org/CVERecord?id=CVE-2023-0341), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2023-0341](https://nvd.nist.gov/vuln/detail/CVE-2023-0341), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-0341 · Whole record: https://cve.day/CVE-2023-0341.json · Rebuilt by cve.day 2026-11-25T22:58:21.781Z
