cve/2021/CVE-2021-39131.md
2025-09-29 21:09:30 +02:00

18 lines
882 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### [CVE-2021-39131](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-39131)
![](https://img.shields.io/static/v1?label=Product&message=ced&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3C%201.0.0%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-241%3A%20Improper%20Handling%20of%20Unexpected%20Data%20Type&color=brightgreen)
### Description
ced detects character encoding using Googles 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 its a `Buffer` using `Buffer.isBuffer(obj)`.
### POC
#### Reference
- https://github.com/sonicdoe/ced/security/advisories/GHSA-27wq-qx3q-fxm9
#### Github
No PoCs found on GitHub currently.