CVE-2021-20235: There's a flaw in the zeromq server in versions before 4.3.3 in src/decoder_allocators.hpp
CVE-2021-20235 is a high-severity flaw (CVSS 8.1) affecting libzmq. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
There's a flaw in the zeromq server in versions before 4.3.3 in src/decoder_allocators.hpp. The decoder static allocator could have its sized changed, but the buffer would remain the same as it is a static buffer. A remote, unauthenticated attacker who sends a crafted request to the zeromq server could trigger a buffer overflow WRITE of arbitrary data if CURVE/ZAP authentication is not enabled. The greatest impact of this flaw is to application a
Why this priority
- High severity
- EPSS top 1%: very likely to be exploited
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-20235?
libzmq: upgrade to 4.3.3. Exact commands for each OS are on this page.
Is CVE-2021-20235 being exploited?
CVE-2021-20235 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-20235 affect?
CVE-2021-20235 affects libzmq. Severity is high (CVSS 8.1). There's a flaw in the zeromq server in versions before 4.3.3 in src/decoder_allocators.hpp. The decoder static allocator could have its sized changed, but the buffer would remain the same as it is a static buffer. A remote, unauthenticated
How urgent is CVE-2021-20235?
Priority 58/100. High severity; EPSS top 1%: very likely to be exploited; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2021-20237 HIGH 7.5 UPGRADE An uncontrolled resource consumption (memory leak) flaw was found in ZeroMQ's src/xpub.cpp in versions before
- CVE-2021-20234 MEDIUM 6.5 UPGRADE An uncontrolled resource consumption (memory leak) flaw was found in the ZeroMQ client in versions before 4.3.
- CVE-2020-36400 CRITICAL 9.8 DOWNGRADE ZeroMQ libzmq 4.3.3 has a heap-based buffer overflow in zmq::tcp_read, a different vulnerability than CVE-2021
- CVE-2020-15166 HIGH 7.5 UPGRADE MITIGATE In ZeroMQ before version 4.3.3, there is a denial-of-service vulnerability
- CVE-2019-6250 HIGH 8.8 UPGRADE MITIGATE A pointer overflow, with code execution, was discovered in ZeroMQ libzmq (aka 0MQ) 4.2.x and 4.3.x before 4.3.