{"id":"CVE-2021-39176","state":"PUBLISHED","title":"Missing Release of Memory after Effective Lifetime in detect-character-encoding","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.","publishedAt":"2021-08-31T18:05:12.000Z","updatedAt":"2024-08-04T01:58:18.257Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["sonicdoe detect-character-encoding"],"affected":[{"vendor":"sonicdoe","product":"detect-character-encoding","versions":[{"version":"< 0.3.1","status":"affected"}]}],"references":["https://github.com/sonicdoe/detect-character-encoding/security/advisories/GHSA-5rwj-j5m3-3chj","https://github.com/sonicdoe/detect-character-encoding/pull/6","https://github.com/sonicdoe/detect-character-encoding/commit/d44356927b92e3b13e178071bf6d7c671766f588","https://github.com/sonicdoe/detect-character-encoding/releases/tag/v0.3.1"],"weaknesses":["CWE-401"],"ingestedAt":"2026-10-29T19:48:52.666Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/39xxx/CVE-2021-39176.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-39176","state":"PUBLISHED","datePublished":"2021-08-31T18:05:12.000Z","dateUpdated":"2024-08-04T01:58:18.257Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2021-08-16T00:00:00.000Z"},"containers":{"cna":{"title":"Missing Release of Memory after Effective Lifetime in detect-character-encoding","descriptions":[{"lang":"en","value":"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":[{"vendor":"sonicdoe","product":"detect-character-encoding","versions":[{"version":"< 0.3.1","status":"affected"}]}],"references":[{"url":"https://github.com/sonicdoe/detect-character-encoding/security/advisories/GHSA-5rwj-j5m3-3chj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sonicdoe/detect-character-encoding/pull/6","tags":["x_refsource_MISC"]},{"url":"https://github.com/sonicdoe/detect-character-encoding/commit/d44356927b92e3b13e178071bf6d7c671766f588","tags":["x_refsource_MISC"]},{"url":"https://github.com/sonicdoe/detect-character-encoding/releases/tag/v0.3.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-401","description":"CWE-401: Missing Release of Memory after Effective Lifetime","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2021-08-31T18:05:12.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-5rwj-j5m3-3chj","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-39176","STATE":"PUBLIC","TITLE":"Missing Release of Memory after Effective Lifetime in detect-character-encoding"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"detect-character-encoding","version":{"version_data":[{"version_value":"< 0.3.1"}]}}]},"vendor_name":"sonicdoe"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-401: Missing Release of Memory after Effective Lifetime"}]}]},"references":{"reference_data":[{"name":"https://github.com/sonicdoe/detect-character-encoding/security/advisories/GHSA-5rwj-j5m3-3chj","refsource":"CONFIRM","url":"https://github.com/sonicdoe/detect-character-encoding/security/advisories/GHSA-5rwj-j5m3-3chj"},{"name":"https://github.com/sonicdoe/detect-character-encoding/pull/6","refsource":"MISC","url":"https://github.com/sonicdoe/detect-character-encoding/pull/6"},{"name":"https://github.com/sonicdoe/detect-character-encoding/commit/d44356927b92e3b13e178071bf6d7c671766f588","refsource":"MISC","url":"https://github.com/sonicdoe/detect-character-encoding/commit/d44356927b92e3b13e178071bf6d7c671766f588"},{"name":"https://github.com/sonicdoe/detect-character-encoding/releases/tag/v0.3.1","refsource":"MISC","url":"https://github.com/sonicdoe/detect-character-encoding/releases/tag/v0.3.1"}]},"source":{"advisory":"GHSA-5rwj-j5m3-3chj","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/sonicdoe/detect-character-encoding/security/advisories/GHSA-5rwj-j5m3-3chj","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/sonicdoe/detect-character-encoding/pull/6","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/sonicdoe/detect-character-encoding/commit/d44356927b92e3b13e178071bf6d7c671766f588","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/sonicdoe/detect-character-encoding/releases/tag/v0.3.1","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T01:58:18.257Z"}}]}}}