Vulnerability · Published Aug 31, 2021 · Assigned by GitHub_M
CVE-2021-39176Missing Release of Memory after Effective Lifetime in detect-character-encoding
High 7.5
In plain English
A high-severity memory leak in detect-character-encoding from sonicdoe. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.9%top 20.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
detect-character-encoding is a package for detecting character encoding using ICU. In detect-character-encoding v0.3.0 and earlier, allocated memory is not released. The problem has been patched in detect-character-encoding v0.3.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | detect-character-encoding | 0.3.1 | GHSA-5rwj-j5m3-3chj |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| sonicdoe | detect-character-encoding | < 0.3.1 |
Weakness: CWE-401 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/sonicdoe/detect-character-encoding/security/advisories/GHSA-5rwj-j5m3-3chj x_refsource_CONFIRM
- https://github.com/sonicdoe/detect-character-encoding/pull/6 x_refsource_MISC
- https://github.com/sonicdoe/detect-character-encoding/commit/d44356927b92e3b13e178071bf6d7c671766f588 x_refsource_MISC
- https://github.com/sonicdoe/detect-character-encoding/releases/tag/v0.3.1 x_refsource_MISC