cve/2021/CVE-2021-39131.md

18 lines
865 B
Markdown
Raw Normal View History

2024-05-25 21:48:12 +02:00
### [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=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-241%3A%20Improper%20Handling%20of%20Unexpected%20Data%20Type&color=brighgreen)
### 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.