Buffer Overflow Affecting zeromq/zeromq package, versions [4.2.0,4.3.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.66% (80th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-ZEROMQZEROMQ-2333592
  • published12 Jan 2022
  • disclosed1 Apr 2021
  • creditUnknown

Introduced: 1 Apr 2021

CVE-2021-20235  (opens in a new tab)
CWE-120  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade zeromq/zeromq to version 4.3.3 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow. 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 availability, data integrity, and confidentiality.

References

CVSS Scores

version 3.1