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.
Weakness
- CWE-768: Incorrect Short Circuit Evaluation
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-04-22 |
Timeline
- 2026-04-22Published by the CNA16:09 UTC
- 2026-04-22GitHub advisory published (GHSA-5pv5-xh52-hvrp)same day
- 2026-04-22CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-5pv5-xh52-hvrp, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| crates.io coreutils | before 0.8.0 | 0.8.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| uutils coreutils | before 0.8.0fixed in 0.8.0 | 0.8.0 |
References
- https://github.com/uutils/coreutils/pull/11395
- https://github.com/uutils/coreutils/releases/tag/0.8.0
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-35378'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-35378'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-35378'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-35378'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).