Back
CVE-2015-4412
CRITICAL
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.
Published: Feb 5, 2018
Modified: Jun 17, 2026
CWE-400
CVSS Metrics
CVSSv3
Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
HIGH
Integrity Impact:
HIGH
Availability Impact:
HIGH
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected Products (1)
| Vendor | Product | Version |
|---|---|---|
| bson_project | bson | 3.0.3 |
GitHub Security Advisory GHSA-h6rj-8r3c-9gpj
bson is vulnerable to denial of service due to incorrect regex validation
rubygems
bson
>= 2.0, < 3.0.4
Fixed: 3.0.4
rubygems
bson
< 1.12.3
Fixed: 1.12.3
References (12)
- http://www.openwall.com/lists/oss-security/2015/06/06/3 Mailing List
- http://www.securityfocus.com/bid/75045 Third Party Advisory, VDB Entry
- https://bugzilla.redhat.com/show_bug.cgi?id=1229750 Issue Tracking, Third Party Advisory
- https://github.com/mongodb/bson-ruby/commit/976da329ff03ecdfca3030eb6efe3c85e6db9999 Third Party Advisory
- https://github.com/mongodb/bson-ruby/compare/7446d7c6764dfda8dc4480ce16d5c023e74be5ca...28f34978a85b689a4480b4d343389bf4886522e7 Issue Tracking, Patch, Third Party Advisory
- https://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html Exploit, Patch, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2015/06/06/3 Mailing List
- http://www.securityfocus.com/bid/75045 Third Party Advisory, VDB Entry
- https://bugzilla.redhat.com/show_bug.cgi?id=1229750 Issue Tracking, Third Party Advisory
- https://github.com/mongodb/bson-ruby/commit/976da329ff03ecdfca3030eb6efe3c85e6db9999 Third Party Advisory
- https://github.com/mongodb/bson-ruby/compare/7446d7c6764dfda8dc4480ce16d5c023e74be5ca...28f34978a85b689a4480b4d343389bf4886522e7 Issue Tracking, Patch, Third Party Advisory
- https://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html Exploit, Patch, Third Party Advisory
Risk Scores
CVSS Score
9.8 / 10
EPSS Score
4.66%
Top 9% most likely to be exploited
Threat Score
40.6 / 100
Data Sources
NVD
EPSS
GitHub