Cyber Posture

CWE · MITRE source

CWE-244Improper Clearing of Heap Memory Before Release ('Heap Inspection')

Abstraction: Variant · CVEs in our corpus: 19

Using realloc() to resize buffers that store sensitive information can leave the sensitive information exposed to attack, because it is not removed from memory.

When sensitive data such as a password or an encryption key is not removed from memory, it could be exposed to an attacker using a "heap inspection" attack that reads the sensitive data using memory dumps or other methods. The realloc() function is commonly used to increase the size of a block of allocated memory. This operation often requires copying the contents of the old memory block into a new and larger block. This operation leaves the contents of the original block intact but inaccessible to the program, preventing the program from being able to scrub sensitive data from memory. If an attacker can later examine the contents of a memory dump, the sensitive data could be exposed.

Last updated: 09 May 2026 03:25 UTC

NIST 800-53 r5 controls that address this weakness (2)AI

Control Title Family Why it addresses this CWE
SC-4Information in Shared System ResourcesSCForces clearing of heap memory contents prior to release, preventing subsequent processes from inspecting prior sensitive data.
SI-12Information Management and RetentionSIInformation management requirements drive clearing of sensitive contents from memory prior to release or reuse.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2025-263041.78.20.00352025-02-20
CVE-2025-263051.78.20.00322025-02-20
CVE-2026-200391.78.60.00082026-03-04
CVE-2025-51051.57.30.00342025-05-23
CVE-2025-361181.57.50.00042025-11-17
CVE-2025-708731.57.50.00052026-03-12
CVE-2025-456631.36.50.00072025-11-03
CVE-2022-209221.25.80.00292022-11-15
CVE-2022-209431.25.80.00282022-11-15
CVE-2025-330131.26.20.00022025-07-24
CVE-2025-17591.25.90.00052025-08-18
CVE-2025-360831.26.20.00012025-10-28
CVE-2025-17211.25.90.00072025-12-26
CVE-2025-17191.25.90.00062026-01-20
CVE-2025-17221.25.90.00062026-01-20
CVE-2025-331011.25.90.00042026-02-17
CVE-2023-201770.84.00.00012023-11-01
CVE-2023-200310.84.00.00022023-11-01
CVE-2023-200700.84.00.00242023-11-01