Skip to content
OpenAdvisories

Weakness (CWE)

CWE-665: Improper Initialization

Class Draft Mapping discouraged

The product does not initialize or incorrectly initializes a resource.

How to prevent it (6 mitigations)
  1. Requirements

    Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.

    For example, in Java, if the programmer does not explicitly initialize a variable, then the code could produce a compile-time error (if the variable is local) or automatically initialize the variable to the default value for the variable's type. In Perl, if explicit initialization is not performed, then a default value of undef is assigned, which is interpreted as 0, false, or an equivalent value depending on the context in which the variable is accessed.

  2. Architecture and Design

    Identify all variables and data stores that receive information from external sources, and apply input validation to make sure that they are only initialized to expected values.

  3. Implementation

    Explicitly initialize all your variables and other data stores, either during declaration or just before the first usage.

  4. Implementation

    Pay close attention to complex conditionals that affect initialization, since some conditions might not perform the initialization.

  5. Implementation

    Avoid race conditions (CWE-362) during initialization routines.

  6. Build and Compilation

    Run or compile your product with settings that generate warnings about uninitialized variables or data.

Source: MITRE CWE-665

13 results · Clear filters · Feed

  • Critical 9.8

    A memory initialization issue was addressed with improved memory handling. This issue is fixed in iOS 26.6 and iPadOS 2…

  • Critical 9.8

    igc: set tx buffer type for SMD frames

    In the Linux kernel, the following vulnerability has been resolved: igc: set tx buffer type for SMD frames Sashiko pointed out that igc_fpe_init_smd_frame() initializes igc_tx_buffer fields for an SMD skb, but does not set the buffer type: https://sashiko.dev…

  • Critical 9.8

    NFSD: Fix SECINFO_NO_NAME decode error cleanup

    In the Linux kernel, the following vulnerability has been resolved: NFSD: Fix SECINFO_NO_NAME decode error cleanup nfsd4_decode_secinfo_no_name() currently initializes sin_exp after decoding sin_style. If the XDR stream is truncated, the decoder returns nfser…

  • Critical 9.2

    Improper Initialization of `imc` Scheme Leading to `SIGABRT` in ION-DTN BPv7

    The NASA’s Interplanetary Overlay Network (ION) is an implementation of Delay/Disruption Tolerant Networking (DTN). A vulnerability exists in the version ION-DTN BPv7 implementation version 4.1.3 when receiving a bundle with an improper reference to the imc s…

  • Critical 9.4

    Symantec Privileged Access Manager Remote Command Execution vulnerability

    An improper input validation allows an unauthenticated attacker to achieve remote command execution on the affected PAM system by sending a specially crafted HTTP request.

  • Critical 9.8

    Apache CloudStack: Integration API service uses dynamic port when disabled

    The CloudStack integration API service allows running its unauthenticated API server (usually on port 8096 when configured and enabled via integration.api.port global setting) for internal portal integrations and for testing purposes. By default, the integrat…

  • Critical 9.8

    Pull malicious images may cause process to be hijacked

    When malicious images are pulled by isula pull, attackers can execute arbitrary code.

  • Critical 9.4
    CVE-2022-46164 Public exploit EPSS 47%

    Account takeover via prototype vulnerability

    NodeBB is an open source Node.js based forum software. Due to a plain object with a prototype being used in socket.io message handling a specially crafted payload can be used to impersonate other users and takeover accounts. This vulnerability has been patche…

  • Critical 9.0

    Arctic Wireless Gateway Firewall vulnerability

    A vulnerability in ABB ARG600 Wireless Gateway series that could allow an attacker to exploit the vulnerability by remotely connecting to the serial port gateway, and/or protocol converter, depending on the configuration.

  • Critical 9.8

    UUPSUpgradeable vulnerability in OpenZeppelin Contracts

    OpenZeppelin Contracts is a library for smart contract development. In affected versions upgradeable contracts using `UUPSUpgradeable` may be vulnerable to an attack affecting uninitialized implementation contracts. A fix is included in version 4.3.2 of `@ope…

  • Critical 9.8

    Use of Uninitialized Resource in alg_ds

    An issue was discovered in the alg_ds crate through 2020-08-25 for Rust. There is a drop of uninitialized memory in Matrix::new().

  • Critical 9.8

    Resource Exhaustion Denial of Service in http-proxy-agent

    A flaw was found in http-proxy-agent, prior to version 2.1.0. It was discovered http-proxy-agent passes an auth option to the Buffer constructor without proper sanitization. This could result in a Denial of Service through the usage of all available CPU resou…

  • Critical 9.8
    CVE-2019-14271 Public exploit EPSS 19%

    Moby Docker cp broken with debian containers

    In Docker 19.03.x before 19.03.1 linked against the GNU C Library (aka glibc), code injection can occur when the nsswitch facility dynamically loads a library inside a chroot that contains the contents of the container.