CVE-2023-0341
Stack Buffer Overflow in editorconfig-core-c
Check your servers for CVE-2023-0341
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-0341 affects editorconfig-core-c, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.83%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 54.7% of all scored CVEs. Scores of 29 Nov 2026.
The assessment of CISA (SSVC, 27 Mar 2025):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-121 Stack-based Buffer Overflow
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
EditorConfig C Core
package
editorconfig-core-c |
affected before v0.12.6
|
Is my server affected?
Find the installed version of editorconfig-core-c and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i editorconfig-core-c
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2023-0341 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2023-0341RHEL, Rocky, Alma, Fedora
rpm -q editorconfig-core-c
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2023-0341Alpine
apk list --installed | grep -i editorconfig-core-cWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-0341
trivy image --scanners vuln IMAGE | grep CVE-2023-0341
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://ubuntu.com/security/notices/USN-5842-1 ubuntu.com · third party advisory
Patches and release notes
- https://github.com/editorconfig/editorconfig-core-c/commit/41281ea82fbf24b060a9f69b9c5369350fb0529e github.com · patch
Other references
- https://litios.github.io/2023/01/14/CVE-2023-0341.html litios.github.io · technical description
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZCFE7DXWAAKDJPRKMXHCACKGKNV37IYZ/ lists.fedoraproject.org
- https://lists.debian.org/debian-lts-announce/2024/11/msg00036.html lists.debian.org
Source: the record CVE-2023-0341 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse