CVE-2023-2905

Source
https://cve.org/CVERecord?id=CVE-2023-2905
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-2905.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-2905
Downstream
Published
2023-08-09T04:46:14.972Z
Modified
2026-07-15T15:53:35.974209Z
Summary
Cesanta Mongoose MQTT Message Parsing Heap Overflow
Details

Due to a failure in validating the length of a provided MQTTCMDPUBLISH 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.

Database specific
{
    "cna_assigner": "AHA",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2905.json",
    "cwe_ids": [
        "CWE-122"
    ]
}
References

Affected packages

Git / github.com/cesanta/mongoose

Affected ranges

Type
GIT
Repo
https://github.com/cesanta/mongoose
Events
Database specific
{
    "cpe": "cpe:2.3:a:cesanta:mongoose:7.10:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "7.10"
        },
        {
            "last_affected": "7.10"
        }
    ],
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

7.*
7.10

Database specific

vanir_signatures_modified
"2026-07-15T15:53:35Z"
vanir_signatures
[
    {
        "target": {
            "function": "mqtt_cb",
            "file": "mongoose.c"
        },
        "id": "CVE-2023-2905-4da521ed",
        "digest": {
            "function_hash": "322578170098778285952942806764184170488",
            "length": 2019.0
        },
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "source": "https://github.com/cesanta/mongoose/commit/5c8e05a4fc34c5309ceea887a7e60b895b2100d7"
    },
    {
        "target": {
            "file": "mongoose.c"
        },
        "id": "CVE-2023-2905-72b6c1ca",
        "digest": {
            "line_hashes": [
                "117949057774234710139995544902745237138",
                "313220653113354972269039999932499615694",
                "248097422983505795697698419060461918",
                "261418787229042588120440473792472697846",
                "264179395874945463223054796764526256741"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/cesanta/mongoose/commit/5c8e05a4fc34c5309ceea887a7e60b895b2100d7"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-2905.json"