CVE-2021-20236: Buffer Overflow

Published Jan 29, 2021
·
Updated

A flaw was found in the ZeroMQ server in versions before 4.3.3. This flaw allows a malicious client to cause a stack buffer overflow on the server by sending crafted topic subscription requests and then unsubscribing. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.

Other sources

A flaw was found in zeromq before version 4.3.3. The PUB/XPUB subscription store (mtrie) is traversed using recursive function calls. In the remove (unsubscription) case, the recursive calls are NOT tail calls, so even with optimizations the stack grows linearly with the length of a subscription topic. Topics are under the control of remote clients - they can send a subscription to arbitrary length topics. An attacker can thus cause a server to create an mtrie sufficiently large such that, when unsubscribing, traversal will cause a stack overflow.

References:

https://github.com/zeromq/libzmq/pull/3959 https://github.com/zeromq/libzmq/security/advisories/GHSA-qq65-x72m-9wr8 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22488

Red Hat

Affected Software

5 affected componentsFixes available
redhat/zeromq<4.3.3
4.3.3
ZeroMQ ZeroMQ<4.3.3
redhat Ceph Storage=2.0
redhat Enterprise Linux=7.0
Fedoraproject Fedora=33

Event History

May 28, 2021
CVE Published
via MITRE·10:42 AM
Data Sourced
via MITRE·10:42 AM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-20236?

CVE-2021-20236 is a vulnerability found in the ZeroMQ server in versions before 4.3.3.

2

How does CVE-2021-20236 affect confidentiality and integrity?

CVE-2021-20236 can potentially compromise the confidentiality and integrity of a system.

3

What is the severity of CVE-2021-20236?

CVE-2021-20236 has a severity score of 9.8 (critical).

4

What software versions are affected by CVE-2021-20236?

Versions of ZeroMQ before 4.3.3 are affected by CVE-2021-20236.

5

Are there any known fixes or mitigations for CVE-2021-20236?

Yes, the fix for CVE-2021-20236 is to update to version 4.3.3 of ZeroMQ or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203