CVE-2015-4412: BSON injection vulnerability in the legal? function in BSON (bson-ruby) gem before 3.0.4 for Ruby allows remot
CVE-2015-4412 is a critical-severity flaw (CVSS 9.8) affecting bson. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 8%: very likely to be exploited
- Public exploit reference
- Remotely exploitable, no login, no user action
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 4.7% (top 8%) |
| CISA exploited list | No |
| Weakness | CWE-400 |
| Published | 2018-02-05 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2015-4412?
bson: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2015-4412 being exploited?
CVE-2015-4412 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2015-4412 affect?
CVE-2015-4412 affects bson. Severity is critical (CVSS 9.8). 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.
How urgent is CVE-2015-4412?
Priority 67/100. Critical severity; EPSS top 8%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2020-7610 CRITICAL 9.8 UPGRADE All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data
- CVE-2015-4411 HIGH 7.5 UPGRADE MITIGATE The Moped::BSON::ObjecId.legal? method in mongodb/bson-ruby before 3.0.4 as used in rubygem-moped allows remot