CVE-2026-35378
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
coreutilscrates.io | < 0.8.0 | 0.8.0 |
Affected products
3Patches
Vulnerability mechanics
References
5- github.com/uutils/coreutils/pull/11395nvdExploitIssue TrackingPatchWEB
- github.com/advisories/GHSA-5pv5-xh52-hvrpghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-35378ghsaADVISORY
- github.com/uutils/coreutils/commit/76b2f7877f558f3bfa78e3d4f49f022460f509b7ghsaWEB
- github.com/uutils/coreutils/releases/tag/0.8.0nvdRelease NotesWEB
News mentions
0No linked articles in our index yet.