RUSTSEC-2022-0031

    Dashboard / Vulnerabilities / RUSTSEC-2022-0031

    RUSTSEC-2022-0031

    Published: 21 May 2022Last Modified: 8 Nov 2023

    Summary: Panic due to improper UTF-8 indexing

    Details: 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.

    Affected packages

    Package

    Name: rulex

    Purl: pkg:cargo/rulex

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.0.0-0
    Fixed -0.4.3

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    RUSTSEC-2022-0031 | CVE-DB