CVE-2021-39131
Improper Handling of Unexpected Data Type in ced
- State
- Published
- Severity
- 7.5 High
- Published
- Aug 17, 2021
- Updated
- Aug 4, 2024
- Reserved
- Aug 16, 2021
Description
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)`.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
Weaknesses
- CWE-241 Improper Handling of Unexpected Data Type
Affected Products
| Product | Versions |
|---|---|
cedsonicdoe |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.