CVE-2015-4412
published 2018-02-05CVE-2015-4412: 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…
PriorityP348critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EPSS
4.66%
90.7th percentile
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
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| bson_project | bson | — | — |
| debian | ruby-bson | — | — |
| mongodb | bson | >= 0 < 1.12.3 | 1.12.3 |
| mongodb | bson | >= 2.0 < 3.0.4 | 3.0.4 |
CVSS provenance
nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
vendor_debian9.8LOW
vendor_redhat9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
rubygem-bson: data injection vulnerability through a crafted ObjectId
vendor_redhat·2015-06-04·CVSS 9.8
CVE-2015-4412 [CRITICAL] rubygem-bson: data injection vulnerability through a crafted ObjectId
rubygem-bson: data injection vulnerability through a crafted ObjectId
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.
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.
Pac
Debian
CVE-2015-4412: ruby-bson - BSON injection vulnerability in the legal? function in BSON (bson-ruby) gem befo...
vendor_debian·2015·CVSS 9.8
CVE-2015-4412 [CRITICAL] CVE-2015-4412: ruby-bson - BSON injection vulnerability in the legal? function in BSON (bson-ruby) gem befo...
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.
Scope: local
bookworm: resolved
bullseye: resolved
forky: resolved
sid: resolved
trixie: resolved
GHSA
bson is vulnerable to denial of service due to incorrect regex validation
ghsa·2018-03-05
CVE-2015-4412 [CRITICAL] CWE-400 bson is vulnerable to denial of service due to incorrect regex validation
bson is vulnerable to denial of service due to incorrect regex validation
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.
OSV
bson is vulnerable to denial of service due to incorrect regex validation
osv·2018-03-05
CVE-2015-4412 [CRITICAL] bson is vulnerable to denial of service due to incorrect regex validation
bson is vulnerable to denial of service due to incorrect regex validation
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2015-4412 rubygem-bson: data injection vulnerability through a crafted ObjectId
bugzilla·2015-06-09·CVSS 9.8
CVE-2015-4412 [CRITICAL] CVE-2015-4412 rubygem-bson: data injection vulnerability through a crafted ObjectId
CVE-2015-4412 rubygem-bson: data injection vulnerability through a crafted ObjectId
The following data injection issue was discovered in BSON Ruby gem:
It's possible to bypass Moped::BSON::ObjecId.legal? method, and pass any binary data in a crafted ObjectId string.
More details can be found here: http://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html
Upstream fix: https://github.com/mongodb/bson-ruby/commit/976da329ff03ecdfca3030eb6efe3c85e6db9999
Discussion:
Created rubygem-bson tracking bugs for this issue:
Affects: fedora-all [bug 1229751]
---
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 a
Bugzilla
CVE-2015-4412 rubygem-bson: data injection vulnerability through a crafted ObjectId [fedora-all]
bugzilla·2015-06-09·CVSS 9.8
CVE-2015-4412 [CRITICAL] CVE-2015-4412 rubygem-bson: data injection vulnerability through a crafted ObjectId [fedora-all]
CVE-2015-4412 rubygem-bson: data injection vulnerability through a crafted ObjectId [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple sup
Bugzilla
CVE-2015-8982 glibc: multiple overflows in strxfrm()
bugzilla·2015-02-13·CVSS 7.5
CVE-2015-8982 [HIGH] CVE-2015-8982 glibc: multiple overflows in strxfrm()
CVE-2015-8982 glibc: multiple overflows in strxfrm()
Integer overflow when computing memory allocation sizes (similar to CVE-2012-4412) was reported [1] in glibc strxfrm() function. Attached strxfrm-int32.c should trigger this issue on a 32-bit systems.
Additionally, it was discovered [1] that strxfrm() falls back to an unbounded alloca if malloc fails making it vulnerable to stack-based buffer overflows (similar to CVE-2012-4424). Attached strxfrm-alloca.c should trigger this issue.
Upstream commit that fixes all issues:
http://seclists.org/oss-sec/2015/q1/540
[1]: http://seclists.org/oss-sec/2015/q1/540
Discussion:
Created attachment 991416
strxfrm-alloca.c
---
Created attachment 991417
strxfrm-int32.c
---
Created glibc tracking bugs for this issue:
Affects: fedora-all [bug 119
http://www.openwall.com/lists/oss-security/2015/06/06/3http://www.securityfocus.com/bid/75045https://bugzilla.redhat.com/show_bug.cgi?id=1229750https://github.com/mongodb/bson-ruby/commit/976da329ff03ecdfca3030eb6efe3c85e6db9999https://github.com/mongodb/bson-ruby/compare/7446d7c6764dfda8dc4480ce16d5c023e74be5ca...28f34978a85b689a4480b4d343389bf4886522e7https://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.htmlhttp://www.openwall.com/lists/oss-security/2015/06/06/3http://www.securityfocus.com/bid/75045https://bugzilla.redhat.com/show_bug.cgi?id=1229750https://github.com/mongodb/bson-ruby/commit/976da329ff03ecdfca3030eb6efe3c85e6db9999https://github.com/mongodb/bson-ruby/compare/7446d7c6764dfda8dc4480ce16d5c023e74be5ca...28f34978a85b689a4480b4d343389bf4886522e7https://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html
2018-02-05
Published