deardaniel/secdata-raw huggingface dataset:
GitHub Security Advisory: GHSA-6g8r-74qp-6859
Package: coreutils (RUST)
Severity: MODERATE (CVSS 4.5)
CWE: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils has a Time-of-check Time-of-use (TOCTOU) Race Condition

Details:
A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the chcon utility of uutils coreutils during recursive operations. The implementation resolves recursive targets using a fresh path lookup (via fts_accpath) rather than binding the traversal and label application to the specific directory state encountered during traversal. Because these operations are not anchored to file descriptors, a local attacker with write access to a directory tree can exploit timing-sensitive rename or symbolic link races to redirect a privileged recursive relabeling operation to unintended files or directories. This vulnerability breaks the hardening expectations for SELinux administration workflows and can lead to the unauthorized modification of security labels on sensitive system objects.
GitHub Security Advisory: GHSA-vx9m-xjwf-8cqm
Package: coreutils (RUST)
Severity: LOW (CVSS 3.3)
CWE: CWE-176: Improper Handling of Unicode Encoding
Vulnerable versions: < 0.8.0
Patched in: 0.8.0

Summary: uutils coreutils has an Improper Handling of Unicode Encoding Issue

Details:
A logic error in the split utility of uutils coreutils causes the corruption of output filenames when provided with non-UTF-8 prefix or suffix inputs. The implementation utilizes to_string_lossy() when constructing chunk filenames, which automatically rewrites invalid byte sequences into the UTF-8 replacement character (U+FFFD). This behavior diverges from GNU split, which preserves raw pathname bytes intact. In environments utilizing non-UTF-8 encodings, this vulnerability leads to the creation of files with incorrect names, potentially causing filename collisions, broken automation, or the misdirection of output data.
GitHub Security Advisory: GHSA-4wrp-79m8-9m9p
Package: coreutils (RUST)
Severity: MODERATE (CVSS 6.3)
CWE: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils has a Time-of-check Time-of-use (TOCTOU) Race Condition

Details:
A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the split utility of uutils coreutils. The program attempts to prevent data loss by checking for identity between input and output files using their file paths before initiating the split operation. However, the utility subsequently opens the output file with truncation after this path-based validation is complete. A local attacker with write access to the directory can exploit this race window by manipulating mutable path components (e.g., swapping a path with a symbolic link). This can cause split to truncate and write to an unintended target file, potentially including the input file itself or other sensitive files accessible to the process, leading to permanent data loss.
GitHub Security Advisory: GHSA-wq63-vh5h-pr5p
Package: coreutils (RUST)
Severity: MODERATE (CVSS 5.0)
CWE: CWE-61: UNIX Symbolic Link (Symlink) Following
Vulnerable versions: < 0.8.0
Patched in: 0.8.0

Summary: uutils coreutils has a UNIX Symbolic Link (Symlink) Following issue

Details:
A logic error in the ln utility of uutils coreutils allows the utility to dereference a symbolic link target even when the --no-dereference (or -n) flag is explicitly provided. The implementation previously only honored the "no-dereference" intent if the --force (overwrite) mode was also enabled. This flaw causes ln to follow a symbolic link that points to a directory and create new links inside that target directory instead of treating the symbolic link itself as the destination. In environments where a privileged user or system script uses ln -n to update a symlink, a local attacker could manipulate existing symbolic links to redirect file creation into sensitive directories, potentially leading to unauthorized file creation or system misconfiguration.
GitHub Security Advisory: GHSA-53gr-wmf4-8hh3
Package: coreutils (RUST)
Severity: LOW (CVSS 3.3)
CWE: CWE-451: User Interface (UI) Misrepresentation of Critical Information
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils's User Interface (UI) Misrepresents Critical Information

