Miggo Logo

GHSA-gx8x-g87m-h5q6: Denial of Service (DoS) in Nokogiri on JRuby

7.5

CVSS Score
3.1

Basic Information

CVE ID
-
EPSS Score
-
Published
4/11/2022
Updated
1/11/2023
KEV Status
No
Technology
TechnologyRuby

Technical Details

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

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper EOF handling in HTML processing instruction parsing. The commit a800fce shows the fix specifically modifies the scanPI method in HTMLScanner.java to check for EOF (c == -1) in addition to '>', preventing infinite loops. This matches the CWE-400 description of uncontrolled resource consumption through malformed HTML inputs.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

## Summ*ry Noko*iri `v*.**.*` up**t*s t** v*n*or** `or*.*y**rn*ko.*tml` li*r*ry to `*.*.**.noko*` w*i** ***r*ss*s [*V*-****-*****](*ttps://*it*u*.*om/sp*rkl*motion/n*ko*tml/s**urity/**visori*s/**S*-****-p*j*-*rmv). T**t *V* is r*t** *.* (*i** S*v*ri

Reasoning

T** vuln*r**ility st*ms *rom improp*r *O* **n*lin* in *TML pro**ssin* instru*tion p*rsin*. T** *ommit `*******` s*ows t** *ix sp**i*i**lly mo*i*i*s t** `s**nPI` m*t*o* in `*TMLS**nn*r.j*v*` to ****k *or *O* (* == -*) in ***ition to '>', pr*v*ntin* in