rubygem-bson: data injection vulnerability through a crafted ObjectId
Published Feb 5, 2018
9.8
CRITICALCVSS 3.0
EPSS 4.66%
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.
Affected products
No data.
- 3.0.3
No data.
Red Hat OpenShift Enterprise 2
ruby193-rubygem-bson
Affected
Red Hat OpenShift Enterprise 2
rubygem-bson
Affected
Red Hat Software Collections
rh-ror41-rubygem-bson
Affected
Red Hat Software Collections
ror40-rubygem-bson
Affected
Red Hat Software Collections
ruby193-rubygem-bson
Affected
Red Hat Subscription Asset Manager
ruby193-rubygem-bson
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat OpenShift Enterprise 2 | ruby193-rubygem-bson | Affected | n/a |
| Red Hat OpenShift Enterprise 2 | rubygem-bson | Affected | n/a |
| Red Hat Software Collections | rh-ror41-rubygem-bson | Affected | n/a |
| Red Hat Software Collections | ror40-rubygem-bson | Affected | n/a |
| Red Hat Software Collections | ruby193-rubygem-bson | Affected | n/a |
| Red Hat Subscription Asset Manager | ruby193-rubygem-bson | Affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue affects the versions of rubygem-bson as shipped with Red Hat OpenShift Enterprise 2.x. Red Hat Product Security has rated this issue as having Low security impact on Red Hat OpenShift Enterprise 2. Additionally access to the component using rubygem-moped is restricted, only trusted users and systems can send messages, thus no trust boundary violation occurs and this issue can not easily be used to create an exploitable security vulnerability on Red Hat OpenShift Enterprise 2.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (14 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.66% (0.04663) | 91.47th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.75% (0.04751) | 90.69th | v5 (v2026.06.15) |
| Mar 30, 2025 | 1.92% (0.01916) | 81.69th | v4 (v2025.03.14) |
| Mar 29, 2025 | 5.66% (0.05661) | 83.56th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.92% (0.01916) | 82.10th | v4 (v2025.03.14) |
| Dec 12, 2024 | 1.38% (0.01379) | 86.87th | v3 (v2023.03.01) |
| Jul 13, 2024 | 1.38% (0.01379) | 86.44th | v3 (v2023.03.01) |
| Jun 29, 2023 | 1.38% (0.01379) | 84.44th | v3 (v2023.03.01) |
| May 8, 2023 | 1.69% (0.01688) | 85.81th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.84% (0.01837) | 86.40th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.32% (0.01319) | 71.27th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.32% (0.01319) | 71.23th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.32% (0.01319) | 69.22th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.32% (0.01319) | 44.98th | v2 (v2022.01.01) |
References (12)
- http://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html
- http://www.openwall.com/lists/oss-security/2015/06/06/3 mailing-listx_refsource_MLISTMailing List
- http://www.securityfocus.com/bid/75045 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2015-4412 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1229750 x_refsource_CONFIRMIssue TrackingThird Party Advisory
- https://github.com/advisories/GHSA-h6rj-8r3c-9gpj Advisory
- https://github.com/mongodb/bson-ruby/commit/976da329ff03ecdfca3030eb6efe3c85e6db9999 x_refsource_CONFIRMThird Party Advisory
- https://github.com/mongodb/bson-ruby/compare/7446d7c6764dfda8dc4480ce16d5c023e74be5ca...28f34978a85b689a4480b4d343389bf4886522e7 x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bson/CVE-2015-4412.yml
- https://nvd.nist.gov/vuln/detail/CVE-2015-4412
- https://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html x_refsource_MISCExploitPatchThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2015-4412
Change history (0)
No recorded changes yet.