8.7high
Denial of Service in MISP-STIX Import via Malformed or Oversized STIX Documents in misp-stix library
- Severity
- 8.7high CVSS:4.0 by CIRCL
- Exploit likelihood
- 0.30% (higher than 25% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- CIRCL
Description
A denial-of-service vulnerability was identified in misp-stix when processing attacker-controlled STIX 1 or STIX 2 documents. The STIX import code used sys.exit() to handle several parsing and loading failures. Because SystemExit inherits from BaseException rather than Exception, these failures bypassed the exception handlers used by callers of the library. As a result, a malformed STIX document could terminate a long-running importer process instead of returning a recoverable parsing error. Additionally, no limit was imposed on the size of STIX documents before parsing. A submitted document was therefore read and materialised in memory before its validity or type was evaluated. Depending on the document and parsing path, processing could consume approximately two to seven times the input size in memory, allowing a sufficiently large STIX document to cause excessive memory and CPU consumption and potentially terminate or severely degrade the importing service. An attacker able to provide STIX content to a MISP-STIX import workflow could exploit either condition to affect availability. A malformed document could cause abnormal process termination through an uncaught SystemExit, while a large document could exhaust resources during deserialisation and conversion. The fixes replace process-terminating sys.exit() calls with catchable exceptions such as STIXLoadingError and MissingSTIXContentError, and extend exception handling around the complete STIX detection and conversion process. The importer also now enforces an input-size limit before parsing. The default maximum is 100 MB, can be adjusted by callers, and can explicitly be disabled when required. STIX 1 inputs are additionally checked for the expected root element before the complete XML tree is constructed. ImpactSuccessful exploitation can cause: * termination of a long-running MISP-STIX importer; * excessive memory allocation; * excessive CPU consumption; * degradation or temporary unavailability of services relying on the converter; * interruption of batch or automated STIX ingestion workflows.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| misp misp-stix | up to 2026.7.8 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
A denial-of-service vulnerability was identified in misp-stix when processing attacker-controlled STIX 1 or STIX 2 documents. The STIX import code used sys.exit() to handle several parsing and loading failures. Because SystemExit inherits from BaseException rather than Exception, these failures bypassed the exception handlers used by callers of the library. As a result, a malformed STIX document could terminate a long-running importer process instead of returning a recoverable parsing error. Additionally, no limit was imposed on the size of STIX documents before parsing. A submitted document was therefore read and materialised in memory before its validity or type was evaluated. Depending on the document and parsing path, processing could consume approximately two to seven times the input size in memory, allowing a sufficiently large STIX document to cause excessive memory and CPU consumption and potentially terminate or severely degrade the importing service. An attacker able to provide STIX content to a MISP-STIX import workflow could exploit either condition to affect availability. A malformed document could cause abnormal process termination through an uncaught SystemExit, while a large document could exhaust resources during deserialisation and conversion. The fixes replace process-terminating sys.exit() calls with catchable exceptions such as STIXLoadingError and MissingSTIXContentError, and extend exception handling around the complete STIX detection and conversion process. The importer also now enforces an input-size limit before parsing. The default maximum is 100 MB, can be adjusted by callers, and can explicitly be disabled when required. STIX 1 inputs are additionally checked for the expected root element before the complete XML tree is constructed. ImpactSuccessful exploitation can cause: * termination of a long-running MISP-STIX importer; * excessive memory allocation; * excessive CPU consumption; * degradation or temporary unavailability of services relying on the converter; * interruption of batch or automated STIX ingestion workflows.
NVD (es)
Se identificó una vulnerabilidad de denegación de servicio en misp-stix al procesar documentos STIX 1 o STIX 2 controlados por el atacante. El código de importación de STIX usaba sys.exit() para manejar varias fallas de análisis y carga. Debido a que SystemExit hereda de BaseException en lugar de Exception, estas fallas eludieron los manejadores de excepciones utilizados por los llamadores de la biblioteca. Como resultado, un documento STIX malformado podría terminar un proceso de importación de larga duración en lugar de devolver un error de análisis recuperable. Además, no se impuso ningún límite al tamaño de los documentos STIX antes del análisis. Por lo tanto, un documento enviado se leía y materializaba en memoria antes de que se evaluara su validez o tipo. Dependiendo del documento y la ruta de análisis, el procesamiento podría consumir aproximadamente de dos a siete veces el tamaño de entrada en memoria, permitiendo que un documento STIX suficientemente grande causara un consumo excesivo de memoria y CPU y potencialmente terminara o degradara severamente el servicio de importación. Un atacante capaz de proporcionar contenido STIX a un flujo de trabajo de importación de MISP-STIX podría explotar cualquiera de las dos condiciones para afectar la disponibilidad. Un documento malformado podría causar la terminación anormal del proceso a través de un SystemExit no capturado, mientras que un documento grande podría agotar los recursos durante la deserialización y conversión. Las correcciones reemplazan las llamadas a sys.exit() que terminan el proceso con excepciones capturables como STIXLoadingError y MissingSTIXContentError, y extienden el manejo de excepciones a todo el proceso de detección y conversión de STIX. El importador ahora también impone un límite de tamaño de entrada antes del análisis. El máximo predeterminado es de 100 MB, puede ser ajustado por los llamadores y puede ser deshabilitado explícitamente cuando sea necesario. Las entradas STIX 1 se verifican adicionalmente para el elemento raíz esperado antes de que se construya el árbol XML completo. Impacto La explotación exitosa puede causar: * terminación de un importador MISP-STIX de larga duración; * asignación excesiva de memoria; * consumo excesivo de CPU; * degradación o indisponibilidad temporal de los servicios que dependen del conversor; * interrupción de los flujos de trabajo de ingesta de STIX por lotes o automatizados.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-77755 changed 2026-08-21 | CVE Terms of Use |
| NVD | CVE-2026-77755 changed 2026-10-16 | Public domain |