Description
GNU coreutils uniq is vulnerable to an out‑of‑bounds read due to incorrect handling of multibyte input when the -w (--check-chars) option is used. The find_field() function miscalculates the byte length of characters by repeatedly processing a fixed pointer instead of advancing through the input, resulting in an inflated length value.
This incorrect length is later used in a memcmp operation, causing reads beyond the allocated buffer when processing crafted multibyte input.

When running GNU coreutils uniq with attacker-provided arguments, this behavior leads to a crash and potential adjacent heap memory exposure.


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

Impact

An out-of-bounds read (CWE-125) has been identified in the GNU coreutils program uniq, triggered when the -w (check-chars) option processes multibyte input. The bug arises from a miscalculation of the byte length of characters within the find_field() function, which uses a fixed pointer instead of advancing correctly through the data. As a result, an inflated length value is passed to a memcmp operation, causing reads beyond the intended buffer and potentially exposing adjacent heap memory after a crash.

Affected Systems

The vulnerability affects the GNU coreutils suite. All installed copies of coreutils that include the vulnerable uniq implementation and have not yet incorporated the upstream patch are impacted; no specific version range is disclosed.

Risk and Exploitability

The CVSS score is 4.6, indicating a low to moderate severity level, and the EPSS score is reported as < 1%, suggesting a very low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog, and the only known exploitation path is through locally crafted input supplied to uniq. The exposure may lead to disclosure of sensitive information residing in adjacent heap memory after a crash, but it does not provide direct control over the system or allow code execution.

Generated by OpenCVE AI on August 3, 2026 at 20:33 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update GNU coreutils to a version that contains the commit d64e35a8a4c0e4608321433e0d84d917e4e36371.
  • Avoid using the -w (--check-chars) option with uniq when processing untrusted input until a patched version is available.
  • If a patched version is not available from the package manager, manually apply the upstream patch to the source code and rebuild coreutils, or use an alternative utility that does not expose the vulnerability.

Generated by OpenCVE AI on August 3, 2026 at 20:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
First Time appeared Redhat
Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
Vendors & Products Redhat
Redhat hummingbird
References
Metrics threat_severity

None

cvssV3_1

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

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 uniq is vulnerable to an out‑of‑bounds read due to incorrect handling of multibyte input when the -w (--check-chars) option is used. The find_field() function miscalculates the byte length of characters by repeatedly processing a fixed pointer instead of advancing through the input, resulting in an inflated length value. This incorrect length is later used in a memcmp operation, causing reads beyond the allocated buffer when processing crafted multibyte input. When running GNU coreutils uniq with attacker-provided arguments, this behavior leads to a crash and potential adjacent heap memory exposure. This issue has been fixed in the commit d64e35a8a4c0e4608321433e0d84d917e4e36371.
Title Out‑of‑bounds Read in GNU coreutils
Weaknesses CWE-125
References
Metrics cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: CERT-PL

Published:

Updated: 2026-07-24T12:31:34.245Z

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

Link: CVE-2026-56391

cve-icon Vulnrichment

Updated: 2026-07-24T12:31:22.474Z

cve-icon NVD

Status : Awaiting Analysis

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

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

Link: CVE-2026-56391

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-56391 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T20:45:03Z

Weaknesses