CVE-2021-45936

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-45936
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-45936.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-45936
Published
2022-01-01T01:15:08Z
Modified
2025-09-19T13:28:56.871619Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

wolfSSL wolfMQTT 1.9 has a heap-based buffer overflow in MqttDecodeDisconnect (called from MqttClientDecodePacket and MqttClient_WaitType).

References

Affected packages

Git / github.com/wolfssl/wolfmqtt

Affected ranges

Type
GIT
Repo
https://github.com/wolfssl/wolfmqtt
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.10
v0.11
v0.12
v0.13
v0.14
v0.2
v0.2-dist
v0.3
v0.4
v0.5
v0.6
v0.8
v0.9

v1.*

v1.0
v1.1.0
v1.2
v1.3.0
v1.4
v1.6
v1.7
v1.8
v1.9

Database specific

{
    "vanir_signatures": [
        {
            "id": "CVE-2021-45936-3c4f0149",
            "signature_type": "Line",
            "digest": {
                "line_hashes": [
                    "280277640168772996348933106240497287098",
                    "120079499844175725862248008020683433689",
                    "47346730709629407828913387344300580063",
                    "79204163782737757014109719066411078623",
                    "120803118586187991233588399328252326413"
                ],
                "threshold": 0.9
            },
            "target": {
                "file": "src/mqtt_client.c"
            },
            "deprecated": false,
            "signature_version": "v1",
            "source": "https://github.com/wolfssl/wolfmqtt/commit/84d4b53122e0fa0280c7872350b89d5777dabbb2"
        },
        {
            "id": "CVE-2021-45936-7e8fea99",
            "signature_type": "Function",
            "digest": {
                "function_hash": "329802369575170683440296892229791015484",
                "length": 3755.0
            },
            "target": {
                "file": "src/mqtt_client.c",
                "function": "MqttClient_WaitType"
            },
            "deprecated": false,
            "signature_version": "v1",
            "source": "https://github.com/wolfssl/wolfmqtt/commit/84d4b53122e0fa0280c7872350b89d5777dabbb2"
        }
    ]
}