Details:
The id utility in uutils coreutils exhibits incorrect behavior in its "pretty print" output when the real UID and effective UID differ. The implementation incorrectly uses the effective GID instead of the effective UID when performing a name lookup for the effective user. This results in misleading diagnostic output that can cause automated scripts or system administrators to make incorrect decisions regarding file permissions or access control.
GitHub Security Advisory: GHSA-q94g-3gcf-66x7
Package: coreutils (RUST)
Severity: MODERATE (CVSS 4.4)
CWE: CWE-863: Incorrect Authorization
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils has an Incorrect Authorization issue

Details:
The id utility in uutils coreutils miscalculates the groups= section of its output. The implementation uses a user's real GID instead of their effective GID to compute the group list, leading to potentially divergent output compared to GNU coreutils. Because many scripts and automated processes rely on the output of id to make security-critical access-control or permission decisions, this discrepancy can lead to unauthorized access or security misconfigurations.
GitHub Security Advisory: GHSA-5hgf-628x-mcqf
Package: coreutils (RUST)
Severity: LOW (CVSS 3.3)
CWE: CWE-732: Incorrect Permission Assignment for Critical Resource
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils has an Incorrect Permission Assignment for Critical Resource

Details:
The nohup utility in uutils coreutils creates its default output file, nohup.out, without specifying explicit restricted permissions. This causes the file to inherit umask-based permissions, typically resulting in a world-readable file (0644). In multi-user environments, this allows any user on the system to read the captured stdout/stderr output of a command, potentially exposing sensitive information. This behavior diverges from GNU coreutils, which creates nohup.out with owner-only (0600) permissions.
GitHub Security Advisory: GHSA-mh5c-xrmh-m794
Package: coreutils (RUST)
Severity: HIGH (CVSS 7.8)
CWE: CWE-426: Untrusted Search Path
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils has an Untrusted Search Path

Details:
A vulnerability exists in the chroot utility of uutils coreutils when using the --userspec option. The utility resolves the user specification via getpwnam() after entering the chroot but before dropping root privileges. On glibc-based systems, this can trigger the Name Service Switch (NSS) to load shared libraries (e.g., libnss_*.so.2) from the new root directory. If the NEWROOT is writable by an attacker, they can inject a malicious NSS module to execute arbitrary code as root, facilitating a full container escape or privilege escalation.
GitHub Security Advisory: GHSA-gpcg-h6x2-c26p
Package: coreutils (RUST)
Severity: MODERATE (CVSS 5.5)
CWE: CWE-20: Improper Input Validation
Vulnerable versions: < 0.6.0
Patched in: 0.6.0

Summary: uutils coreutils has an Improper Input Validation issue

Details:
An argument parsing error in the kill utility of uutils coreutils incorrectly interprets kill -1 as a request to send the default signal (SIGTERM) to PID -1. Sending a signal to PID -1 causes the kernel to terminate all processes visible to the caller, potentially leading to a system crash or massive process termination. This differs from GNU coreutils, which correctly recognizes -1 as a signal number in this context and would instead report a missing PID argument.
GitHub Security Advisory: GHSA-7259-cwhx-3xx3
Package: coreutils (RUST)
Severity: MODERATE (CVSS 4.4)
CWE: CWE-754: Improper Check for Unusual or Exceptional Conditions
Vulnerable versions: < 0.6.0
Patched in: 0.6.0

Summary: uutils coreutils has an Improper Check for Unusual or Exceptional Conditions

Details:
The printenv utility in uutils coreutils fails to display environment variables containing invalid UTF-8 byte sequences. While POSIX permits arbitrary bytes in environment strings, the uutils implementation silently skips these entries rather than printing the raw bytes. This vulnerability allows malicious environment variables (e.g., adversarial LD_PRELOAD values) to evade inspection by administrators or security auditing tools, potentially allowing library injection or other environment-based attacks to go undetected.
GitHub Security Advisory: GHSA-66fx-fqv6-5wwx
Package: coreutils (RUST)
Severity: MODERATE (CVSS 6.6)
CWE: CWE-59: Improper Link Resolution Before File Access ('Link Following')
Vulnerable versions: < 0.7.0
Patched in: 0.7.0

