What’s Vulnerable › Vulnerabilities
CVE-2021-39176: Missing Release of Memory after Effective Lifetime in detect-character-encoding
- Severity: medium (CVSS 5.0 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-08-31 · updated 2026-06-17
- Weakness: CWE-401
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 products
- sonicdoe detect-character-encoding: before 0.3.1 — fixed in 0.3.1
How to fix
Upgrade to a fixed version: sonicdoe detect-character-encoding 0.3.1. Check the vendor advisory for mitigations.
References
- https://github.com/sonicdoe/detect-character-encoding/commit/d44356927b92e3b13e178071bf6d7c671766f588
- https://github.com/sonicdoe/detect-character-encoding/pull/6
- https://github.com/sonicdoe/detect-character-encoding/releases/tag/v0.3.1
- https://github.com/sonicdoe/detect-character-encoding/security/advisories/GHSA-5rwj-j5m3-3chj
- https://github.com/sonicdoe/detect-character-encoding/commit/d44356927b92e3b13e178071bf6d7c671766f588
- https://github.com/sonicdoe/detect-character-encoding/pull/6
- https://github.com/sonicdoe/detect-character-encoding/releases/tag/v0.3.1
- https://github.com/sonicdoe/detect-character-encoding/security/advisories/GHSA-5rwj-j5m3-3chj
Get alerted when CVE-2021-39176 or the next vulnerability affects your stack