CWE-228: Improper Handling of Syntactically Invalid Structure
The product does not handle or incorrectly handles input that is not syntactically well-formed with respect to the associated specification.
Last updated
The product does not handle or incorrectly handles input that is not syntactically well-formed with respect to the associated specification.
Last updated
25 recorded CVEs are caused by CWE-228 (Improper Handling of Syntactically Invalid Structure). The highest-severity and most recent are shown first. 9 new CWE-228 CVEs have been recorded so far in 2026 (6 in 2025).
Eclipse CycloneDDS Improper Handling of Syntactically Invalid Structure
Authentication Bypass in dex
Cisco IOS Software and IOS XE Software Release 3E HTTP Server Denial of Service Vulnerability
Firebird: DoS via `op_response` packet from client
ParsePKCS1PrivateKey panic with partial keys in crypto/x509
CVE-2025-0343: Swift ASN.1 can crash when parsing maliciously formed BER/DER
Adversarial unsanitized input may cause MongoDB Rust Driver to issue unintended commands.
Junos OS Evolved: Specific TCP traffic causes OFP core and restart of RE
dovecot: Mishandling invalid UTF-8 characters by JSON encoder leading to possible DoS attack.
Showing 12 of 25 recorded CWE-228 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsWhat can happen when CWE-228 is exploited.
Unexpected State, DoS: Crash, Exit, or Restart, DoS: Resource Consumption (CPU)
Affects: Integrity, Availability
If an input is syntactically invalid, then processing the input could place the system in an unexpected state that could lead to a crash, consume available system resources or other unintended behaviors.
Typically introduced during these phases of the software lifecycle.
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Effectiveness: High
MITRE examples of the weakness in code.
This Android application has registered to handle a URL when sent an intent:
Vulnerable example
...
IntentFilter filter = new IntentFilter("com.example.URLHandler.openURL");
MyReceiver receiver = new MyReceiver();
registerReceiver(receiver, filter);
...
public class UrlHandlerReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if("com.example.URLHandler.openURL".equals(intent.getAction())) {
String URL = intent.getStringExtra("URLToOpen");
int length = URL.length();
...
}
}
}The application assumes the URL will always be included in the intent. When the URL is not present, the call to getStringExtra() will return null, thus causing a null pointer exception when length() is called.
Real CVEs that MITRE cites as examples of this weakness.
Common questions about CWE-228.
Weakness data is sourced from the MITRE CWE catalog (v4.21). CVE associations are aggregated and kept current by RadicalNotion.AI.
Get an alert when a new CWE-228 CVE affects your products, with AI-written analysis and remediation steps.