CVE-2021-41036CWE-787

In versions prior to 1.1 of the Eclipse Paho MQTT C Client, the client does not check rem_len size in readpacket

published November 2, 2021

CVSS
—
EPSS
1%
Percentile
68.0
In the wild
Unconfirmed
What it is

⚠️ A sneaky oversight lurks in the Eclipse Paho MQTT C Client! Prior to version 1.1, it fails to check the rem_len size in readpacket, which could open the door for unexpected behavior. 🔍 Think of it as a café that doesn’t check the size of your coffee order before brewing — if you requested a grande but they keep serving a tall, you might end up with something that doesn’t meet your needs. ☕ This flaw could lead to improper packet handling, potentially causing crashes or other unexpected behavior in applications relying on this client. While it’s not a catastrophic threat, it can disrupt functionality and lead to a frustrating experience for users.

Put simply

Think of it as a café that doesn’t check the size of your coffee order before brewing — if you requested a grande but they keep serving a tall, you might end up with something that doesn’t meet your needs. ☕ The vulnerability arises from the lack of verification on the rem_len size during packet reading, allowing for malformed packets to be accepted without proper validation, possibly leading to instability.

What to do

This flaw could lead to improper packet handling, potentially causing crashes or other unexpected behavior in applications relying on this client. While it’s not a catastrophic threat, it can disrupt functionality and lead to a frustrating experience for users. Upgrade the Eclipse Paho MQTT C Client to version 1.1 or later to ensure proper size checks are implemented. Reviewing your application’s usage of this client can help identify potential impacts from this vulnerability. This is fixable! Get that upgrade done, and you'll be back in secure, stable waters in no time! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01204 · 68.0th percentile
Weakness
CWE-787 · Out-of-bounds Write
Published
2021-11-02T23:15Z
EPSS history
Timeline
  • 02 NOV 23:15Z
    In versions prior to 1.1 of the Eclipse Paho MQTT C Client, the client does not check rem_len size in readpacket
    cvelistv5