CVE-2026-135253

MISP NIDS Rule Export Injection via Unescaped Attribute Values and Tags

Published Nov 23, 2026 CVSS 4.0 · 5.3 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability occurs because MISP’s export functions for Snort and Suricata rules embed attribute values, tag names, and URL paths directly into rule text without neutralizing characters that are significant in NIDS grammar. This allows an authenticated user to create or modify attributes containing double quotes, semicolons, backslashes, commas, control characters, and other special symbols. When such data is exported, the unescaped characters break out of their intended option or content field, enabling the injection of arbitrary rule options, corruption of the rule structure, or generation of syntactically invalid rules that may be rejected by the downstream NIDS engine. This problem affects the integrity and availability of the exported rules but does not compromise the MISP application itself.

Affected Systems

The affected product is MISP, version 2.5.51 and earlier. All users with permission to create or modify attributes in a MISP instance are potentially able to exploit the flaw by inserting specially crafted values that will be exported into Snort or Suricata rules.

Risk and Exploitability

The CVSS score is 5.3, indicating moderate severity. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting limited current exploitation. The attack vector is inferred to be local or authenticated, requiring a user with attribute management privileges; no anonymous or network‑level access is needed. An attacker could undermine the reliability of a deployed NIDS by delivering corrupted or malformed rules, potentially causing rule rejections or misconfigurations, but would not gain direct access to the MISP application or underlying system.

Remediation

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.


OpenCVE Recommended Actions

  • Update MISP to version 2.5.52 or later, the fix introduces dedicated escaping functions for all rule components
  • Restrict NIDS rule export functionality to trusted admin users or disable the export feature for non‑administrative accounts
  • Audit exported NIDS rules for syntax errors before deployment to downstream engines

Generated by OpenCVE AI on November 23, 2026 at 17:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Sources

Status
PUBLISHED
Assigner
CIRCL
Published
Updated
Nov 23, 2026, 3:43 PM
Reserved
Nov 23, 2026, 3:43 PM
Status
Deferred
Published
Nov 23, 2026, 4:17 PM
Modified
Nov 23, 2026, 4:17 PM