CVE-2015-4412Bson Project Bson
Critical 9.8 No auth needed
Follow: this CVE · Bson Project · Bson Project Bson We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Bson.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| bson_project | bson | 3.0.3 |
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List
- www.securityfocus.com Third Party Advisory VDB Entry
- bugzilla.redhat.com Issue Tracking Third Party Advisory
- github.com Third Party Advisory
- github.com Issue Tracking Patch Third Party Advisory
- sakurity.com Exploit Patch Third Party Advisory