← Vulnerability feed

Vulnerability record · CVE-2017-2894 · published 7 November 2017

CVE-2017-2894: Cesanta mongoose out-of-bounds write vulnerability

Cesanta · Mongoose

An exploitable stack buffer overflow vulnerability exists in the MQTT packet parsing functionality of Cesanta Mongoose 6.8. A specially crafted MQTT SUBSCRIBE packet can cause a stack buffer overflow resulting in remote code execution. An attacker needs to send a specially crafted MQTT packet over the network to trigger this vulnerability.

9.8 CVSS 3.1 Critical EPSS 31% · top 1.8% CWE-787 · Out-of-bounds write
9.8CVSS 3.1 base score, v2 7.5
31%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

An exploitable stack buffer overflow vulnerability exists in the MQTT packet parsing functionality of Cesanta Mongoose 6.8. A specially crafted MQTT SUBSCRIBE packet can cause a stack buffer overflow resulting in remote code execution. An attacker needs to send a specially crafted MQTT packet over the network to trigger this vulnerability.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://www.talosintelligence.com/vulnerability_reports/TALOS-2017-0401 ExploitTechnical DescriptionThird Party Advisory
https://www.talosintelligence.com/vulnerability_reports/TALOS-2017-0401 ExploitTechnical DescriptionThird Party Advisory

Track CVE-2017-2894 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-42383Cesanta mongoose vulnerabilityUse of Out-of-range Pointer Offset vulnerability in Cesanta Mongoose Web Server v7.14 allows to write a NULL byte value beyond the memory space dedic…EPSS 0.27%9.8CVE-2020-25756Cesanta mongoose classic buffer overflow vulnerabilityA buffer overflow vulnerability exists in the mg_get_http_header function in Cesanta Mongoose 6.18 due to a lack of bounds checking. A crafted HTTP h…EPSS 1.6%9.8CVE-2019-19307Cesanta mongoose out-of-bounds read vulnerabilityAn integer overflow in parse_mqtt in mongoose.c in Cesanta Mongoose 6.16 allows an attacker to achieve remote DoS (infinite loop), or possibly cause …EPSS 42%9.8CVE-2019-12951Cesanta mongoose out-of-bounds write vulnerabilityAn issue was discovered in Mongoose before 6.15. The parse_mqtt() function in mg_mqtt.c has a critical heap-based buffer overflow.EPSS 2.0%9.8CVE-2018-20353Cesanta mongoose use after free vulnerabilityAn invalid read of 8 bytes due to a use-after-free vulnerability during a "NULL test" in the mg_http_get_proto_data function in mongoose.c in Cesanta…EPSS 3.6%9.8CVE-2018-20354Cesanta mongoose use after free vulnerabilityAn invalid read of 8 bytes due to a use-after-free vulnerability during a "return" in the mg_http_get_proto_data function in mongoose.c in Cesanta Mo…EPSS 3.6%9.8CVE-2018-20355Cesanta mongoose use after free vulnerabilityAn invalid write of 8 bytes due to a use-after-free vulnerability in the mg_http_free_proto_data_cgi function call in mongoose.c in Cesanta Mongoose …EPSS 3.6%9.8CVE-2018-20356Cesanta mongoose use after free vulnerabilityAn invalid read of 8 bytes due to a use-after-free vulnerability in the mg_http_free_proto_data_cgi function call in mongoose.c in Cesanta Mongoose E…EPSS 3.6%

Source: NIST National Vulnerability Database (record CVE-2017-2894), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.