{"api_version":"1","generated_at":"2026-07-23T08:54:58+00:00","cve":"CVE-2015-4412","urls":{"html":"https://cve.report/CVE-2015-4412","api":"https://cve.report/api/cve/CVE-2015-4412.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2015-4412","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2015-4412"},"summary":{"title":"CVE-2015-4412","description":"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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2018-02-05 16:29:00","updated_at":"2018-03-13 19:49:00"},"problem_types":["CWE-400"],"metrics":[],"references":[{"url":"http://www.openwall.com/lists/oss-security/2015/06/06/3","name":"[oss-security] 20150606 Re: CVE Request: bson-ruby DoS and possible injection","refsource":"MLIST","tags":["Mailing List"],"title":"oss-security - Re: CVE Request: bson-ruby DoS and possible injection","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/75045","name":"75045","refsource":"BID","tags":["Third Party Advisory","VDB Entry"],"title":"RubyGems BSON Multiple Denial of Service Vulnerabilities","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://github.com/mongodb/bson-ruby/commit/976da329ff03ecdfca3030eb6efe3c85e6db9999","name":"https://github.com/mongodb/bson-ruby/commit/976da329ff03ecdfca3030eb6efe3c85e6db9999","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"Use \\A \\z for checking regex on legal · mongodb/bson-ruby@976da32 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html","name":"https://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html","refsource":"MISC","tags":["Exploit","Patch","Third Party Advisory"],"title":"Mongo BSON Injection: Ruby Regexps Strike Again","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/mongodb/bson-ruby/compare/7446d7c6764dfda8dc4480ce16d5c023e74be5ca...28f34978a85b689a4480b4d343389bf4886522e7","name":"https://github.com/mongodb/bson-ruby/compare/7446d7c6764dfda8dc4480ce16d5c023e74be5ca...28f34978a85b689a4480b4d343389bf4886522e7","refsource":"CONFIRM","tags":["Issue Tracking","Patch","Third Party Advisory"],"title":"Comparing 7446d7c6764dfda8dc4480ce16d5c023e74be5ca...28f34978a85b689a4480b4d343389bf4886522e7 · mongodb/bson-ruby · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1229750","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1229750","refsource":"CONFIRM","tags":["Issue Tracking","Third Party Advisory"],"title":"Bug 1229750 – CVE-2015-4412 rubygem-bson: data injection vulnerability through a crafted ObjectId","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2015-4412","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-4412","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2015","cve_id":"4412","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"bson_project","cpe5":"bson","cpe6":"3.0.3","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"},{"cve_year":"2015","cve_id":"4412","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"bson_project","cpe5":"bson","cpe6":"3.0.3","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2015-4412","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"75045","refsource":"BID","url":"http://www.securityfocus.com/bid/75045"},{"name":"https://github.com/mongodb/bson-ruby/commit/976da329ff03ecdfca3030eb6efe3c85e6db9999","refsource":"CONFIRM","url":"https://github.com/mongodb/bson-ruby/commit/976da329ff03ecdfca3030eb6efe3c85e6db9999"},{"name":"https://github.com/mongodb/bson-ruby/compare/7446d7c6764dfda8dc4480ce16d5c023e74be5ca...28f34978a85b689a4480b4d343389bf4886522e7","refsource":"CONFIRM","url":"https://github.com/mongodb/bson-ruby/compare/7446d7c6764dfda8dc4480ce16d5c023e74be5ca...28f34978a85b689a4480b4d343389bf4886522e7"},{"name":"https://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html","refsource":"MISC","url":"https://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html"},{"name":"https://bugzilla.redhat.com/show_bug.cgi?id=1229750","refsource":"CONFIRM","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1229750"},{"name":"[oss-security] 20150606 Re: CVE Request: bson-ruby DoS and possible injection","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2015/06/06/3"}]}},"nvd":{"publishedDate":"2018-02-05 16:29:00","lastModifiedDate":"2018-03-13 19:49:00","problem_types":["CWE-400"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:bson_project:bson:3.0.3:*:*:*:*:ruby:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2015","CveId":"4412","Ordinal":"81387","Title":"CVE-2015-4412","CVE":"CVE-2015-4412","Year":"2015"},"notes":[{"CveYear":"2015","CveId":"4412","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2015","CveId":"4412","Ordinal":"2","NoteData":"2018-02-05","Type":"Other","Title":"Published"},{"CveYear":"2015","CveId":"4412","Ordinal":"3","NoteData":"2018-02-05","Type":"Other","Title":"Modified"}]}}}