1. Archivio CVE
  2. 2026
  3. CVE-2026-35378

CVE-2026-35378

3.3 Gravità bassa CVSS v3.1 · fonte NVD CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L 3.3 – Bassa

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
uutils coreutils < 0.8.0 rust
Tutte le 45 vulnerabilità di Uutils Coreutils

Tipo di vulnerabilità

CWE-768 Incorrect Short Circuit Evaluation

The product contains a conditional statement with multiple logical expressions in which one of the non-leading expressions may produce side effects.

Impatto sui sistemi

AmbitoImpatto
Riservatezza, Integrità, Disponibilità Dipende dal contesto
Altro Stato imprevisto
Altro Ridurre la manutenibilità

Come si previene

Sviluppo Minimizing the number of statements in a conditional that produce side effects will help to prevent the likelihood of short circuit evaluation to alter control flow in an unexpected way.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 1 CVE di tipo CWE-768, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org