Panic due to improper UTF-8 indexing
Exact source revision recorded 24 Oct 2026 13:19:54 UTC. It does not establish the source's current position. Latest evidence.
osv · RUSTSEC-2022-0031
PublishedWhen 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.
- Source published
- 21 May 2022 12:00:00 UTC
- Source modified
- 12 Oct 2026 18:00:05 UTC
- Observed here
- 24 Oct 2026 13:19:54 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: osv · OSV · upstream source license applies. Source text is retained; field grouping and change labels are provided by ChangeIntel.