PT-2022-20527 · Rulex · Rulex

Evan Richter

·

Published

2022-05-21

·

Updated

2022-07-11

·

CVE-2022-31100

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions rulex versions prior to 0.4.3
Description When parsing untrusted rulex expressions, rulex may crash, 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. This is a security concern for services that parse untrusted rulex expressions and become unavailable when the thread running rulex panics.
Recommendations Update to version 0.4.3 to fix the issue. As a temporary workaround, consider using catch unwind to recover from panics or assume that regular expression parsing will panic and add logic to catch panics.

Exploit

Fix

Assertion Failure

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2022-31100
GHSA-8V9W-P43C-R885
RUSTSEC-2022-0031

Affected Products

Rulex