Security advisory
An exploitable arbitrary memory read vulnerability exists in the MQTT packet-parsing functionality of Cesanta Mongoose 6.13. It is a heap-based buffer over-read in mg_mqtt_next_subscribe_topic. A specially crafted MQTT SUBSCRIBE packet can cause an arbitrary out-of-bounds memory read potentially resulting in information disclosure and denial of service. An attacker needs to send a specially crafted MQTT packet over the network to trigger this vulnerability.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-18765
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:14 UTC · Revision 1
Source evidence
An exploitable arbitrary memory read vulnerability exists in the MQTT packet-parsing functionality of Cesanta Mongoose 6.13. It is a heap-based buffer over-read in mg_mqtt_next_subscribe_topic. A specially crafted MQTT SUBSCRIBE packet can cause an arbitrary out-of-bounds memory read potentially resulting in information disclosure and denial of service. An attacker needs to send a specially crafted MQTT packet over the network to trigger this vulnerability.
osv:CVE-2018-18765
Complete source record
{
"id": "34d7a692ecf60bfa9505de0f27cd97312728981cef2605b4e0026ad0013f610c",
"url": "https://osv.dev/vulnerability/CVE-2018-18765",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-18765",
"summary": "An exploitable arbitrary memory read vulnerability exists in the MQTT packet-parsing functionality of Cesanta Mongoose 6.13. It is a heap-based buffer over-read in mg_mqtt_next_subscribe_topic. A specially crafted MQTT SUBSCRIBE packet can cause an arbitrary out-of-bounds memory read potentially resulting in information disclosure and denial of service. An attacker needs to send a specially crafted MQTT packet over the network to trigger this vulnerability.",
"evidence": "osv:CVE-2018-18765",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2018-18765",
"aliases": [
"CVE-2018-18765"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/cesanta/mongoose",
"type": "GIT",
"events": [
{
"introduced": "95afa323c0e7740151f661629616daebe2915b61"
},
{
"last_affected": "95afa323c0e7740151f661629616daebe2915b61"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:cesanta:mongoose:6.13:*:*:*:*:*:*:*",
"range": [
{
"introduced": "6.13"
},
{
"last_affected": "6.13"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"6.13"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18765.json"
}
}
],
"modified": "2026-10-24T10:30:50.656623649Z",
"provider": "osv",
"references": [
"https://twitter.com/thracky/status/1059472674940993541",
"https://github.com/TiffanyBlue/PoCbyMyself/blob/master/mongoose6.13/mqtt/Cesanta%20Mongoose%20MQTT%20mg_mqtt_next_subscribe_topic%20heap%20buffer%20overflow.md"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-18765",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 437293,
"published_at": "2018-10-29T12:29:10.273+00:00"
}