{"cve":"CVE-2015-4412","nvd":{"published":"2018-02-05T16:29:00.410","modified":"2026-06-17T00:27:14.797","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-400"],"references":["http://www.openwall.com/lists/oss-security/2015/06/06/3","http://www.securityfocus.com/bid/75045","https://bugzilla.redhat.com/show_bug.cgi?id=1229750","https://github.com/mongodb/bson-ruby/commit/976da329ff03ecdfca3030eb6efe3c85e6db9999","https://github.com/mongodb/bson-ruby/compare/7446d7c6764dfda8dc4480ce16d5c023e74be5ca...28f34978a85b689a4480b4d343389bf4886522e7"],"products":["bson_project:bson"],"source":"nvd","synced_at":"2026-10-19T20:48:34.567387330+00:00"},"epss":{"cve":"CVE-2015-4412","score":0.04663,"percentile":0.91752,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h6rj-8r3c-9gpj","url":"https://osv.dev/vulnerability/GHSA-h6rj-8r3c-9gpj","summary":"bson is vulnerable to denial of service due to incorrect regex validation","modified":"2024-02-16T08:07:06.561735Z","packages":[{"ecosystem":"RubyGems","name":"bson","purl":"pkg:gem/bson","ranges":["<1.12.3"],"fixed":["1.12.3"]},{"ecosystem":"RubyGems","name":"bson","purl":"pkg:gem/bson","ranges":[">=2.0 <3.0.4"],"fixed":["3.0.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}