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-circuiting for logical OR (|) and AND (&) operations. As a result, arithmetic errors (such as division by zero) occurring within "dead" branches, branches that should be ignored due to short-circuiting, are raised as fatal errors. This divergence from GNU expr behavior can cause guarded expressions within shell scripts to fail with hard errors instead of returning expected boolean results, leading to premature script termination and breaking GNU-compatible shell control flow.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:LUutils Coreutils
APPUutils< 0.8.0
Related vulnerabilities
A Time-of-Check to Time-of-Use (TOCTOU) race condition exists in the mkfifo utility of uutils coreutils. The u...
A vulnerability exists in the chroot utility of uutils coreutils when using the --userspec option. The utility...
A vulnerability in uutils coreutils mkfifo allows for the unauthorized modification of permissions on existing...
A vulnerability in the chmod utility of uutils coreutils allows users to bypass the --preserve-root safety mec...
A flaw in the ChownExecutor used by uutils coreutils chown and chgrp causes the utilities to return an incorre...