{"id":"CVE-2023-2905","details":"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.\n","modified":"2026-04-12T03:51:11.501934Z","published":"2023-08-09T05:15:40.740Z","references":[{"type":"ADVISORY","url":"https://github.com/cesanta/mongoose/releases/tag/7.11"},{"type":"FIX","url":"https://github.com/cesanta/mongoose/pull/2274"},{"type":"FIX","url":"https://takeonme.org/cves/CVE-2023-2905.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cesanta/mongoose","events":[{"introduced":"0"},{"last_affected":"b379816178abdcd59135aa32f990a4b3bbbfb54b"},{"fixed":"5c8e05a4fc34c5309ceea887a7e60b895b2100d7"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"7.10"}]}}],"versions":["3.2","3.3","3.4","3.5","3.6","3.7","3.8","4.0","4.1","5.0","5.1","5.2","5.3","5.4","5.5","5.5_20140120","5.6","6.0","6.1","6.10","6.11","6.12","6.13","6.14","6.15","6.16","6.17","6.18","6.2","6.3","6.4","6.5","6.6","6.7","6.9","7.0","7.1","7.10","7.2","7.3","7.4","7.5","7.6","7.7","7.8"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-2905.json","vanir_signatures":[{"digest":{"length":2019,"function_hash":"322578170098778285952942806764184170488"},"source":"https://github.com/cesanta/mongoose/commit/5c8e05a4fc34c5309ceea887a7e60b895b2100d7","deprecated":false,"signature_version":"v1","target":{"file":"mongoose.c","function":"mqtt_cb"},"id":"CVE-2023-2905-4da521ed","signature_type":"Function"},{"digest":{"threshold":0.9,"line_hashes":["117949057774234710139995544902745237138","313220653113354972269039999932499615694","248097422983505795697698419060461918","261418787229042588120440473792472697846","264179395874945463223054796764526256741"]},"source":"https://github.com/cesanta/mongoose/commit/5c8e05a4fc34c5309ceea887a7e60b895b2100d7","deprecated":false,"signature_version":"v1","target":{"file":"mongoose.c"},"id":"CVE-2023-2905-72b6c1ca","signature_type":"Line"}],"vanir_signatures_modified":"2026-04-12T03:51:11Z"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}