Lucene search

K
osvGoogleOSV:RUSTSEC-2022-0031
HistoryMay 21, 2022 - 12:00 p.m.

Panic due to improper UTF-8 indexing

2022-05-2112:00:00
Google
osv.dev
9

0.001 Low

EPSS

Percentile

31.7%

When parsing untrusted rulex expressions, rulex may panic, possibly enabling
a Denial of Service attack. This happens when the expression contains a multi-
byte UTF-8 code point in a string literal or after a backslash, because rulex
tries to slice into the code point and panics as a result.

The flaw was corrected in commits fac6d58b25 and 330b3534e7 by using
len_utf8() to derive character width in bytes instead of assuming ASCII
encoding of 1 byte per char.

CPENameOperatorVersion
rulexlt0.4.3

0.001 Low

EPSS

Percentile

31.7%

Related for OSV:RUSTSEC-2022-0031