Live threats

All CVEs / Bson Project

CVE-2015-4412Bson Project Bson

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
4.7%
probability of exploitation in 30 days · percentile 93
Auth required
No
Published
Feb 5, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Bson.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems bson < 1.12.3 1.12.3 gem "bson", ">= 1.12.3"
RubyGems bson ≥ 2.0 < 3.0.4 3.0.4 gem "bson", ">= 3.0.4"

Per OSV / GitHub Advisories (GHSA-h6rj-8r3c-9gpj). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
bson_projectbson3.0.3

Official sources

References

Links published by the sources. Open them with care.