Vulnerability · Published Nov 26, 2024 · Assigned by GitHub_M
CVE-2024-53849Several stack buffer overflows and pointer overflows in editorconfig-core-c
Medium 4.8
In plain English
A medium-severity stack buffer overflow in editorconfig-core-c from editorconfig. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 10% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | editorconfig-core | no fix listed | DEBIAN-CVE-2024-53849 |
| Debian:13 | editorconfig-core | 0.12.7-0.1 | DEBIAN-CVE-2024-53849 |
| Debian:14 | editorconfig-core | 0.12.7-0.1 | DEBIAN-CVE-2024-53849 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| editorconfig | editorconfig-core-c | < 0.12.7 |
Weakness: CWE-121 · 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
References
- https://github.com/editorconfig/editorconfig-core-c/security/advisories/GHSA-475j-wc37-6274 x_refsource_CONFIRM
- https://github.com/editorconfig/editorconfig-core-c/pull/103 x_refsource_MISC
- https://github.com/editorconfig/editorconfig-core-c/commit/4d5518a0a4e4910c37281ab13a048d0d86999782 x_refsource_MISC
- https://github.com/editorconfig/editorconfig-core-c/commit/a8dd5312e08abeab95ff5656d32ed3cb85fba70b x_refsource_MISC
- http://editorconfig.org x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2024/11/msg00036.html