Miggo Logo

CVE-2019-13118: libxslt Type Confusion vulnerability that affects Nokogiri

7.5

CVSS Score
3.0

Basic Information

EPSS Score
0.76137%
Published
5/24/2022
Updated
3/8/2023
KEV Status
No
Technology
TechnologyRuby

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
nokogirirubygems< 1.10.51.10.5

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability description explicitly mentions xsltNumberFormatDecimal as the function receiving invalid combinations due to a type mismatch in grouping character handling. The CWE-843 (Type Confusion) classification and libxslt commit history (though inaccessible) corroborate this being the vulnerable function in numbers.c. The exposure of uninitialized stack data directly points to memory safety issues in this decimal formatting function.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

In `num**rs.*` in li*xslt *.*.**, * typ* *ol*in* *roupin* ***r**t*rs o* *n `xsl:num**r` instru*tion w*s too n*rrow *n* *n inv*li* ***r**t*r/l*n*t* *om*in*tion *oul* ** p*ss** to `xsltNum**r*orm*t***im*l`, l***in* to * r*** o* uniniti*liz** st**k **t*

Reasoning

T** vuln*r**ility **s*ription *xpli*itly m*ntions `xsltNum**r*orm*t***im*l` *s t** *un*tion r***ivin* inv*li* *om*in*tions *u* to * typ* mism*t** in *roupin* ***r**t*r **n*lin*. T** *W*-*** (Typ* *on*usion) *l*ssi*i**tion *n* `li*xslt` *ommit *istory