Bug 1229750 (CVE-2015-4412)

Summary: CVE-2015-4412 rubygem-bson: data injection vulnerability through a crafted ObjectId
Product: [Other] Security Response Reporter: Vasyl Kaigorodov <vkaigoro>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: ASSIGNED --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: bkearney, bleanhar, cbillett, dmcphers, jialiu, jorton, jshepherd, katello-bugs, lmeyer, tdawson, tomckay, vondruch, whearn
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-29 22:21:58 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: 1229751, 1229752, 1229753    
Bug Blocks: 1228705    

Description Vasyl Kaigorodov 2015-06-09 14:44:10 UTC
The following data injection issue was discovered in BSON Ruby gem:

It's possible to bypass Moped::BSON::ObjecId.legal? method, and pass any binary data in a crafted ObjectId string.
More details can be found here: http://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html
Upstream fix: https://github.com/mongodb/bson-ruby/commit/976da329ff03ecdfca3030eb6efe3c85e6db9999

Comment 1 Vasyl Kaigorodov 2015-06-09 14:44:52 UTC
Created rubygem-bson tracking bugs for this issue:

Affects: fedora-all [bug 1229751]

Comment 7 Kurt Seifried 2015-07-29 22:21:58 UTC
Statement:

This issue affects the versions of rubygem-bson as shipped with Red Hat OpenShift Enterprise 2.x. Red Hat Product Security has rated this issue as having Low security impact on Red Hat OpenShift Enterprise 2. Additionally access to the component using rubygem-moped is restricted, only trusted users and systems can send messages, thus no trust boundary violation occurs and this issue can not easily be used to create an exploitable security vulnerability on Red Hat OpenShift Enterprise 2.