CVE-2017-16229
Description
Ox gem 2.8.1 for Ruby has a stack-based buffer over-read in read_from_str (sax_buf.c) that crashes the process when parsing a crafted XML input via sax_parse.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Ox gem 2.8.1 for Ruby has a stack-based buffer over-read in read_from_str (sax_buf.c) that crashes the process when parsing a crafted XML input via sax_parse.
Vulnerability
In the Ox gem version 2.8.1 for Ruby, the read_from_str function in sax_buf.c contains a stack-based buffer over-read vulnerability [1]. When the SAX parser is invoked via Ox.sax_parse with a crafted XML input, the process crashes with a segmentation fault [1][3]. The issue was confirmed on Ruby 2.4.2p198 running on x86_64-linux [1].
Exploitation
An attacker must supply a specially crafted XML file to the SAX parser [1]. No authentication is required beyond the ability to provide the malicious input to the parser. The crash occurs during parsing when the read_from_str function reads beyond the bounds of a stack buffer, as demonstrated by the provided proof-of-concept script [1]. The crafted input is available via a Google Drive link in the issue report [1].
Impact
A successful trigger causes a segmentation fault, crashing the Ruby process [1]. This is a denial-of-service (DoS) condition. The processed crash output shows a fault at address 0x41414141, indicating controlled corruption, which could potentially be leveraged for arbitrary code execution, though the available references do not confirm exploitation beyond a crash [1][3].
Mitigation
As of the available references, no patch has been published for this vulnerability [1][2][3][4]. Users of the Ox gem 2.8.1 should monitor the official repository for a fix [2]. No workaround is provided in the disclosed information. The gem's maintainer has been notified via the GitHub issue tracker [1].
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
oxRubyGems | < 2.8.2 | 2.8.2 |
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-wfwm-chj7-w59rghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2017-16229ghsaADVISORY
- github.com/ohler55/ox/issues/195ghsax_refsource_MISCWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/ox/CVE-2017-16229.ymlghsaWEB
- rubygems.org/gems/ox/versions/2.8.1ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.