{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:wolfssl:wolfmqtt:1.9:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "1.9"
              },
              {
                "last_affected": "1.9"
              }
            ],
            "source": [
              "CPE_STRING",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "74c09f7eb7934112cba2fe5a0b4956f2a01016af"
            },
            {
              "last_affected": "74c09f7eb7934112cba2fe5a0b4956f2a01016af"
            },
            {
              "fixed": "84d4b53122e0fa0280c7872350b89d5777dabbb2"
            }
          ],
          "repo": "https://github.com/wolfssl/wolfmqtt",
          "type": "GIT"
        }
      ],
      "versions": [
        "1.9"
      ]
    }
  ],
  "database_specific": {},
  "details": "wolfSSL wolfMQTT 1.9 has a heap-based buffer overflow in MqttClient_DecodePacket (called from MqttClient_WaitType and MqttClient_Subscribe).",
  "id": "CVE-2021-45939",
  "modified": "2026-07-08T05:39:25.976124992Z",
  "published": "2022-01-01T01:15:08.887Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=39103"
    },
    {
      "type": "FIX",
      "url": "https://github.com/wolfSSL/wolfMQTT/commit/84d4b53122e0fa0280c7872350b89d5777dabbb2"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/google/oss-fuzz-vulns/blob/main/vulns/wolfmqtt/OSV-2021-1361.yaml"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ]
}