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

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