{"id":"CVE-2025-65953","aliases":["CVE-2025-65953"],"related":[],"kind":"vulnerability","state":"published","title":"NanoMQ UAF of retain message due to invalid MQTTV5 properties","summary":"NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. Prior to version 0.22.5, a Heap-Use-After-Free (UAF) vulnerability exists in the TCP transport component of NanoMQ, which relies on the underlying NanoNNG library (specifically in src/sp/transport/mqtt/broker_tcp.c). The vulnerability is due to improper resource management and premature cleanup of message and pipe structures under specific malformed MQTTV5 retain message traffic conditions. This issue has been patched in version 0.22.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. Prior to version 0.22.5, a Heap-Use-After-Free (UAF) vulnerability exists in the TCP transport component of NanoMQ, which relies on the underlying NanoNNG library (specifically in src/sp/transport/mqtt/broker_tcp.c). The vulnerability is due to improper resource management and premature cleanup of message and pipe structures under specific malformed MQTTV5 retain message traffic conditions. This issue has been patched in version 0.22.5.","source":"cvelist"},{"lang":"es","text":"NanoMQ MQTT Broker (NanoMQ) es una plataforma de mensajería Edge integral. En versiones anteriores a la versión 0.22.5, existe una vulnerabilidad de uso después de liberación (UAF) en el heap en el componente de transporte TCP de NanoMQ, que se basa en la biblioteca subyacente NanoNNG (específicamente en src/sp/transport/mqtt/broker_tcp.c). La vulnerabilidad se debe a una gestión inadecuada de recursos y a una limpieza prematura de las estructuras de mensajes y tuberías bajo condiciones específicas de tráfico de mensajes MQTTV5 retain malformados. Este problema ha sido parcheado en la versión 0.22.5.","source":"nvd"}],"published":"2025-11-25T23:13:09.619Z","modified":"2026-10-19T13:10:00.110Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L","score":6,"rating":"MEDIUM"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"version":"< 0.22.5","status":"affected"}],"vendor":"nanomq","product":"nanomq","source":"cvelist"}],"references":[{"url":"https://github.com/nanomq/nanomq/security/advisories/GHSA-r95p-wjm8-2qxr","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-11-26T16:10:04.750Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-65953","url":"https://www.cve.org/CVERecord?id=CVE-2025-65953","licence":"CVE Terms of Use","modified":"2025-11-26T16:10:11.478Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-65953","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65953","licence":"Public domain","modified":"2026-10-19T13:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:08.019Z","epss":{"score":0.00236,"percentile":0.15611,"date":"2026-12-01T12:00:22.000Z"}}