# CVE-2025-65953: NanoMQ UAF of retain message due to invalid MQTTV5 properties

- Severity: Medium 6.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2025-11-25T23:13:09.619Z
- Modified: 2026-10-19T13:10:00.110Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- nanomq nanomq: < 0.22.5

## References

- <https://github.com/nanomq/nanomq/security/advisories/GHSA-r95p-wjm8-2qxr>

## Sources

- CVE List: [CVE-2025-65953](https://www.cve.org/CVERecord?id=CVE-2025-65953), CVE Terms of Use, modified 2025-11-26
- NVD: [CVE-2025-65953](https://nvd.nist.gov/vuln/detail/CVE-2025-65953), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-65953 · Whole record: https://cve.day/CVE-2025-65953.json · Rebuilt by cve.day 2026-11-25T22:59:08.019Z