Summary: uutils coreutils has a Link Following issue

Details:
The mv utility in uutils coreutils improperly handles directory trees containing symbolic links during moves across filesystem boundaries. Instead of preserving symlinks, the implementation expands them, copying the linked targets as real files or directories at the destination. This can lead to resource exhaustion (disk space or time) if symlinks point to large external directories, unexpected duplication of sensitive data into unintended locations, or infinite recursion and repeated copying in the presence of symlink loops.
GitHub Security Advisory: GHSA-m976-87wm-48fm
Package: coreutils (RUST)
Severity: MODERATE (CVSS 6.3)
CWE: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils has a Time-of-check Time-of-use (TOCTOU) Race Condition

Details:
A Time-of-Check to Time-of-Use (TOCTOU) race condition exists in the mv utility of uutils coreutils during cross-device operations. The utility removes the destination path before recreating it through a copy operation. A local attacker with write access to the destination directory can exploit this window to replace the destination with a symbolic link. The subsequent privileged move operation will follow the symlink, allowing the attacker to redirect the write and overwrite an arbitrary target file with contents from the source.
GitHub Security Advisory: GHSA-vchc-9ggh-3236
Package: coreutils (RUST)
Severity: MODERATE (CVSS 5.6)
CWE: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils has a Path Traversal issue

Details:
A vulnerability in the rm utility of uutils coreutils allows the bypass of safeguard mechanisms intended to protect the current directory. While the utility correctly refuses to delete . or .., it fails to recognize equivalent paths with trailing slashes, such as ./ or .///. An accidental or malicious execution of rm -rf ./ results in the silent recursive deletion of all contents within the current directory. The command further obscures the data loss by reporting a misleading 'Invalid input' error, which may cause users to miss the critical window for data recovery.
GitHub Security Advisory: GHSA-q6m9-xj2w-xmrc
Package: coreutils (RUST)
Severity: MODERATE (CVSS 6.3)
CWE: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Vulnerable versions: <= 0.8.0
Patched in: unpatched

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.
GitHub Security Advisory: GHSA-79rc-qpw3-jv92
Package: coreutils (RUST)
Severity: LOW (CVSS 3.4)
CWE: CWE-281: Improper Preservation of Permissions
Vulnerable versions: < 0.6.0
Patched in: 0.6.0

Summary: uutils coreutils has an Improper Preservation of Permissions issue

Details:
The mknod utility in uutils coreutils fails to handle security labels atomically by creating device nodes before setting the SELinux context. If labeling fails, the utility attempts cleanup using std::fs::remove_dir, which cannot remove device nodes or FIFOs. This leaves mislabeled nodes behind with incorrect default contexts, potentially allowing unauthorized access to device nodes that should have been restricted by mandatory access controls.
GitHub Security Advisory: GHSA-ggc5-46rg-mr4v
Package: coreutils (RUST)
Severity: LOW (CVSS 3.6)
CWE: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Vulnerable versions: < 0.6.0
Patched in: 0.6.0

Summary: uutils coreutils has a Time-of-check Time-of-use (TOCTOU) Race Condition

Details:
The safe_traversal module in uutils coreutils, which provides protection against Time-of-Check to Time-of-Use (TOCTOU) symlink races using file-descriptor-relative syscalls, is incorrectly limited to Linux targets. On other Unix-like systems such as macOS and FreeBSD, the utility fails to utilize these protections, leaving directory traversal operations vulnerable to symlink race conditions.
GitHub Security Advisory: GHSA-hpfw-mqm3-33jh
Package: coreutils (RUST)
Severity: MODERATE (CVSS 4.7)
CWE: CWE-59: Improper Link Resolution Before File Access ('Link Following')
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils has a Link Following issue

