Description
Due to a failure in validating the length of a provided MQTT_CMD_PUBLISH parsed message with a variable length header, Cesanta Mongoose, an embeddable web server, version 7.10 is susceptible to a heap-based buffer overflow vulnerability in the default configuration. Version 7.9 and prior does not appear to be vulnerable. This issue is resolved in version 7.11.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Cesanta | Mongoose | 7.10 | 7.11 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | swupdate | 2024.12+dfsg-1 | — |
| Debian 13 | swupdate | 2024.12+dfsg-1 | — |
| Debian 12 | swupdate | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | swupdate | No fix yet | — |
| Ubuntu 22.04 LTS | swupdate | No fix yet | — |
References
- https://takeonme.org/cves/CVE-2023-2905.html third-party-advisory technical-description exploit
- https://github.com/cesanta/mongoose/pull/2274 patch
- https://github.com/cesanta/mongoose/releases/tag/7.11 release-notes