Skip to content
OpenAdvisories

Weakness (CWE)

CWE-494: Download of Code Without Integrity Check

Base Draft

The product downloads source code or an executable from a remote location and executes the code without sufficiently verifying the origin and integrity of the code.

How to prevent it (5 mitigations)
  1. Implementation

    Perform proper forward and reverse DNS lookups to detect DNS spoofing.

  2. Architecture and Design, Operation

    Encrypt the code with a reliable encryption scheme before transmitting.

  3. Architecture and Design

    Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482].

    Speficially, it may be helpful to use tools or frameworks to perform integrity checking on the transmitted code.

    - When providing the code that is to be downloaded, such as for automatic updates of the software, then use cryptographic signatures for the code and modify the download clients to verify the signatures. Ensure that the implementation does not contain CWE-295, CWE-320, CWE-347, and related weaknesses.

    - Use code signing technologies such as Authenticode. See references [REF-454] [REF-455] [REF-456].

  4. Architecture and Design, Operation

    Run your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database administrator, especially in day-to-day operations.

  5. Architecture and Design, Operation

    Run the code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict which files can be accessed in a particular directory or which commands can be executed by the software.

    OS-level examples include the Unix chroot jail, AppArmor, and SELinux. In general, managed code may provide some protection. For example, java.io.FilePermission in the Java SecurityManager allows the software to specify restrictions on file operations.

    This may not be a feasible solution, and it only limits the impact to the operating system; the rest of the application may still be subject to compromise.

    Be careful to avoid CWE-243 and other weaknesses related to jails.

Source: MITRE CWE-494

4 results · Clear filters · Feed

  • High 7.8
    CVE-2026-3502 Exploited Public exploit

    TrueConf Client Update Integrity Verification Bypass

    TrueConf Client downloads application update code and applies it without performing verification. An attacker who is able to influence the update delivery path can substitute a tampered update payload. If the payload is executed or installed by the updater, t…

    KEV Apr 2, 2026
  • High 7.7
    CVE-2025-15556 Exploited Public exploit

    Notepad++ < 8.8.9 WinGUp Updater Lacks Update Integrity Verification

    Notepad++ versions prior to 8.8.9, when using the WinGUp updater, contain an update integrity verification vulnerability where downloaded update metadata and installers are not cryptographically verified. An attacker able to intercept or redirect update traff…

    KEV Feb 12, 2026
  • High 8.8
    CVE-2022-40799 Exploited EPSS 34%

    Data Integrity Failure in 'Backup Config' in D-Link DNR-322L <= 2.60B15 allows an authenticated attacker to execute OS …

    KEV Aug 5, 2025
  • Low 3.3
    CVE-2021-44168 Exploited Public exploit

    A download of code without integrity check vulnerability in the "execute restore src-vis" command of FortiOS before 7.0…

    KEV Dec 10, 2021