Miggo Logo

GHSA-8xff-473h-f863: Uncaught Exception Handling Parsing Errors on Line Terminators

6.5

CVSS Score
3.1

Basic Information

CVE ID
-
EPSS Score
-
Published
2/21/2024
Updated
2/21/2024
KEV Status
No
Technology
TechnologyRust

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
surrealdbrust<= 1.2.01.2.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from panics during error span rendering when parsing fails on line terminators. In Rust, such panics typically occur from unwrapped Result/Option or invalid string slicing. The error span rendering function would be responsible for generating diagnostic messages with source code locations, making it susceptible to out-of-bounds access when the error position coincides with a line terminator. The function name and location are inferred from standard Rust crate structure and the nature of the vulnerability, though exact code confirmation is unavailable.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

T** sp*n r*n**rin* woul* p*ni* w**n **n*lin* **il** p*rsin* o* qu*ri*s w**r* t** *rror o**urr** on * lin* t*rmin*tor ***r**t*r. ### Imp**t * *li*nt t**t is *ut*oriz** to run qu*ri*s in * Surr**l** s*rv*r is **l* to *x**ut* * m*l*orm** qu*ry w*i** w

Reasoning

T** vuln*r**ility st*ms *rom p*ni*s *urin* *rror sp*n r*n**rin* w**n p*rsin* **ils on lin* t*rmin*tors. In Rust, su** p*ni*s typi**lly o**ur *rom unwr*pp** `R*sult`/`Option` or inv*li* strin* sli*in*. T** *rror sp*n r*n**rin* `*un*tion` woul* ** r*sp