Skip to content
OpenAdvisories

Package · Debian

rust-coreutils

45 known vulnerabilities.

45 results · Feed

  • High 7.0

    uutils coreutils 0.0.18 before 0.10.0 Privilege Escalation via setuid

    uutils coreutils versions before 0.10.0 apply setuid or setgid mode to install destinations before finalizing ownership changes, allowing privileged users to leave setuid executables owned by the privileged invoker when ownership changes fail. Attackers can e…

  • Low 3.3

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

    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 th…

  • Medium 5.5

    uutils coreutils cut Local Logic Error and Data Integrity Issue in Delimiter Parsing

    A logic error in the cut utility of uutils coreutils causes the program to incorrectly interpret the literal two-byte string '' (two single quotes) as an empty delimiter. The implementation mistakenly maps this string to the NUL character for both the -d (del…

  • Low 3.3

    uutils coreutils tr Local Logic Error and Data Integrity Issue in Character Class Handling

    A logic error in the tr utility of uutils coreutils causes the program to incorrectly define the [:graph:] and [:print:] character classes. The implementation mistakenly includes the ASCII space character (0x20) in the [:graph:] class and excludes it from the…

  • Low 3.3

    uutils coreutils expr Local Denial of Service via Eager Evaluation of Parenthesized Subexpressions

    A logic error in the expr utility of uutils coreutils causes the program to evaluate parenthesized subexpressions during the parsing phase rather than at the execution phase. This implementation flaw prevents the utility from performing proper short-circuitin…

  • Low 3.3

    uutils coreutils env Local Denial of Service via Improper Handling of Backslashes in Split-String Mode

    A logic error in the env utility of uutils coreutils causes a failure to correctly parse command-line arguments when utilizing the -S (split-string) option. In GNU env, backslashes within single quotes are treated literally (with the exceptions of \\ and \').…

  • Medium 4.5

    uutils coreutils chcon Security Bypass and Mandatory Access Control (MAC) Inconsistency via TOCTOU Race Condition

    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 …

  • Low 3.3

    uutils coreutils split Local Data Integrity Issue via Lossy Filename Encoding

    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 rewrite…

  • Medium 6.3

    uutils coreutils split Arbitrary File Truncation via Time-of-Check to Time-of-Use (TOCTOU) Race Condition

    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 operati…

  • Low 3.3

    uutils coreutils ln Local Denial of Service via Improper Handling of Non-UTF-8 Filenames

    A logic error in the ln utility of uutils coreutils causes the program to reject source paths containing non-UTF-8 filename bytes when using target-directory forms (e.g., ln SOURCE... DIRECTORY). While GNU ln treats filenames as raw bytes and creates the link…

  • Medium 5.0

    uutils coreutils ln Security Bypass via Improper Handling of the --no-dereference Flag

    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 --fo…

  • Low 3.3

    uutils coreutils id Misleading Identity Reporting in Pretty Print Mode

    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 ef…

  • Medium 4.4

    uutils coreutils id Incorrect Access-Control Decisions via Misrepresented Group Membership

    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 …

  • Medium 5.5

    uutils coreutils kill System-wide Process Termination and Denial of Service via Argument Misinterpretation

    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, potent…

  • High 7.2

    uutils coreutils chroot Local Privilege Escalation and chroot Escape in via Name Service Switch (NSS) Injection

    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 trigg…

  • Low 3.3

    uutils coreutils nohup Information Disclosure via Insecure Default Output Permissions

    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 e…

  • Medium 4.4

    uutils coreutils printenv Security Inspection Bypass via UTF-8 Enforcement

    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 th…

  • Medium 6.6

    uutils coreutils mv Denial of Service and Data Duplication via Improper Symlink Expansion

    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…

  • Medium 6.3

    uutils coreutils mv Arbitrary File Overwrite via Cross-Device TOCTOU Race Condition

    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 t…

  • Medium 5.6

    uutils coreutils rm Safeguard Bypass via Improper Path Normalization

    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, suc…

  • Low 3.6

    uutils coreutils Missing TOCTOU Protection on Non-Linux Unix Platforms in Safe Traversal Module

    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…

  • Low 3.4

    uutils coreutils mknod Security Label Inconsistency and Broken Cleanup on SELinux Systems

    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.…

  • Medium 6.3

    uutils coreutils touch Arbitrary File Truncation via TOCTOU Race Condition

    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 …

  • Medium 4.7

    uutils coreutils cp Information Disclosure via Time-of-Check to Time-of-Use Symlink Swap

    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 …

  • Medium 4.4

    uutils coreutils cp Semantic Loss and Potential Denial of Service with -R via Device Node Stream Reading

    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 …

  • Medium 4.7

    uutils coreutils cp Information Disclosure via Permission Handling Race

    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 …

  • Medium 6.3

    uutils coreutils install Arbitrary File Overwrite with -D via Path Component Symlink Race

    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 whi…

  • Medium 6.3

    uutils coreutils install Arbitrary File Overwrite via Symlink TOCTOU Race

    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_…

  • Medium 4.7

    uutils coreutils mv Security Xattr TOCTOU Race in Cross-Device

    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 …

  • Low 3.3

    uutils coreutils mkdir Permission Exposure Race Condition with -m

    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 m…

  • High 7.0

    uutils coreutils mkfifo Privilege Escalation via TOCTOU Race Condition

    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 th…

  • Medium 4.2

    uutils coreutils mv Silent Ownership Loss in Cross-Device Operations

    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 …

  • Medium 6.6

    uutils coreutils cp Unexpected Privileged Executable Creation with -p

    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 resu…

  • Medium 6.7

    uutils coreutils Path-Based Safety Bypass with --preserve-root

    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 …

  • Medium 5.5

    uutils coreutils sort Local Denial of Service via Forced UTF-8 Parsing

    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 encounterin…

  • Medium 4.4

    uutils coreutils comm Silent Data Loss or Denial of Service via Improper Input Validation

    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…

  • Low 3.3

    uutils coreutils comm Silent Data Corruption via Lossy UTF-8 Normalization

    The comm utility in uutils coreutils silently corrupts data by performing lossy UTF-8 conversion on all output lines. The implementation uses String::from_utf8_lossy(), which replaces invalid UTF-8 byte sequences with the Unicode replacement character (U+FFFD…

  • Medium 5.3

    uutils coreutils tail Privileged Information Disclosure via Symlink Replacement Race

    A vulnerability in the tail utility of uutils coreutils allows for the exfiltration of sensitive file contents when using the --follow=name option. Unlike GNU tail, the uutils implementation continues to monitor a path after it has been replaced by a symbolic…

  • Low 3.3

    uutils coreutils dd Silent Data Corruption via Unconditional Truncation Error Suppression

    The dd utility in uutils coreutils suppresses errors during file truncation operations by unconditionally calling Result::ok() on truncation attempts. While intended to mimic GNU behavior for special files like /dev/null, the uutils implementation also hides …

  • Low 3.3

    uutils coreutils cut Inconsistent Output Suppression with Newline Delimiters

    The cut utility in uutils coreutils incorrectly handles the -s (only-delimited) option when a newline character is specified as the delimiter. The implementation fails to verify the only_delimited flag in the cut_fields_newline_char_delim function, causing th…