CVE-2026-35378

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.
References
Configurations

Configuration 1 (hide)

cpe:2.3:a:uutils:coreutils:*:*:*:*:*:rust:*:*

History

04 May 2026, 18:48

Type Values Removed Values Added
CPE cpe:2.3:a:uutils:coreutils:*:*:*:*:*:rust:*:*
References () https://github.com/uutils/coreutils/pull/11395 - () https://github.com/uutils/coreutils/pull/11395 - Exploit, Issue Tracking, Patch
References () https://github.com/uutils/coreutils/releases/tag/0.8.0 - () https://github.com/uutils/coreutils/releases/tag/0.8.0 - Release Notes
First Time Uutils
Uutils coreutils

22 Apr 2026, 17:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-22 17:16

Updated : 2026-05-04 18:48


NVD link : CVE-2026-35378

Mitre link : CVE-2026-35378

CVE.ORG link : CVE-2026-35378


JSON object : View

Products Affected

uutils

  • coreutils
CWE
CWE-768

Incorrect Short Circuit Evaluation