CWE-96: Improper Neutralization of Directives in Statically Saved Code
28 CVEs have CWE-96 as their primary weakness. 1 of them are in the CISA KEV catalog. The highest EPSS score among them is 26.436%.
The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before inserting the input into an executable resource, such as a library, configuration file, or template.
Child of CWE-94: Improper Control of Generation of Code
OWASP Top 10: A03:2021 Injection · A05:2025 Injection
Mitigations
- Implementation: Assume all input is malicious. Use an accept known good input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, boat may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as red or blue. Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However,…
- Implementation: Perform proper output validation and escaping to neutralize all code syntax from data written to code files.
Observed examples
- CVE-2002-0495: Perl code directly injected into CGI library file from parameters to another CGI program.
- CVE-2005-1876: Direct PHP code injection into supporting template file.
- CVE-2005-1894: Direct code injection into PHP script that can be accessed by attacker.
- CVE-2003-0395: PHP code from User-Agent HTTP header directly inserted into log file implemented as PHP script.
- CVE-2007-6652: Chain: execution after redirect allows non-administrator to perform static code injection.
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2026-86218 | 2026-09-06 | CRITICAL | 9.8 | 15.385% | N-central is vulnerable to a pre-auth remote code execution This issue affects N-central: before 2026.3.1.14. |
| CVE-2026-132748 | 2026-11-18 | HIGH | 7.2 | not scored | Vtiger CRM through 8.4.0 contains a PHP code injection vulnerability that allows authenticated administrators to inject code via the updatedFields parameter… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-96'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-96'
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.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- 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).