LOW🇬🇧 English

CVE-2026-35378

CVSS 3.3v3.1pub. 2026-04-22upd. 2026-05-04

Błąd logiki w narzędziu expr z uutils coreutils powoduje, że program ocenia wyrażenia w nawiasach podczas fazy parsowania zamiast podczas wykonania. Ta wada implementacji uniemożliwia prawidłowe short-circuiting dla operacji logicznych OR (|) i AND (&). W rezultacie błędy arytmetyczne (takie jak dzielenie przez zero) występujące w gałęziach "martwych", które powinny być ignorowane ze względu na short-circuiting, są zgłaszane jako błędy fatalne. To odbieganie od zachowania GNU expr może powodować, że wyrażenia chronione w skryptach shell'owych kończą się twardymi błędami zamiast zwracać oczekiwane rezultaty logiczne, co prowadzi do przedwczesnego zakończenia skryptu i łamie kontrolę przepływu zgodną z GNU.

Pokaż oryginał (EN)

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 Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
  • Uutils Coreutils

    APP
    Uutils
    < 0.8.0
🔵
ZWERYFIKUJ U PRODUCENTA
Brak jednoznacznych danych o patchu. Sprawdź referencje od producenta.
CWE
Referencje

Powiązane podatności

CVE-2026-35352HIGH7.0ten sam produkt

A Time-of-Check to Time-of-Use (TOCTOU) race condition exists in the mkfifo utility of uutils coreutils. The u...

CVE-2026-35368HIGH7.8ten sam produkt

A vulnerability exists in the chroot utility of uutils coreutils when using the --userspec option. The utility...

CVE-2026-35341HIGH7.1ten sam produkt

A vulnerability in uutils coreutils mkfifo allows for the unauthorized modification of permissions on existing...

CVE-2026-35338HIGH7.3ten sam produkt

A vulnerability in the chmod utility of uutils coreutils allows users to bypass the --preserve-root safety mec...

CVE-2026-35340MEDIUM5.5ten sam produkt

A flaw in the ChownExecutor used by uutils coreutils chown and chgrp causes the utilities to return an incorre...