Buffer overflow in Editorconfig Editorconfig-Core-C
CVE-2024-53849
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.
Vulnerability class: Buffer Overflow
Published · last modified .
EPSS exploit prediction
EPSS: 0.002 (9.4th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 9th percentile — 9.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.002 · change: 0.000
Affected products
- Editorconfig Editorconfig-Core-C — versions < 0.12.7
Weakness classification (CWE)
References
- github.com/editorconfig/editorconfig-core-c/security/advisories/GHSA-475j-wc37-…
- github.com/editorconfig/editorconfig-core-c/pull/103
- github.com/editorconfig/editorconfig-core-c/commit/4d5518a0a4e4910c37281ab13a04…
- github.com/editorconfig/editorconfig-core-c/commit/a8dd5312e08abeab95ff5656d32e…
- editorconfig.org
- af854a3a-2127-422b-91ae-364da2661108