Bug 1524439 (CVE-2017-16516)

Summary: CVE-2017-16516 rubygem-yajl-ruby: Yajl::Parser.new.parse incorrect parsing
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: apevec, bleanhar, bmcclain, ccoleman, chrisw, dedgar, dmcphers, eedri, eparis, jgoulding, jjoyce, jschluet, lhh, lpeer, markmc, mburns, mgoldboi, michal.skrivanek, rbryant, sbonazzo, sclewis, slinaber, tdecacqu, ykaul
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-yajl-ruby 1.3.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-27 10:54:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1524440, 1545505, 1565292    
Bug Blocks: 1524442, 1542255    

Description Andrej Nemec 2017-12-11 13:55:33 UTC
In the yajl-ruby gem 1.3.0 for Ruby, when a crafted JSON file is supplied to Yajl::Parser.new.parse, the whole ruby process crashes with a SIGABRT in the yajl_string_decode function in yajl_encode.c. This results in the whole ruby process terminating and potentially a denial of service.

Upstream issue:

https://github.com/brianmario/yajl-ruby/issues/176

Upstream patch:

https://github.com/brianmario/yajl-ruby/commit/a8ca8f476655adaa187eedc60bdc770fff3c51ce

Comment 1 Andrej Nemec 2017-12-11 13:55:53 UTC
Created ruby193-rubygem-yajl-ruby tracking bugs for this issue:

Affects: openshift-1 [bug 1524440]