CVE-2021-45938
Homebrew vulnerability analysis and mitigation

Overview

A heap-based buffer overflow vulnerability was discovered in wolfSSL wolfMQTT version 1.9. The vulnerability exists in the MqttClientDecodePacket function, which is called from MqttClientWaitType and MqttClient_Unsubscribe functions (OSS-Fuzz, OSV Report). The issue was discovered on September 22, 2021, and was subsequently fixed in a later release.

Technical details

The vulnerability is classified as a heap-based buffer overflow with a WRITE operation of size 1. The issue occurs specifically in the execution path: MqttClientDecodePacket -> MqttClientWaitType -> MqttClient_Unsubscribe. According to the National Vulnerability Database, this vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 (MEDIUM) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability could lead to memory corruption through a heap-based buffer overflow, potentially causing application crashes or enabling arbitrary code execution. The CVSS scoring indicates that while the vulnerability doesn't impact confidentiality or integrity, it can have a high impact on system availability (NVD).

Mitigation and workarounds

The vulnerability has been fixed in a subsequent commit (84d4b53122e0fa0280c7872350b89d5777dabbb2) to the wolfMQTT repository. Users should update to a version containing this fix to mitigate the vulnerability (GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related Homebrew vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66222CRITICAL9.6
  • HomebrewHomebrew
  • deepchat
NoNoDec 03, 2025
CVE-2025-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-59789HIGH7.5
  • HomebrewHomebrew
  • brpc
NoYesDec 01, 2025
CVE-2025-63317MEDIUM5.4
  • NixOSNixOS
  • todoist
NoNoDec 01, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • github.com/apptainer/apptainer
NoYesDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management