Description
Buffer Overflow vulnerability in Uncrustify Project Affected v.Uncrustify_d-0.82.0-132-bcc41cbdc and Fixed in commit 68e67b9a1435a1bb173b106fedb4a4f510972bdc allows a local attacker to cause a denial of service via the check_template.cpp, check_template function, tokenize_cleanup function, uncrustify executable components
Published: 2026-05-21
Score: 6.2 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Uncrustify contains a local buffer overflow in the check_template function, triggered during token cleanup in check_template.cpp. A crafted input supplied by a user who can invoke the uncrustify executable can overflow the buffer, corrupt contiguous memory and cause the process to abort. The resulting crash constitutes a denial of service that can interrupt code formatting workflows or continuous‑integration jobs that depend on Uncrustify.

Affected Systems

The vulnerability exists in Uncrustify releases that include the code identified by the hash bcc41cbdc (v.Uncrustify_d-0.82.0-132) and any earlier revisions that have not incorporated the patch commit 68e67b9a1435a1bb173b106fedb4a4f510972bdc. Any build that does not contain this commit is vulnerable.

Risk and Exploitability

The CVSS score of 6.2 reflects moderate severity, but the exploitation requires local access to run the uncrustify binary; remote exploitation is not possible. EPSS data is unavailable, so the probability of exploitation cannot be quantified. The vulnerability is not listed in the CISA KEV catalog, indicating no confirmed public exploitation. Nonetheless, a local attacker supplying crafted input can reliably terminate the tool, potentially disrupting pipeline execution or library formatting tasks.

Generated by OpenCVE AI on May 21, 2026 at 18:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to the latest Uncrustify release that includes commit 68e67b9a or later.
  • If an immediate upgrade is not feasible, restrict execution of the uncrustify binary to non‑privileged users or run it inside a dedicated container to isolate failures.
  • Continuously monitor system logs or resource spikes for abnormal run‑time failures of uncrustify and apply the update as soon as it becomes available.

Generated by OpenCVE AI on May 21, 2026 at 18:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 21 May 2026 18:45:00 +0000

Type Values Removed Values Added
Title Uncrustify Buffer Overflow Causes Local Denial of Service

Thu, 21 May 2026 17:45:00 +0000

Type Values Removed Values Added
Title Local Buffer Overflow in Uncrustify Leads to Denial of Service
Weaknesses CWE-122

Thu, 21 May 2026 15:45:00 +0000

Type Values Removed Values Added
Title Local Buffer Overflow in Uncrustify Leads to Denial of Service
Weaknesses CWE-122

Thu, 21 May 2026 15:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120
Metrics cvssV3_1

{'score': 6.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 21 May 2026 14:45:00 +0000

Type Values Removed Values Added
Description Buffer Overflow vulnerability in Uncrustify Project Affected v.Uncrustify_d-0.82.0-132-bcc41cbdc and Fixed in commit 68e67b9a1435a1bb173b106fedb4a4f510972bdc allows a local attacker to cause a denial of service via the check_template.cpp, check_template function, tokenize_cleanup function, uncrustify executable components
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-05-21T15:08:21.199Z

Reserved: 2026-04-06T00:00:00.000Z

Link: CVE-2026-36189

cve-icon Vulnrichment

Updated: 2026-05-21T15:06:17.866Z

cve-icon NVD

Status : Deferred

Published: 2026-05-21T15:16:24.500

Modified: 2026-05-21T16:16:22.890

Link: CVE-2026-36189

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-21T18:30:16Z

Weaknesses