CVE-2021-20234
ZeroMQ vulnerability analysis and mitigation

Overview

An uncontrolled resource consumption (memory leak) vulnerability (CVE-2021-20234) was discovered in the ZeroMQ client versions before 4.3.3, specifically in src/pipe.cpp. The vulnerability was disclosed in April 2021 and affects the ZeroMQ messaging library (Debian Security, NVD).

Technical details

The vulnerability occurs when a pipe processes a delimiter and is already not in active state but still has an unfinished message, causing the message to be leaked. The issue was discovered through OSS-Fuzz testing and can be reproduced with specific malicious input patterns from servers (GitHub Advisory). The vulnerability has been assigned a low severity rating with a CVSS score indicating network vector, medium complexity, and no authentication required (AV:N/AC:M/Au:N/C:N/I:N/A:P) (Rapid7).

Impact

The primary impact of this vulnerability is on system availability. When exploited, it causes memory leaks that scale with the number of malicious servers connected, potentially leading to system crashes. The memory leak can result in approximately 18,160 bytes of memory being lost per instance (GitHub Advisory).

Exploitability

The vulnerability requires a client to connect to multiple malicious or compromised servers to be exploited effectively. While the exploit is reliable when triggered, it is considered difficult to exploit in real-world applications due to the requirement of tricking clients into connecting to multiple compromised servers (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in ZeroMQ version 4.3.3. Users are advised to upgrade to this version or later. Various Linux distributions have also released security updates to address this vulnerability, including Ubuntu and Debian (Ubuntu Security, Debian Security).

Additional resources


SourceThis report was generated using AI

Related ZeroMQ vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2020-36400CRITICAL9.8
  • ZeroMQ logoZeroMQ
  • zeromq
NoYesJul 01, 2021
CVE-2021-20236CRITICAL9.8
  • ZeroMQ logoZeroMQ
  • zeromq3
NoYesMay 28, 2021
CVE-2021-20235HIGH8.1
  • ZeroMQ logoZeroMQ
  • zeromq
NoYesApr 01, 2021
CVE-2021-20237HIGH7.5
  • ZeroMQ logoZeroMQ
  • zeromq-devel
NoYesMay 28, 2021
CVE-2021-20234MEDIUM6.5
  • ZeroMQ logoZeroMQ
  • zeromq
NoYesApr 01, 2021

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