CVE-2026-35358: Uu cp -R Reads Device Nodes As Vulnerability

MODERATE
Advisory Identifier: GHSA-8vrf-r662-2w2v
CVSS 4.4
CWE-400 CWE-706
Published
Advisory Summary

CVE-2026-35358 is a MODERATE (CVSS 4.4) -r reads device nodes as vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Uu cp libraries in the crates.io ecosystem. The issue involves -r reads device nodes as streams, destroying device semantics. Remediation is available by upgrading affected packages to version 0.7.0.

CVE-2026-35358 at a Glance

CVE Identifier CVE-2026-35358
GHSA Identifier GHSA-8vrf-r662-2w2v
Severity MODERATE
CVSS v3.1 Base Score 4.4
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Uu cp
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 4.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-35358

To remediate this vulnerability, upgrade all affected Uu cp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

uu_cp fixed: 0.7.0
Upgrade uu_cp to 0.7.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for uu_cp

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-35358, inspect your project dependencies for Uu cp:

inspect dependencies for uu_cp

Analyze the terminal output to locate any version of Uu cp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Uu cp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The cp utility in uutils coreutils, when performing recursive copies (-R), incorrectly treats character and block device nodes as stream sources rather than preserving them. Because the implementation reads bytes into regular files at the destination instead of using mknod, device semantics are destroyed (e.g., /dev/null becomes a regular file). This behavior can lead to runtime denial of service through disk exhaustion or process hangs when reading from unbounded device nodes. --- _Zellic finding 3.53. Reported in the Zellic *uutils coreutils Program Security Assessment* (for Canonical, Jan 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`._

CVE-2026-35358 Affected Uu cp Versions

1 component(s)
Fixed Versions:
0.7.0
Product / Package Ecosystem Affected Versions Fixed Version
uu_cp
crates.io
< 0.7.0
0.7.0

References

Frequently Asked Questions

What is CVE-2026-35358?
CVE-2026-35358 is a security vulnerability in Uu cp involving -R reads device nodes as streams, destroying device semantics under CWE-400: Uncontrolled Resource Consumption.
Which Uu cp versions are affected?
Affected versions include releases prior to 0.7.0 across affected packages: uu_cp.
What version fixes CVE-2026-35358?
Upgrading to 0.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is uu_cp affected?
Yes, uu_cp is affected in releases prior to 0.7.0. Upgrade your dependency to 0.7.0 or later.
What is the CVSS score of CVE-2026-35358?
CVE-2026-35358 has a CVSS v3.1 base score of 4.4 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2026-35358?
CVE-2026-35358 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check crates.io dependencies for CVE-2026-35358?
Run the dependency tree command: 'inspect dependencies for uu_cp'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8vrf-r662-2w2v",
  "modified" : "2026-07-06T20:21:19Z",
  "published" : "2026-07-06T20:21:18Z",
  "aliases" : [ "CVE-2026-35358" ],
  "summary" : "cp: -R reads device nodes as streams, destroying device semantics",
  "details" : "The cp utility in uutils coreutils, when performing recursive copies (-R), incorrectly treats character and block device nodes as stream sources rather than preserving them. Because the implementation reads bytes into regular files at the destination instead of using mknod, device semantics are destroyed (e.g., /dev/null becomes a regular file). This behavior can lead to runtime denial of service through disk exhaustion or process hangs when reading from unbounded device nodes.\n\n---\n_Zellic finding 3.53. Reported in the Zellic *uutils coreutils Program Security Assessment* (for Canonical, Jan 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`._",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "uu_cp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/uutils/coreutils/security/advisories/GHSA-8vrf-r662-2w2v"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-35358"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/uutils/coreutils/issues/9746"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/uutils/coreutils/pull/11163"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/uutils/coreutils/commit/e6a3bb596f149628ba973eec3d099f3bb69f2464"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/uutils/coreutils"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/uutils/coreutils/releases/tag/0.7.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400", "CWE-706" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-06T20:21:18Z",
    "nvd_published_at" : null
  }
}