Skip to content
OpenAdvisories

Weakness (CWE)

CWE-226: Sensitive Information in Resource Not Removed Before Reuse

Base Draft

The product releases a resource such as memory or a file so that it can be made available for reuse, but it does not clear or "zeroize" the information contained in the resource before the product performs a critical state transition or makes the resource available for reuse by other entities.

More detail

When resources are released, they can be made available for reuse. For example, after memory is de-allocated, an operating system may make the memory available to another process, or disk space may be reallocated when a file is deleted. Since removing information requires time and additional resources, operating systems do not usually clear the previously written information.

Even when the resource is reused by the same process, this weakness can arise when new data is not as large as the old data, which leaves portions of the old data still available. Equivalent errors can occur in other situations where the length of data is variable but the associated data structure is not. If memory is not cleared after use, the information may be read by less trustworthy parties when the memory is reallocated.

This weakness can apply in hardware, such as when a device or system switches between power, sleep, or debug states during normal operation, or when execution changes to different users or privilege levels.

How to prevent it (3 mitigations)
  1. Architecture and Design, Implementation

    During critical state transitions, information not needed in the next state should be removed or overwritten with fixed patterns (such as all 0's) or random data, before the transition to the next state.

  2. Architecture and Design, Implementation

    When releasing, de-allocating, or deleting a resource, overwrite its data and relevant metadata with fixed patterns or random data. Be cautious about complex resource types whose underlying representation might be non-contiguous or change at a low level, such as how a file might be split into different chunks on a file system, even though "logical" file positions are contiguous at the application layer. Such resource types might require invocation of special modes or APIs to tell the underlying operating system to perform the necessary clearing, such as SDelete (Secure Delete) on Windows, although the appropriate functionality might not be available at the application layer.

  3. Implementation

    Be careful using vfork() and fork() in security sensitive code. The process state will not be cleaned up and will contain traces of data from past use.

Source: MITRE CWE-226

44 results · Feed

  • Medium 6.8

    Sensitive information uncleared in resource before release for reuse in the MigTD for the Intel(R) TDX Migration Trust …

  • Low 2.3

    Information disclosure vulnerability in authentication handling of QWebSocket impacts Qt Framework

    An information disclosure vulnerability in the Qt Framework QWebSocket authentication handling of the Qt WebSockets module.

  • High 7.0

    MongoDB Node.js driver: Connection pool desynchronization after operation timeout can expose other user's data

    A flaw in the connection management layer of the MongoDB Node.js driver can leave a pooled network connection in the pool for reuse while data from an earlier operation is still outstanding on it. In applications that enable an optional client-side operation …

  • Medium 6.3

    Pillow: Arrow export leaks stale heap memory when PILLOW_ALIGNMENT > 1

    Pillow is a Python imaging library. From 11.2.1 until 13.0.0, Arrow export assumes that an image's rows are tightly contiguous and exports from im->blocks[0].ptr even when PILLOW_ALIGNMENT makes aligned_linesize include row padding or an aligned offset before…

  • Medium 5.3

    pgjdbc pads a value shorter than its declared length with bytes of earlier statements (rather than zeros)

    pgjdbc, the PostgreSQL JDBC Driver, versions 42.7.4 through 42.7.13 pads a value that is shorter than its declared length with bytes left in its send buffer instead of zeros, and the server stores those bytes as part of the value. The bytes are messages the d…

  • Medium 5.9

    ImageSharp: EXR ZIP decoder can expose stale allocator data after a short inflate

    ImageSharp is a 2D graphics library. From 4.0.0 until 4.1.2, ExrBaseDecompressor.UndoZipCompression accepts a nonempty ZIP or ZIPS inflate result that is shorter than the EXR block's required size. ZipExrCompression.Decompress reconstructs the returned prefix…

  • High 7.5

    devalue: Cross-request process memory disclosure in devalue when `stringify` / `uneval` serialize Node Buffers

    Svelte devalue is a JavaScript library that serializes values into strings when JSON.stringify isn't sufficient for the job. In versions 5.1.0 through 5.9.2, stringify and uneval functions serialize a typed array by emitting its entire backing ArrayBuffer rat…

  • Medium 5.7

    Sensitive Information in Resource Not Removed Before Reuse in ASUS Armoury Crate driver allows a local user to disclose…

  • High 8.6

    Scriban before 7.0.0 Authorization Bypass via Stale Include Cache

    Scriban before 7.0.0 fails to clear the CachedTemplates dictionary when TemplateContext.Reset() is called, allowing cached templates to persist across reused contexts. Attackers can exploit request-dependent ITemplateLoader implementations to access previousl…

  • Medium 6.3

    In OpenStack Ironic before 38.0.1, the autodetect deploy interface may fail to run cleaning immediately after enrollmen…

  • High 7.5

    libheif Vulnerable to Heap Information Disclosure via Grid Image Gap + Uninitialized Pixel Plane Allocation

    libheif is a HEIF and AVIF file format decoder and encoder. Prior to version 1.22.0, two bugs in libheif chain to leak process heap memory as visible pixel values in decoded grid images. An attacker who uploads a crafted AVIF/HEIC file to any server-side imag…

  • High 8.2
    CVE-2026-13585 Public exploit

    Allocation of Resources Without Limits and Throttling and Sensitive Information in Resource Not Removed Before Reuse in…

  • Medium 4.7

    pam_usb: xfree() does not call explicit_bzero — sensitive cryptographic material may linger in freed heap

    pam_usb provides hardware authentication for Linux using ordinary removable media. In versions 0.9.1 and below, the xfree() memory release helper in calls free() without first zeroing the buffer contents, releasing heap-allocated buffers containing sensitive …

  • Medium 6.5

    SD-330AC and AMC Manager provided by silex technology, Inc. contain an issue with a sensitive information in resource n…

  • High 8.1

    OpenClaw < 2026.3.25 - Improper Access Control in /sessions/:sessionKey/kill Endpoint

    OpenClaw before 2026.3.25 contains an improper access control vulnerability in the HTTP /sessions/:sessionKey/kill route that allows any bearer-authenticated user to invoke admin-level session termination functions without proper scope validation. Attackers c…

  • High 7.4

    Eclipse Jetty: Early return from the JASPIAuthenticator code can potentially no clear ThreadLocal variables

    In Eclipse Jetty, the class JASPIAuthenticator initiates the authentication checks, which set two ThreadLocal variable. Upon returning from the initial checks, there are conditions that cause an early return from the JASPIAuthenticator code without clearing t…

  • Medium 5.1

    Semtech LR11xx Encrypted Firmware Disclosure

    The Semtech LR11xx LoRa transceivers running early versions of firmware contains an information disclosure vulnerability in its firmware validation functionality. When a host issues a firmware validity check command via the SPI interface, the device decrypts …

  • Medium 5.5

    AnyBurn 4.3 x86 Denial of Service via Image Conversion

    AnyBurn 4.3 x86 contains a denial of service vulnerability that allows local attackers to crash the application by supplying an excessively long string to the image conversion function. Attackers can paste a large buffer into the source or destination image f…

  • Medium 6.2

    WinAVI iPod 3GP MP4 PSP Converter 4.4.2 Denial of Service

    WinAVI iPod/3GP/MP4/PSP Converter 4.4.2 contains a denial of service vulnerability that allows local attackers to crash the application by processing malformed AVI files. Attackers can create a specially crafted AVI file with an oversized buffer and load it t…

  • Medium 6.2

    Ease Audio Converter 5.30 Denial of Service via Audio Cutter

    Ease Audio Converter 5.30 contains a denial of service vulnerability in the Audio Cutter function that allows local attackers to crash the application by processing malformed MP4 files. Attackers can create a crafted MP4 file containing an oversized buffer an…

  • Medium 6.2

    MediaMonkey 4.1.23 Denial of Service via Malformed URL

    MediaMonkey 4.1.23 contains a denial of service vulnerability that allows local attackers to crash the application by opening a specially crafted MP3 file containing an excessively long URL string. Attackers can create a malicious MP3 file with a buffer conta…

  • Medium 6.2

    PCHelpWareV2 1.0.0.5 Denial of Service via SC Creation

    PCHelpWareV2 1.0.0.5 contains a denial of service vulnerability that allows local attackers to crash the application by supplying a malformed image file. Attackers can trigger the vulnerability through the Create SC feature by selecting a crafted BMP file wit…

  • High 7.5

    Lyric Video Creator 2.1 Denial of Service via MP3 File

    Lyric Video Creator 2.1 contains a denial of service vulnerability that allows attackers to crash the application by processing malformed MP3 files. Attackers can create a crafted MP3 file with an oversized buffer and trigger the crash by opening the file thr…

  • Medium 6.2

    CEWE PHOTO IMPORTER 6.4.3 Denial of Service via Malformed Image

    CEWE PHOTO IMPORTER 6.4.3 contains a denial of service vulnerability that allows local attackers to crash the application by importing a specially crafted image file. Attackers can create a malformed JPG file with an oversized buffer and trigger the crash thr…

  • Medium 5.5

    Fixes to common vulnerabilities found in IBM Db2 Merge Backup for Linux, UNIX and Windows

    IBM DB2 Merge Backup for Linux, UNIX and Windows 12.1.0.0 could allow an attacker to access sensitive information in memory due to the buffer not properly clearing resources.

  • High 7.9

    In certain Arm CPUs, a CPP RCTX instruction executed on one Processing Element (PE) may inhibit TLB invalidation when a…

  • Low 2.3

    NVIDIA DGX Spark GB10 contains a vulnerability in SROOT firmware, where an attacker could cause a resource to be reused…

  • Low 3.3

    NVIDIA DGX Spark GB10 contains a vulnerability in SROOT firmware, where an attacker could cause a resource to be reused…

  • Medium 4.4

    NVIDIA DGX Spark GB10 contains a vulnerability in SROOT firmware, where an attacker could cause a resource to be reused…

  • Low 3.8

    Sensitive information uncleared in resource before release for reuse for some Intel(R) NPU Drivers for Windows before v…

  • Medium 6.3

    Untargeted information leak in Bolt protocol handshake

    Potential information leak in bolt protocol handshake in Neo4j Enterprise and Community editions allows attacker to obtain one byte of information from previous connections. The attacker has no control over the information leaked in server responses.

  • Medium 6.5

    Lack of buffer clearing before reuse may result in incorrect system behavior.

    The Honeywell Experion PKS and OneWireless WDM contains Sensitive Information in Resource vulnerability in the component Control Data Access (CDA). An attacker could potentially exploit this vulnerability, leading to a Communication Channel Manipulation, whic…

  • Medium 6.0

    wire-webapp has no database deletion on client logout

    wire-webapp is the web application for the open-source messaging service Wire. A bug fix caused a regression causing an issue with function to delete local data. Instructing the client to delete its local database on user logout does not result in deletion. T…

  • Medium 6.0

    Sensitive information in resource not removed before reuse in some Intel(R) TDX Seamldr module software before version …

  • Low 3.7

    CMSE secure state may leak from stack to floating-point registers

    When using Arm Cortex-M Security Extensions (CMSE), Secure stack contents can be leaked to Non-secure state via floating-point registers when a Secure to Non-secure function call is made that returns a floating-point value and when this is the first use of fl…

  • High 7.5

    moodle: HTTP authorization header is preserved between "emulated redirects"

    The cURL wrapper in Moodle retained the original request headers when following redirects, so HTTP authorization header information could be unintentionally sent in requests to redirect URLs.

  • Medium 5.3

    SixLabors.ImageSharp vulnerable to data leakage

    ImageSharp is a 2D graphics API. A data leakage flaw was found in ImageSharp's JPEG and TGA decoders. This vulnerability is triggered when an attacker passes a specially crafted JPEG or TGA image file to a software using ImageSharp, potentially disclosing sen…

  • High 7.5

    The AppsAnywhere macOS client-privileged helper can be tricked into executing arbitrary commands with elevated permissi…

  • Medium 5.5

    A known cache speculation vulnerability, known as Branch History Injection (BHI) or Spectre-BHB, becomes actual again f…

  • Medium 5.5

    A flaw that boot CPU could be vulnerable for the speculative execution behavior kind of attacks in the Linux kernel X86…