Skip to content
Fencer Vulns
high 7.8

CVE-2023-0341 json

Stack Buffer Overflow in editorconfig-core-c

published 2023-01-31 3 y ago modified 2026-06-17 4 mo ago also EUVD-2023-12402

cvss
7.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.0%
EPSS 1.0% chance of exploitation in 30 days, percentile 61%
public exploits
0
none known

Summary

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.

Patch / fix

  • EditorConfig EditorConfig C Core v0.12.6
  • editorconfig-core Debian 14, Debian 13, Debian 12 0.12.6-0.1

debian advisories DEBIAN-CVE-2023-0341

  • editorconfig-core Ubuntu 20.04 LTS 0.12.1-1.1+deb11u1build0.20.04.1
  • editorconfig-core Ubuntu Pro 16.04 LTS 0.12.0-2ubuntu0.1~esm1
  • editorconfig-core Ubuntu Pro 18.04 LTS 0.12.1-1.1ubuntu0.18.04.1~esm1
  • editorconfig-core Ubuntu Pro 20.04 LTS 0.12.1-1.1ubuntu0.20.04.1~esm1
  • editorconfig-core Ubuntu Pro 22.04 LTS 0.12.5-2ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2023-0341

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • editorconfig-core-c Package Hub 15 SP4, openSUSE Leap 15.4 0.12.6-bp154.2.3.1

opensuse advisories openSUSE-SU-2023:0102-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-0341 updated cvss 7.8

editorconfig-core-c: arbitrary stack write

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
19 mo ago

Exploit prediction

0.96% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • litios.github.io https://litios.github.io/2023/01/14/CVE-2023-0341.html referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

  • EditorConfig EditorConfig C Core

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.