Out-of-Bounds Affecting knolleary/pubsubclient package, versions [,2.7)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
27.96% (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-KNOLLEARYPUBSUBCLIENT-2366518
  • published26 Jan 2022
  • disclosed13 Nov 2018
  • creditUnknown

Introduced: 13 Nov 2018

CVE-2018-17614  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade knolleary/pubsubclient to version 2.7 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-Bounds. This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Losant Arduino MQTT Client prior to V2.7. User interaction is not required to exploit this vulnerability. The specific flaw exists within the parsing of MQTT PUBLISH packets. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-6436.

References

CVSS Scores

version 3.1