CVE-2019-6250: Integer Overflow
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 v2decoder.cpp zmq::v2decodert::sizeready 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).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/zeromq3to a version that resolves this vulnerability.Fixed in 4.3.1-4+deb10u2Fixed in 4.3.4-1Fixed in 4.3.4-6Fixed in 4.3.5-1 - Upgrade
Upgrade
alpine/zeromqto a version that resolves this vulnerability.Fixed in 4.3.1-r0 - Upgrade
Upgrade
alpine/zeromqto a version that resolves this vulnerability.Fixed in 4.2.5-r0
Event History
Frequently Asked Questions
What is CVE-2019-6250?
CVE-2019-6250 is a pointer overflow vulnerability in ZeroMQ libzmq that allows an authenticated attacker to overwrite an arbitrary amount of bytes beyond the bounds of a buffer.
What is the severity of CVE-2019-6250?
The severity of CVE-2019-6250 is critical with a CVSS score of 8.8.
How can an attacker exploit CVE-2019-6250?
An authenticated attacker can exploit CVE-2019-6250 by leveraging the v2_decoder_t::size_ready integer overflow to overwrite bytes beyond the buffer's bounds and execute arbitrary code.
Which software versions are affected by CVE-2019-6250?
ZeroMQ libzmq versions 4.2.x and 4.3.x before 4.3.1 are affected by CVE-2019-6250.
How can I fix CVE-2019-6250?
To fix CVE-2019-6250, upgrade to ZeroMQ libzmq version 4.3.1 or higher.