CRITICAL9.8
GHSA-h6rj-8r3c-9gpj
bson is vulnerable to denial of service due to incorrect regex validation
Quick fix
GHSA-h6rj-8r3c-9gpj — bson: upgrade to the fixed version with the command below.
bundle update bsonDetails
BSON injection vulnerability in the legal function in BSON (bson-ruby) gem before 3.0.4 for Ruby allows remote attackers to cause a denial of service (resource consumption) or inject arbitrary data via a crafted string.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2015-4412[ADVISORY]
- https://github.com/mongodb/bson-ruby/commit/976da329ff03ecdfca3030eb6efe3c85e6db9999[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=1229750[WEB]
- https://github.com/advisories/GHSA-h6rj-8r3c-9gpj[ADVISORY]
- https://github.com/mongodb/bson-ruby[PACKAGE]
- https://github.com/mongodb/bson-ruby/compare/7446d7c6764dfda8dc4480ce16d5c023e74be5ca...28f34978a85b689a4480b4d343389bf4886522e7[WEB]
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bson/CVE-2015-4412.yml[WEB]
- https://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html[WEB]
- http://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html[WEB]
- http://www.openwall.com/lists/oss-security/2015/06/06/3[WEB]
- http://www.securityfocus.com/bid/75045[WEB]