CVE-2018-18764
mongoose: heap-based buffer over-read in a parse_mqtt getu16 call
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (low).
Description
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 a parse_mqtt getu16 call. 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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| debian 11 | smplayer | 18.5.0~ds1-1 |
| debian 12 | smplayer | 18.5.0~ds1-1 |
| debian 13 | smplayer | 18.5.0~ds1-1 |
| debian 14 | smplayer | 18.5.0~ds1-1 |
| echo | smplayer | 18.5.0~ds1-1 |
References
- https://access.redhat.com/security/cve/CVE-2018-18764
- https://github.com/TiffanyBlue/PoCbyMyself/blob/master/mongoose6.13/mqtt/Cesanta%20Mongoose%20MQTT%20getu16%20heap%20buffer%20overflow1.md
- https://github.com/TiffanyBlue/PoCbyMyself/blob/master/mongoose6.13/mqtt/Cesanta%20Mongoose%20MQTT%20getu16%20heap%20buffer%20overflow2.md
- https://nvd.nist.gov/vuln/detail/CVE-2018-18764
- https://www.cve.org/CVERecord?id=CVE-2018-18764