MISP NIDS Rule Export Injection via Unescaped Attribute Values and Tags
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| MISP | MISP | affected |
|
No data.
No data.
No data available yet.
Vendor Solution
The fix introduces dedicated escaping functions that neutralize NIDS-rule-significant characters before they are embedded in generated rule text. For msg: options, control characters are replaced with underscores and backslashes, double quotes, and semicolons are backslash-escaped. For Suricata metadata fields, all whitespace, commas, semicolons, quotes, backslashes, and control characters are replaced with underscores. For content: matches, the existing illegal-character replacement is extended to hex-encode control characters. Additionally, the URL path in Suricata rules is now passed through the illegal-character escaper before being placed in the http.uri content match, and two dead assignments that incorrectly set the path from the host are removed.
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
No EPSS score available.
Key SSVC decision points have not yet been added.
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | MISP NIDS Rule Export Injection via Unescaped Attribute Values and Tags | |
| First Time appeared |
Misp
Misp misp |
|
| Weaknesses | CWE-116 CWE-74 |
|
| CPEs | cpe:2.3:a:misp:misp:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Misp
Misp misp |
|
| References |
| |
| Metrics |
cvssV4_0
|