CVE-2026-35381

uutils coreutils cut Local Logic Error and Data Integrity Issue in Output Filtering

Published Apr 22, 2026 CVSS 3.1 · 3.3 Low EPSS < 1% KEV · Not listed
Description
A logic error in the cut utility of uutils coreutils causes the utility to ignore the -s (only-delimited) flag when using the -z (null-terminated) and -d '' (empty delimiter) options together. The implementation incorrectly routes this specific combination through a specialized newline-delimiter code path that fails to check the record suppression status. Consequently, uutils cut emits the entire record plus a NUL byte instead of suppressing it. This divergence from GNU coreutils behavior creates a data integrity risk for automated pipelines that rely on cut -s to filter out undelimited data.

Analysis

AI-generated

Technical impact

A logic error in the uutils coreutils cut command causes the -s (only-delimited) flag to be ignored when the command is invoked with both the -z (null-terminated) option and an empty delimiter with -d ''. The code wrongly routes this specific flag combination through a newline‑delimiter code path that does not honour the record‑suppression setting. As a result, cut emits the full record followed by a NUL byte instead of discarding undelimited data, diverging from the behavior of the GNU coreutils implementation. This behavior introduces a data‑integrity risk for automated pipelines that depend on cut -s to filter out malformed or undelimited input, potentially causing downstream errors or security misconfigurations. The weakness is a logic flaw (CWE‑684).

Affected Systems

The uutils coreutils suite, specifically the cut utility, is affected. All releases prior to the 0.8.0 tag, which contains the fix, are vulnerable. The issue is triggered only when the command is invoked with the -z option, an empty delimiter via -d '', and the -s flag simultaneously. Users should audit any scripts or pipelines that employ this flag combination to determine whether they are running a vulnerable version.

Risk and Exploitability

The CVSS score of 3.3 indicates a low severity vulnerability. The EPSS score is less than 1%, suggesting a very low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the attack vector is local execution, requiring the attacker to run the cut command within a target system that trusts its output. Exploitation would involve supplying crafted input to a pipeline that incorporates cut's output. While remote code execution is not possible, the data‑integrity breach could lead to downstream operational failures or subtle security misconfigurations in automated ingestion processes.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade uutils coreutils to version 0.8.0 or later where the bug is fixed.
  • Avoid using the -z option together with -d '' and -s in cut commands; refrain from employing the flagged combination in any scripts.
  • If upgrading is not immediately possible, modify pipelines to validate cut output or filter out unexpected NUL bytes before further processing.

Generated by OpenCVE AI on April 28, 2026 at 07:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-532v-xp3f-837c uutils coreutils has an Incorrect Provision of Specified Functionality Issue in its cut Utility
Github GHSA Github GHSA GHSA-pmfc-4wjj-gmhx cut: -s ignored in -z -d '' newline-delimiter mode
History
Type Values Removed Values Added
First Time appeared Uutils
Uutils coreutils
CPEs cpe:2.3:a:uutils:coreutils:*:*:*:*:*:rust:*:*
Vendors & Products Uutils
Uutils coreutils
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description A logic error in the cut utility of uutils coreutils causes the utility to ignore the -s (only-delimited) flag when using the -z (null-terminated) and -d '' (empty delimiter) options together. The implementation incorrectly routes this specific combination through a specialized newline-delimiter code path that fails to check the record suppression status. Consequently, uutils cut emits the entire record plus a NUL byte instead of suppressing it. This divergence from GNU coreutils behavior creates a data integrity risk for automated pipelines that rely on cut -s to filter out undelimited data.
Title uutils coreutils cut Local Logic Error and Data Integrity Issue in Output Filtering
Weaknesses CWE-684
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-684

    Incorrect Provision of Specified Functionality

Sources

Status
PUBLISHED
Assigner
canonical
Published
Updated
Apr 22, 2026, 4:53 PM
Reserved
Apr 2, 2026, 12:58 PM
Status
Analyzed
Published
Apr 22, 2026, 5:16 PM
Modified
Oct 26, 2026, 10:10 PM