GHSA-rx8h-33gr-vhj9

Suggest an improvement
Source
https://github.com/advisories/GHSA-rx8h-33gr-vhj9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-rx8h-33gr-vhj9/GHSA-rx8h-33gr-vhj9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-rx8h-33gr-vhj9
Withdrawn
2026-07-06T20:17:50Z
Published
2026-04-22T18:31:45Z
Modified
2026-09-10T03:51:03Z
Severity
  • 4.4 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L CVSS Calculator
Summary
Duplicate Advisory: uutils coreutils' comm utility incorrectly consumes data from non-regular file inputs before performing comparison operations
Details

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-3wfc-mgpm-9rq6. This link is maintained to preserve external references.

Original Description

The comm utility in uutils coreutils incorrectly consumes data from non-regular file inputs before performing comparison operations. The are_files_identical function opens and reads from both input paths to compare content without first verifying if the paths refer to regular files. If an input path is a FIFO or a pipe, this pre-read operation drains the stream, leading to silent data loss before the actual comparison logic is executed. Additionally, the utility may hang indefinitely if it attempts to pre-read from infinite streams like /dev/zero.

Database specific
{
    "cwe_ids":  [
        "CWE-20"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-04-29T23:03:27Z",
    "nvd_published_at":  "2026-04-22T17:16:36Z",
    "severity":  "MODERATE"
}
References

Affected packages

crates.io / coreutils

Package

Name
coreutils
View open source insights on deps.dev
Purl
pkg:cargo/coreutils

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.6.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-rx8h-33gr-vhj9/GHSA-rx8h-33gr-vhj9.json"