GHSA-q6m9-xj2w-xmrc

Suggest an improvement
Source
https://github.com/advisories/GHSA-q6m9-xj2w-xmrc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-q6m9-xj2w-xmrc/GHSA-q6m9-xj2w-xmrc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q6m9-xj2w-xmrc
Aliases
  • CVE-2026-35360
Related
Published
2026-04-22T18:31:45Z
Modified
2026-06-01T18:14:14.883969953Z
Severity
  • 6.3 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H CVSS Calculator
Summary
uutils coreutils has a Time-of-check Time-of-use (TOCTOU) Race Condition
Details

The touch utility in uutils coreutils is vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition during file creation. When the utility identifies a missing path, it later attempts creation using File::create(), which internally uses O_TRUNC. An attacker can exploit this window to create a file or swap a symlink at the target path, causing touch to truncate an existing file and leading to permanent data loss.

Database specific
{
    "cwe_ids": [
        "CWE-367"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-30T17:30:18Z",
    "nvd_published_at": "2026-04-22T17:16:38Z",
    "severity": "MODERATE"
}
References

Affected packages

crates.io / coreutils

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.8.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-q6m9-xj2w-xmrc/GHSA-q6m9-xj2w-xmrc.json"