Details:
A Time-of-Check to Time-of-Use (TOCTOU) vulnerability in the cp utility of uutils coreutils allows an attacker to bypass no-dereference intent. The utility checks if a source path is a symbolic link using path-based metadata but subsequently opens it without the O_NOFOLLOW flag. An attacker with concurrent write access can swap a regular file for a symbolic link during this window, causing a privileged cp process to copy the contents of arbitrary sensitive files into a destination controlled by the attacker.
GitHub Security Advisory: GHSA-67hp-f6hq-2h6g
Package: coreutils (RUST)
Severity: MODERATE (CVSS 4.4)
CWE: CWE-706: Use of Incorrectly-Resolved Name or Reference
Vulnerable versions: < 0.7.0
Patched in: 0.7.0

Summary: uutils coreutils Uses Incorrectly-Resolved Name or Reference

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.
GitHub Security Advisory: GHSA-m26v-hjq3-x245
Package: coreutils (RUST)
Severity: MODERATE (CVSS 6.3)
CWE: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Vulnerable versions: < 0.7.0
Patched in: 0.7.0

Summary: uutils coreutils has a Time-of-Check to Time-of-Use (TOCTOU) race condition

Details:
A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the install utility of uutils coreutils when using the -D flag. The command creates parent directories and subsequently performs a second path resolution to create the target file, neither of which is anchored to a directory file descriptor. An attacker with concurrent write access can replace a path component with a symbolic link between these operations, redirecting the privileged write to an arbitrary file system location.
GitHub Security Advisory: GHSA-2m8x-mvfx-gwgj
Package: coreutils (RUST)
Severity: MODERATE (CVSS 4.7)
CWE: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils has a Time-of-check Time-of-use (TOCTOU) Race Condition

Details:
The cp utility in uutils coreutils is vulnerable to an information disclosure race condition. Destination files are initially created with umask-derived permissions (e.g., 0644) before being restricted to their final mode (e.g., 0600) later in the process. A local attacker can race to open the file during this window; once obtained, the file descriptor remains valid and readable even after the permissions are tightened, exposing sensitive or private file contents.
GitHub Security Advisory: GHSA-x4mc-mqm7-gg39
Package: coreutils (RUST)
Severity: MODERATE (CVSS 4.7)
CWE: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils has a Time-of-Check to Time-of-Use (TOCTOU) race condition

Details:
A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the mv utility of uutils coreutils during cross-device moves. The extended attribute (xattr) preservation logic uses multiple path-based system calls that perform fresh path-to-inode lookups for each operation. A local attacker with write access to the directory can exploit this race to swap files between calls, causing the destination file to receive an inconsistent mix of security xattrs, such as SELinux labels or file capabilities.
GitHub Security Advisory: GHSA-v24v-f45g-w7jf
Package: coreutils (RUST)
Severity: MODERATE (CVSS 6.3)
CWE: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Vulnerable versions: < 0.6.0
Patched in: 0.6.0

Summary: uutils coreutils has a Time-of-Check to Time-of-Use (TOCTOU) race condition

Details:
The install utility in uutils coreutils is vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition during file installation. The implementation unlinks an existing destination file and then recreates it using a path-based operation without the O_EXCL flag. A local attacker can exploit the window between the unlink and the subsequent creation to swap the path with a symbolic link, allowing them to redirect privileged writes to overwrite arbitrary system files.
GitHub Security Advisory: GHSA-9gh9-hwpr-rvqq
Package: coreutils (RUST)
Severity: HIGH (CVSS 7.0)
CWE: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils has a Time-of-Check to Time-of-Use (TOCTOU) race condition

Details:
A Time-of-Check to Time-of-Use (TOCTOU) race condition exists in the mkfifo utility of uutils coreutils. The utility creates a FIFO and then performs a path-based chmod to set permissions. A local attacker with write access to the parent directory can swap the newly created FIFO for a symbolic link between these two operations. This redirects the chmod call to an arbitrary file, potentially enabling privilege escalation if the utility is run with elevated privileges.
GitHub Security Advisory: GHSA-vf87-345h-9qhx
Package: coreutils (RUST)
Severity: LOW (CVSS 3.3)
CWE: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Vulnerable versions: < 0.6.0
Patched in: 0.6.0

