CWE-1286: Improper Validation of Syntactic Correctness of Input
The product receives input that is expected to be well-formed - i.e., to comply with a certain syntax - but it does not validate or incorrectly validates that the input complies with the syntax.
Last updated
Overview
Often, complex inputs are expected to follow a particular syntax, which is either assumed by the input itself, or declared within metadata such as headers. The syntax could be for data exchange formats, markup languages, or even programming languages. When untrusted input is not properly validated for the expected syntax, attackers could cause parsing failures, trigger unexpected errors, or expose latent vulnerabilities that might not be directly exploitable if the input had conformed to the syntax.
Real-world CVEs
90 recorded CVEs are caused by CWE-1286 (Improper Validation of Syntactic Correctness of Input). The highest-severity and most recent are shown first. 41 new CWE-1286 CVEs have been recorded so far in 2026 (21 in 2025).
- CVE-2026-110759
Text::CSV_XS versions before 1.65 for Perl return a 0xFF byte that is not in the input for an empty last field followed by a lone CR in parse
Critical · CVSS 9.8 · EPSS 35th2026-10-16 - CVE-2026-102084
Junos OS: SRX Series: In an ADVPN scenario a malformed message from a peer causes Remote Code Execution
Critical · CVSS 9.2 · EPSS 44th2026-10-14 - CVE-2026-87080
Net::IDN::Punycode::PP versions before 2.590 for Perl decode a truncated label to a name containing a character it never encoded in decode_punycode
Critical · CVSS 9.1 · EPSS 34th2026-09-22 - CVE-2026-83728
Windows Hyper-V Spoofing Vulnerability
High · CVSS 8.8 · EPSS 23th2026-10-13 - CVE-2025-41719
Sauter: Improper Validation of user-controlled data
High · CVSS 8.8 · EPSS 46th2025-10-22 - CVE-2025-55085
Web http client: Unchecked Server-Side Malicious Packet Issue
High · CVSS 8.8 · EPSS 50th2025-10-17 - CVE-2021-31988High · CVSS 8.8 · EPSS 62th2021-10-05
- CVE-2021-28812
Command Injection Vulnerability in Video Station
High · CVSS 8.8 · EPSS 75th2021-06-03 - CVE-2026-123572
Hickory-dns 0.20.1 before 0.26.2 Panic DoS via SVCB/HTTPS Zone Parser
High · CVSS 8.7 · EPSS 28th2026-11-08 - CVE-2026-111107
Fireware OS NULL Pointer Dereference in Management Interface Allows Unauthenticated Denial of Service
High · CVSS 8.7 · EPSS 29th2026-10-27 - CVE-2026-57026
Junos OS: MX Series with SPC3, SRX Series: Processing of a specifically malformed SIP invite causes a flowd crash
High · CVSS 8.7 · EPSS 40th2026-07-09 - CVE-2025-8873
Arista EOS Dataplane Denial of Service via Malformed IPsec Packet
High · CVSS 8.7 · EPSS 33th2026-06-04
Showing 12 of 90 recorded CWE-1286 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsCommon consequences
What can happen when CWE-1286 is exploited.
Varies by Context
Affects: Other
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
How to prevent it
Practical mitigations for CWE-1286, grouped by where in the lifecycle they apply.
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, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
Effectiveness: High
Code examples
MITRE examples of the weakness in code.
The following code loads and parses an XML file.
Vulnerable example
// Read DOM
...
...The XML file is loaded without validating it against a known XML Schema or DTD.
Illustrative examples
Real CVEs that MITRE cites as examples of this weakness.
- CVE-2016-4029 — Chain: incorrect validation of intended decimal-based IP address format (CWE-1286) enables parsing of octal or hexadecimal formats (CWE-1389), allowing bypass of an SSRF protection mechanism (CWE-918).
- CVE-2007-5893 — HTTP request with missing protocol version number leads to crash
Attack patterns
CAPEC attack patterns that exploit this weakness.
Frequently asked questions
Common questions about CWE-1286.
- What is CWE-1286?
- The product receives input that is expected to be well-formed - i.e., to comply with a certain syntax - but it does not validate or incorrectly validates that the input complies with the syntax.
- What CVEs are caused by CWE-1286?
- 90 recorded CVEs are attributed to CWE-1286, including CVE-2026-110759, CVE-2026-102084 and CVE-2026-87080.
- How do you prevent CWE-1286?
- 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.
- What are the consequences of CWE-1286?
- Exploiting CWE-1286 can lead to: Varies by Context.
- Is CWE-1286 actively exploited?
- 90 recorded CVEs are caused by CWE-1286; none are currently in CISA's KEV catalog of actively exploited flaws.
References
- MITRE CWE definition (CWE-1286) (opens in a new tab)
- CWE-1286 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.20). CVE associations are aggregated and kept current by RadicalNotion.AI.
Track CWE-1286 CVEs
Get an alert when a new CWE-1286 CVE affects your products, with AI-written analysis and remediation steps.