Integer Overflow or Wraparound Affecting zeromq/zeromq package, versions [4.2.0,4.2.5][4.3.0,4.3.1)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
28.72% (97th 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-2333585
  • published12 Jan 2022
  • disclosed13 Jan 2019
  • creditUnknown

Introduced: 13 Jan 2019

CVE-2019-6250  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade zeromq/zeromq to version 4.3.1 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. A pointer overflow, with code execution, was discovered in ZeroMQ libzmq (aka 0MQ) 4.2.x and 4.3.x before 4.3.1. A v2_decoder.cpp zmq::v2_decoder_t::size_ready integer overflow allows an authenticated attacker to overwrite an arbitrary amount of bytes beyond the bounds of a buffer, which can be leveraged to run arbitrary code on the target system. The memory layout allows the attacker to inject OS commands into a data structure located immediately after the problematic buffer (i.e., it is not necessary to use a typical buffer-overflow exploitation technique that changes the flow of control).

CVSS Scores

version 3.1