CVE-2017-16229: Ox gem stack overflow in sax_parse
5.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.38332%
CWE
Published
3/5/2018
Updated
8/29/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
ox | rubygems | < 2.8.2 | 2.8.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description explicitly identifies read_from_str in sax_buf.c as the location of the buffer over-read. The crash backtrace shows execution flow through ox_stpncpy (line 204 of sax_buf.c) during the overflow. ASan output confirms stack-buffer-overflow in the parse function's context, which is fed by read_from_str. Multiple sources (CVE, GHSA, issue #195) consistently reference these functions as the vulnerable components. The root cause is improper bounds checking during XML input processing in these low-level C functions.