CVE-2018-13863
published 2018-07-10CVE-2018-13863: The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regular Expression Denial of Service (ReDoS)…
PriorityP434high7.5CVSS 3.0
AVNACLPRNUINSUCNINAH
EPSS
1.94%
77.9th percentile
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regular Expression Denial of Service (ReDoS) in lib/bson/decimal128.js. The flaw is triggered when the Decimal128.fromString() function is called to parse a long untrusted string.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | node-mongodb | < node-mongodb 3.1.10+~3.1.9-1 (bookworm) | node-mongodb 3.1.10+~3.1.9-1 (bookworm) |
| mongodb | bson | >= 0.5.0 < 1.0.5 | 1.0.5 |
| mongodb | js-bson | >= 0.5.0 < 1.0.5 | 1.0.5 |
CVSS provenance
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
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.
OSV
js-bson vulnerable to REDoS
osv·2018-09-17
CVE-2018-13863 [HIGH] js-bson vulnerable to REDoS
js-bson vulnerable to REDoS
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regular Expression Denial of Service (ReDoS) in lib/bson/decimal128.js. The flaw is triggered when the Decimal128.fromString() function is called to parse a long untrusted string.
GHSA
js-bson vulnerable to REDoS
ghsa·2018-09-17
CVE-2018-13863 [HIGH] CWE-185 js-bson vulnerable to REDoS
js-bson vulnerable to REDoS
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regular Expression Denial of Service (ReDoS) in lib/bson/decimal128.js. The flaw is triggered when the Decimal128.fromString() function is called to parse a long untrusted string.
OSV
CVE-2018-13863: The MongoDB bson JavaScript module (also known as js-bson) versions 0
osv·2018-07-10·CVSS 7.5
CVE-2018-13863 [HIGH] CVE-2018-13863: The MongoDB bson JavaScript module (also known as js-bson) versions 0
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regular Expression Denial of Service (ReDoS) in lib/bson/decimal128.js. The flaw is triggered when the Decimal128.fromString() function is called to parse a long untrusted string.
Red Hat
nodejs-bson: Regular expression denial of service in decimal128.js
vendor_redhat·2018-02-27·CVSS 7.5
CVE-2018-13863 [HIGH] CWE-185 nodejs-bson: Regular expression denial of service in decimal128.js
nodejs-bson: Regular expression denial of service in decimal128.js
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regular Expression Denial of Service (ReDoS) in lib/bson/decimal128.js. The flaw is triggered when the Decimal128.fromString() function is called to parse a long untrusted string.
Package: nodejs-bson (Red Hat Mobile Application Platform 4) - Will not fix
Package: rh-nodejs6-nodejs-bson (Red Hat Software Collections) - Will not fix
Package: rh-nodejs8-nodejs-bson (Red Hat Software Collections) - Fix deferred
Debian
CVE-2018-13863: node-mongodb - The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0...
vendor_debian·2018·CVSS 7.5
CVE-2018-13863 [HIGH] CVE-2018-13863: node-mongodb - The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0...
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regular Expression Denial of Service (ReDoS) in lib/bson/decimal128.js. The flaw is triggered when the Decimal128.fromString() function is called to parse a long untrusted string.
Scope: local
bookworm: resolved (fixed in 3.1.10+~3.1.9-1)
bullseye: resolved (fixed in 3.1.10+~3.1.9-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-13863 nodejs-bson: Regular expression denial of service in decimal128.js
bugzilla·2018-03-02·CVSS 7.5
CVE-2018-13863 [HIGH] CVE-2018-13863 nodejs-bson: Regular expression denial of service in decimal128.js
CVE-2018-13863 nodejs-bson: Regular expression denial of service in decimal128.js
nodejs-bson before version 1.0.5 is vulnerable to a Regular Expression Denial of Service (ReDos) in decimal128.js.
Upstream Commit:
https://github.com/mongodb/js-bson/commit/bd61c45157c53a1698ff23770160cf4783e9ea4a
Additional References:
https://snyk.io/vuln/npm:bson:20180225
Discussion:
Created nodejs-bson tracking bugs for this issue:
Affects: fedora-all [bug 1550774]
Affects: epel-all [bug 1550773]
---
The support for the Decimal128 data type was only introduce in bson module version 0.5.0. The problematic regular expression was introduced via the following commit:
https://github.com/mongodb/js-bson/commit/e14b4d081a2704b86b8c3407382e107f23ad0da6
Note that the nodejs-bson packages in Fedora a
Bugzilla
CVE-2018-13863 nodejs-bson: Regular expression denial of service in decimal128.js [epel-all]
bugzilla·2018-03-02·CVSS 7.5
CVE-2018-13863 [HIGH] CVE-2018-13863 nodejs-bson: Regular expression denial of service in decimal128.js [epel-all]
CVE-2018-13863 nodejs-bson: Regular expression denial of service in decimal128.js [epel-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 epel-all.
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 suppo
Bugzilla
CVE-2018-13863 nodejs-bson: Regular expression denial of service in decimal128.js [fedora-all]
bugzilla·2018-03-02·CVSS 7.5
CVE-2018-13863 [HIGH] CVE-2018-13863 nodejs-bson: Regular expression denial of service in decimal128.js [fedora-all]
CVE-2018-13863 nodejs-bson: Regular expression denial of service in decimal128.js [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-all.
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 s
2018-07-10
Published