Vulnerability Details : CVE-2021-39131
Potential exploit
ced detects character encoding using Google’s compact_enc_det library. In ced v0.1.0, passing data types other than `Buffer` causes the Node.js process to crash. The problem has been patched in ced v1.0.0. As a workaround, before passing an argument to ced, verify it’s a `Buffer` using `Buffer.isBuffer(obj)`.
Products affected by CVE-2021-39131
- cpe:2.3:a:ced_project:ced:0.1.0:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-39131
0.41%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 59 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-39131
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:N/I:N/A:P |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
3.9
|
3.6
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
3.9
|
3.6
|
GitHub, Inc. |
CWE ids for CVE-2021-39131
-
The product does not handle or incorrectly handles when a particular element is not the expected type, e.g. it expects a digit (0-9) but is provided with a letter (A-Z).Assigned by: security-advisories@github.com (Secondary)
-
The product does not handle or incorrectly handles an exceptional condition.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-39131
-
https://github.com/sonicdoe/ced/security/advisories/GHSA-27wq-qx3q-fxm9
Improper Handling of Unexpected Data Type in ced · Advisory · sonicdoe/ced · GitHubExploit;Patch;Third Party Advisory
-
https://github.com/sonicdoe/ced/commit/a4d9f10b6bf1cd468d1a5b9a283cdf437f8bb7b3
Throw TypeError if argument is not a buffer · sonicdoe/ced@a4d9f10 · GitHubPatch;Third Party Advisory
-
https://github.com/sonicdoe/ced/releases/tag/v1.0.0
Release v1.0.0 · sonicdoe/ced · GitHubRelease Notes;Third Party Advisory
Jump to