Description
GNU coreutils unexpand is vulnerable to a heap-based buffer overflow due to an integer overflow during buffer allocation when processing large tab stop (-t) values. The multiplication used to calculate the allocation size can wrap around, resulting in an undersized buffer.
When processing crafted input, subsequent writes exceed the allocated memory, leading to an out‑of‑bounds heap write.

When running GNU coreutils unexpand with attacker-provided large tab stop (-t) arguments, this behavior leads to a crash and potentially achieve a heap write primitive depending on memory layout.










This issue has been fixed in the commit b60a159fdc5bfcf9988d3a4cb6f53abe8ad5d35d
Published: 2026-07-24
Score: 1.8 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

GNU coreutils unexpand can overflow a heap buffer due to an integer overflow during allocation of the tab‑stop array. When attacker‑controlled large -t values are processed, the multiplication used to compute the buffer size can wrap around, leading to an undersized buffer. Subsequent writes exceed the allocated memory, causing an out‑of‑bounds write that may corrupt heap data, crash the program, or provide a write primitive. Based on the description, it is inferred that an attacker could supply crafted -t arguments to exploit this flaw, potentially risking denial of service or further compromise if execution privileges can be gained.

Affected Systems

All releases of GNU coreutils that include the unexpand utility and were built before the commit identified by b60a159fdc5bfcf9988d3a4cb6f53abe8ad5d35d are affected. No specific version range is listed, so any deployment of coreutils that has not been updated to a revision after that commit inherits this flaw.

Risk and Exploitability

The CVSS score of 1.8 indicates a low overall impact, and the EPSS score of less than 1% suggests that exploitation is unlikely and possibly limited to manually crafted local or remote input. The vulnerability is not present in the CISA KEV list, further reducing the urgency for widespread mitigation. However, the presence of a heap write primitive could be leveraged by an attacker with sufficient privileges or in a compromised foothold. The likely attack vector is an attacker providing crafted large tab stop arguments to the unexpand utility, which can trigger the overflow. Overall, the risk is low but not negligible for environments that use unexpand with user‑supplied or untrusted tab‑stop values.

Generated by OpenCVE AI on August 4, 2026 at 15:09 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade GNU coreutils to a release that includes the commit b60a159fdc5bfcf9988d3a4cb6f53abe8ad5d35d or later
  • If an upgrade is not immediately possible, restrict the use of unexpand or configure it to disallow large -t values through input validation or shell aliases
  • Apply a local patch or temporary wrapper that enforces a maximum tab‑stop value to prevent integer overflows before the allocation occurs

Generated by OpenCVE AI on August 4, 2026 at 15:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 25 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


Fri, 24 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 24 Jul 2026 09:45:00 +0000

Type Values Removed Values Added
First Time appeared Gnu
Gnu coreutils
Vendors & Products Gnu
Gnu coreutils

Fri, 24 Jul 2026 08:15:00 +0000

Type Values Removed Values Added
Description GNU coreutils unexpand is vulnerable to a heap-based buffer overflow due to an integer overflow during buffer allocation when processing large tab stop (-t) values. The multiplication used to calculate the allocation size can wrap around, resulting in an undersized buffer. When processing crafted input, subsequent writes exceed the allocated memory, leading to an out‑of‑bounds heap write. When running GNU coreutils unexpand with attacker-provided large tab stop (-t) arguments, this behavior leads to a crash and potentially achieve a heap write primitive depending on memory layout. This issue has been fixed in the commit b60a159fdc5bfcf9988d3a4cb6f53abe8ad5d35d
Title Heap-based Buffer Overflow in GNU coreutils
Weaknesses CWE-122
References
Metrics cvssV4_0

{'score': 1.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: CERT-PL

Published:

Updated: 2026-07-24T12:32:14.074Z

Reserved: 2026-06-21T11:40:32.790Z

Link: CVE-2026-56392

cve-icon Vulnrichment

Updated: 2026-07-24T12:32:08.623Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-24T09:16:25.147

Modified: 2026-07-30T16:28:33.633

Link: CVE-2026-56392

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-24T07:44:54Z

Links: CVE-2026-56392 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T15:15:04Z

Weaknesses