CVE-2026-135253 in MISP
Summary
by MITRE • 11/23/2026
MISP's NIDS rule export functionality for Snort and Suricata formats does not properly escape user-controlled data before embedding it into generated rule text. Attribute values, tag names, and URL paths are inserted directly into rule options (msg, metadata, content matches) without neutralizing characters that are syntactically significant in the NIDS rule grammar, such as double quotes, semicolons, backslashes, commas, and control characters.
An authenticated user with the ability to create or modify attributes in a MISP instance can craft attribute values or tag names containing these special characters. When the NIDS rules are exported, the unescaped data breaks out of the intended option or content field, allowing injection of arbitrary rule options, corruption of rule structure, or generation of syntactically invalid rules that may cause the downstream NIDS engine to reject the entire ruleset.
The affected export paths include: - Snort and Suricata msg: option (quotes, semicolons, backslashes, control characters) - Suricata metadata: option (commas, semicolons, quotes, whitespace, control characters) - Suricata http.uri content: match for URL path (quotes, semicolons, pipe characters)
Security impact is limited to the integrity and availability of the exported NIDS rules and the downstream NIDS engine that consumes them. There is no direct compromise of the MISP application itself.
Affected: MISP versions prior to 2.5.52.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/23/2026
The vulnerability identified in MISP instances prior to version 2.5.52 represents a significant injection flaw within the Network Intrusion Detection System rule export functionality, specifically affecting Snort and Suricata format generation. This issue stems from an improper neutralization of user-controlled data before it is embedded into generated rule text. When authenticated users with permissions to create or modify attributes provide input values for attribute fields, tag names, or URL paths, the system fails to escape characters that hold syntactic significance in NIDS grammar rules. These critical unescaped characters include double quotes, semicolons, backslashes, commas, and various control characters. The core technical flaw lies in the direct insertion of these raw inputs into rule options such as msg metadata fields and http.uri content matches without any sanitization or encoding process to neutralize their special meaning within the target syntax.
From a structural perspective, this lack of input validation allows an attacker to break out of the intended field boundaries defined by the NIDS engine parsers. By injecting syntactically significant characters like semicolons or quotes into attribute values, an authenticated user can effectively alter the structure of the generated rule file. This capability enables the injection of arbitrary rule options that were not originally intended by the administrator. For instance, inserting a semicolon in a msg field might allow the attacker to append additional keywords or actions to the rule definition, while injecting quotes could prematurely terminate string literals and expose subsequent fields to manipulation. The affected export paths specifically include the Snort and Suricata msg option where quotes, semicolons, backslashes, and control characters are problematic; the Suricata metadata option which is vulnerable to commas, semicolons, quotes, whitespace, and control characters; and the Suricata http.uri content match for URL paths which is susceptible to quotes, semicolons, and pipe characters.
The operational impact of this vulnerability centers on the integrity and availability of the exported NIDS rulesets rather than a direct compromise of the MISP application itself. If an attacker successfully injects malformed syntax or arbitrary options into the rule file, it can lead to the generation of syntactically invalid rules. When these corrupted rules are deployed to downstream NIDS engines such as Snort or Suricata, the parsers may fail to process them correctly. In many cases, a single parsing error caused by injected special characters can cause the entire ruleset to be rejected by the engine due to strict syntax validation mechanisms. This results in a denial of service for network monitoring capabilities, leaving the protected infrastructure blind to potential threats until the issue is resolved and valid rules are re-exported. Furthermore, if the injection allows for arbitrary rule options, it could potentially alter detection logic or create false positives that disrupt normal security operations.
This vulnerability aligns with CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component, as the system fails to neutralize special elements before passing them to another component (the NIDS engine). It also relates to CWE-20 Improper Input Validation because the application does not adequately validate or sanitize user-supplied data prior to its use. In terms of MITRE ATT&CK framework mapping, this behavior is consistent with T1564.003 Hidden Files and Directories if used for evasion, but more accurately reflects techniques related to Command Injection or Scripting Interpreter Execution depending on how the NIDS engine interprets the injected content, falling under categories like Defense Evasion through rule manipulation. The attack vector requires authentication and specific permissions within MISP, limiting it to insider threats or compromised accounts rather than external unauthenticated attackers.
Mitigation strategies must focus primarily on upgrading the MISP instance to version 2.5.52 or later where this issue has been addressed by implementing proper escaping mechanisms for all user-controlled data before embedding it into NIDS rule structures. Administrators should ensure that input validation is enforced at both the application level and within the export modules to handle special characters such as quotes, semicolons, backslashes, commas, and control codes appropriately based on the target syntax requirements of Snort or Suricata. Additionally, organizations relying on automated exports for their NIDS deployments should implement pre-deployment validation checks that parse the generated rule files for syntactic correctness before they are pushed to detection engines. This secondary layer of defense can help detect any anomalies caused by malformed rules and prevent widespread outages in network monitoring capabilities resulting from corrupted rule sets.