Summary: uutils coreutils has a Time-of-check Time-of-use (TOCTOU) Race Condition

Details:
The mkdir utility in uutils coreutils incorrectly applies permissions when using the -m flag by creating a directory with umask-derived permissions (typically 0755) before subsequently changing them to the requested mode via a separate chmod system call. In multi-user environments, this introduces a brief window where a directory intended to be private is accessible to other users, potentially leading to unauthorized data access.
GitHub Security Advisory: GHSA-x2wv-9p67-mh9w
Package: coreutils (RUST)
Severity: MODERATE (CVSS 6.6)
CWE: CWE-281: Improper Preservation of Permissions
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils doesn't properly handle setuid and setgid bits when ownership preservation fails

Details:
The cp utility in uutils coreutils fails to properly handle setuid and setgid bits when ownership preservation fails. When copying with the -p (preserve) flag, the utility applies the source mode bits even if the chown operation is unsuccessful. This can result in a user-owned copy retaining original privileged bits, creating unexpected privileged executables that violate local security policies. This differs from GNU cp, which clears these bits when ownership cannot be preserved.
GitHub Security Advisory: GHSA-957r-r8gc-vv3h
Package: coreutils (RUST)
Severity: MODERATE (CVSS 4.2)
CWE: CWE-281: Improper Preservation of Permissions
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils doesn't preserve file ownership during moves across different filesystem boundaries

Details:
The mv utility in uutils coreutils fails to preserve file ownership during moves across different filesystem boundaries. The utility falls back to a copy-and-delete routine that creates the destination file using the caller's UID/GID rather than the source's metadata. This flaw breaks backups and migrations, causing files moved by a privileged user (e.g., root) to become root-owned unexpectedly, which can lead to information disclosure or restricted access for the intended owners.
GitHub Security Advisory: GHSA-v762-x3cf-5mfg
Package: coreutils (RUST)
Severity: MODERATE (CVSS 6.7)
CWE: CWE-59: Improper Link Resolution Before File Access ('Link Following')
Vulnerable versions: < 0.7.0
Patched in: 0.7.0

Summary: uutils coreutils has a Link Following Issue Via rm Utility

Details:
A vulnerability in the rm utility of uutils coreutils allows a bypass of the --preserve-root protection. The implementation uses a path-string check rather than comparing device and inode numbers to identify the root directory. An attacker or accidental user can bypass this safeguard by using a symbolic link that resolves to the root directory (e.g., /tmp/rootlink -> /), potentially leading to the unintended recursive deletion of the entire root filesystem.
GitHub Security Advisory: GHSA-rx8h-33gr-vhj9
Package: coreutils (RUST)
Severity: MODERATE (CVSS 4.4)
CWE: CWE-20: Improper Input Validation
Vulnerable versions: < 0.6.0
Patched in: 0.6.0

Summary: uutils coreutils' comm utility incorrectly consumes data from non-regular file inputs before performing comparison operations

Details:
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.
GitHub Security Advisory: GHSA-f2jv-wjjc-2c94
Package: coreutils (RUST)
Severity: MODERATE (CVSS 5.5)
CWE: CWE-248: Uncaught Exception
Vulnerable versions: <= 0.8.0
Patched in: unpatched

Summary: uutils coreutils has an Uncaught Exception When Encountering Valid but Non-UTF-8 Paths

Details:
The sort utility in uutils coreutils is vulnerable to a process panic when using the --files0-from option with inputs containing non-UTF-8 filenames. The implementation enforces UTF-8 encoding and utilizes expect(), causing an immediate crash when encountering valid but non-UTF-8 paths. This diverges from GNU sort, which treats filenames as raw bytes. A local attacker can exploit this to crash the utility and disrupt automated pipelines.