CWE-494: Download of Code Without Integrity Check
231 CVEs have CWE-494 as their primary weakness. 4 of them are in the CISA KEV catalog. The highest EPSS score among them is 33.650%.
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.
Child of CWE-345: Insufficient Verification of Data Authenticity
Mitigations
- Implementation: Perform proper forward and reverse DNS lookups to detect DNS spoofing.
- Architecture and Design Operation: Encrypt the code with a reliable encryption scheme before transmitting.
- 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].
- 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.
- 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.
Observed examples
- CVE-2019-9534: Satellite phone does not validate its firmware image.
- CVE-2021-22909: Chain: router's firmware update procedure uses curl with -k (insecure) option that disables certificate validation (CWE-295), allowing adversary-in-the-middle (AITM) compromise with a malicious firmware image (CWE-494).
- CVE-2008-3438: OS does not verify authenticity of its own updates.
- CVE-2008-3324: online poker client does not verify authenticity of its own updates.
- CVE-2001-1125: anti-virus product does not verify automatic updates for itself.
- CVE-2002-0671: VOIP phone downloads applications from web sites without verifying integrity.
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2022-40799 | 2022-11-29 | HIGH | 8.8 | 33.650% | Data Integrity Failure in 'Backup Config' in D-Link DNR-322L <= 2.60B15 allows an authenticated attacker to execute OS level commands on the device. |
| CVE-2026-3502 | 2026-03-30 | HIGH | 7.8 | 5.845% | TrueConf Client downloads application update code and applies it without performing verification. An attacker who is able to influence the update delivery path… |
| CVE-2025-15556 | 2026-02-03 | HIGH | 7.5 | 1.746% | Notepad++ versions prior to 8.8.9, when using the WinGUp updater, contain an update integrity verification vulnerability where downloaded update metadata and… |
| CVE-2021-44168 | 2022-01-04 | LOW | 3.3 | 0.906% | A download of code without integrity check vulnerability in the "execute restore src-vis" command of FortiOS before 7.0.3 may allow a local authenticated… |
| CVE-2026-118789 | 2026-11-17 | HIGH | 8.1 | not scored | Farmasimplex retrieves a CIP News file over HTTP and executes embedded SQL statements against the local FarmaCIP database with administrative privileges. An… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-494'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-494'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).