ubuntu-cve-2026-40489
Vulnerability from osv_ubuntu
Published
2026-04-20 00:00
Modified
2026-06-02 17:39
Summary
Details
editorconfig-core-c is an EditorConfig core library for use by plugins supporting EditorConfig parsing. Versions up to and including 0.12.10 have a stack-based buffer overflow in ec_glob() that allows an attacker to crash any application using libeditorconfig by providing a specially crafted directory structure and .editorconfig file. This is an incomplete fix for CVE-2023-0341. The pcre_str buffer was protected in 0.12.6 but the adjacent l_pattern[8194] stack buffer received no equivalent protection. On Ubuntu 24.04, FORTIFY_SOURCE converts the overflow to SIGABRT (DoS). Version 0.12.11 contains an updated fix.
Severity
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "editorconfig",
"binary_version": "0.12.0-2ubuntu0.1~esm3"
},
{
"binary_name": "libeditorconfig0",
"binary_version": "0.12.0-2ubuntu0.1~esm3"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "editorconfig-core",
"purl": "pkg:deb/ubuntu/editorconfig-core@0.12.0-2ubuntu0.1~esm3?arch=source\u0026distro=esm-apps-legacy/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.12.0-2ubuntu0.1~esm3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.12.0-2",
"0.12.0-2ubuntu0.1~esm1",
"0.12.0-2ubuntu0.1~esm2"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "editorconfig",
"binary_version": "0.12.1-1.1ubuntu0.18.04.1~esm3"
},
{
"binary_name": "libeditorconfig0",
"binary_version": "0.12.1-1.1ubuntu0.18.04.1~esm3"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "editorconfig-core",
"purl": "pkg:deb/ubuntu/editorconfig-core@0.12.1-1.1ubuntu0.18.04.1~esm3?arch=source\u0026distro=esm-apps/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.12.1-1.1ubuntu0.18.04.1~esm3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.12.1-1",
"0.12.1-1.1",
"0.12.1-1.1ubuntu0.18.04.1~esm1",
"0.12.1-1.1ubuntu0.18.04.1~esm2"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "editorconfig",
"binary_version": "0.12.1-1.1+deb11u1ubuntu0.1~esm1"
},
{
"binary_name": "libeditorconfig0",
"binary_version": "0.12.1-1.1+deb11u1ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "editorconfig-core",
"purl": "pkg:deb/ubuntu/editorconfig-core@0.12.1-1.1+deb11u1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.12.1-1.1+deb11u1ubuntu0.1~esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.12.1-1.1",
"0.12.1-1.1ubuntu0.20.04.1~esm1",
"0.12.1-1.1+deb11u1build0.20.04.1"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "editorconfig",
"binary_version": "0.12.5-2ubuntu0.1~esm3"
},
{
"binary_name": "libeditorconfig0",
"binary_version": "0.12.5-2ubuntu0.1~esm3"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:22.04:LTS",
"name": "editorconfig-core",
"purl": "pkg:deb/ubuntu/editorconfig-core@0.12.5-2ubuntu0.1~esm3?arch=source\u0026distro=esm-apps/jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.12.5-2ubuntu0.1~esm3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.12.1-1.1",
"0.12.1-2",
"0.12.5-2",
"0.12.5-2ubuntu0.1~esm1",
"0.12.5-2ubuntu0.1~esm2"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "editorconfig",
"binary_version": "0.12.7-0.1ubuntu0.1"
},
{
"binary_name": "libeditorconfig0",
"binary_version": "0.12.7-0.1ubuntu0.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "editorconfig-core",
"purl": "pkg:deb/ubuntu/editorconfig-core@0.12.7-0.1ubuntu0.1?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.12.7-0.1ubuntu0.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.12.6-0.1",
"0.12.7-0.1"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "editorconfig",
"binary_version": "0.12.9+~0.17.1-1ubuntu2.1"
},
{
"binary_name": "libeditorconfig0",
"binary_version": "0.12.9+~0.17.1-1ubuntu2.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "editorconfig-core",
"purl": "pkg:deb/ubuntu/editorconfig-core@0.12.9+~0.17.1-1ubuntu2.1?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.12.9+~0.17.1-1ubuntu2.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.12.9+~0.15.1-1ubuntu1",
"0.12.9+~0.17.1-1",
"0.12.9+~0.17.1-1ubuntu2"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "editorconfig",
"binary_version": "0.12.10+~0.17.1-3ubuntu0.1"
},
{
"binary_name": "libeditorconfig0",
"binary_version": "0.12.10+~0.17.1-3ubuntu0.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "editorconfig-core",
"purl": "pkg:deb/ubuntu/editorconfig-core@0.12.10+~0.17.1-3ubuntu0.1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.12.10+~0.17.1-3ubuntu0.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.12.9+~0.17.1-1ubuntu2",
"0.12.10+~0.17.1-2",
"0.12.10+~0.17.1-3"
]
}
],
"aliases": [],
"details": "editorconfig-core-c is an EditorConfig core library for use by plugins supporting EditorConfig parsing. Versions up to and including 0.12.10 have a stack-based buffer overflow in ec_glob() that allows an attacker to crash any application using libeditorconfig by providing a specially crafted directory structure and .editorconfig file. This is an incomplete fix for CVE-2023-0341. The pcre_str buffer was protected in 0.12.6 but the adjacent l_pattern[8194] stack buffer received no equivalent protection. On Ubuntu 24.04, FORTIFY_SOURCE converts the overflow to SIGABRT (DoS). Version 0.12.11 contains an updated fix.",
"id": "UBUNTU-CVE-2026-40489",
"modified": "2026-06-02T17:39:55Z",
"published": "2026-04-20T00:00:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-40489"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-40489"
},
{
"type": "REPORT",
"url": "https://github.com/editorconfig/editorconfig-core-c/security/advisories/GHSA-97xg-vrcq-254h"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-8238-1"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-8238-2"
}
],
"related": [
"USN-8238-1",
"USN-8238-2"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-40489"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…