Skip to content
Heist/ feed
Unrated

DEBIAN-CVE-2026-40489

Type: advisorySource: OSV1 source record

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.

Announced Group revision 1
Original source ↗

DEBIAN-CVE-2026-40489

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-40489

editorconfig-core

Source reference: /affected/0/package/name

Affected versions
0.12.10+~0.17.1-1

Source reference: /affected/0/versions

0.12.10+~0.17.1-2

Source reference: /affected/0/versions

0.12.10+~0.17.1-3

Source reference: /affected/0/versions

0.12.6-0.1

Source reference: /affected/0/versions

0.12.7-0.1

Source reference: /affected/0/versions

0.12.9+~0.15.1-1

Source reference: /affected/0/versions

0.12.9+~0.17.1-1

Source reference: /affected/0/versions

0.12.9+~0.17.1-2

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

editorconfig-core

Source reference: /affected/1/package/name

Affected versions
0.12.10+~0.17.1-1

Source reference: /affected/1/versions

0.12.10+~0.17.1-2

Source reference: /affected/1/versions

0.12.10+~0.17.1-3

Source reference: /affected/1/versions

0.12.9+~0.17.1-1

Source reference: /affected/1/versions

0.12.9+~0.17.1-2

Source reference: /affected/1/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

editorconfig-core

Source reference: /affected/2/package/name

Affected versions
0.12.10+~0.17.1-1

Source reference: /affected/2/versions

0.12.10+~0.17.1-2

Source reference: /affected/2/versions

0.12.10+~0.17.1-3

Source reference: /affected/2/versions

0.12.9+~0.17.1-1

Source reference: /affected/2/versions

0.12.9+~0.17.1-2

Source reference: /affected/2/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "editorconfig-core",
      "purl": "pkg:deb/debian/editorconfig-core?arch=source&distro=bookworm",
      "ecosystem": "Debian:12"
    },
    "versions": [
      "0.12.10+~0.17.1-1",
      "0.12.10+~0.17.1-2",
      "0.12.10+~0.17.1-3",
      "0.12.6-0.1",
      "0.12.7-0.1",
      "0.12.9+~0.15.1-1",
      "0.12.9+~0.17.1-1",
      "0.12.9+~0.17.1-2"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40489.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "editorconfig-core",
      "purl": "pkg:deb/debian/editorconfig-core?arch=source&distro=trixie",
      "ecosystem": "Debian:13"
    },
    "versions": [
      "0.12.10+~0.17.1-1",
      "0.12.10+~0.17.1-2",
      "0.12.10+~0.17.1-3",
      "0.12.9+~0.17.1-1",
      "0.12.9+~0.17.1-2"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40489.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "editorconfig-core",
      "purl": "pkg:deb/debian/editorconfig-core?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "0.12.10+~0.17.1-1",
      "0.12.10+~0.17.1-2",
      "0.12.10+~0.17.1-3",
      "0.12.9+~0.17.1-1",
      "0.12.9+~0.17.1-2"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40489.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#56920 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement