Miggo Logo

CVE-2017-16516: yajl-ruby gem Denial of Service vulnerability

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.74396%
Published
11/28/2017
Updated
11/5/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
yajl-rubyrubygems< 1.3.11.3.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability manifests in yajl_string_decode as shown by the crash location (SIGABRT in this function) and the patched commit modifying this function. The original code advanced the 'end' pointer before checking buffer limits and unicode escape validity, creating a race condition where it could read past allocated memory. The patch explicitly moves boundary checks before pointer advancement, confirming this was the root cause.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

In t** y*jl-ru*y **m *.*.* *or Ru*y, w**n * *r**t** JSON *il* is suppli** to `Y*jl::P*rs*r.n*w.p*rs*`, t** w*ol* ru*y pro**ss *r*s**s wit* * SI***RT in t** `y*jl_strin*_***o**` *un*tion in `y*jl_*n*o**.*`. T*is r*sults in t** w*ol* ru*y pro**ss t*rmi

Reasoning

T** vuln*r**ility m*ni**sts in y*jl_strin*_***o** *s s*own *y t** *r*s* lo**tion (SI***RT in t*is *un*tion) *n* t** p*t**** *ommit mo*i*yin* t*is *un*tion. T** ori*in*l *o** **v*n*** t** '*n*' point*r ***or* ****kin* *u***r limits *n* uni*o** *s**p*