Improper Authentication Affecting mosquitto package, versions [1.0,1.5.6)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.29% (69th 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 Learn

Learn about Improper Authentication vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-MOSQUITTO-2368769
  • published26 Jan 2022
  • disclosed27 Mar 2019
  • creditUnknown

Introduced: 27 Mar 2019

CVE-2018-12551  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade mosquitto to version 1.5.6 or higher.

Overview

Affected versions of this package are vulnerable to Improper Authentication. When Eclipse Mosquitto version 1.0 to 1.5.5 (inclusive) is configured to use a password file for authentication, any malformed data in the password file will be treated as valid. This typically means that the malformed data becomes a username and no password. If this occurs, clients can circumvent authentication and get access to the broker by using the malformed username. In particular, a blank line will be treated as a valid empty username. Other security measures are unaffected. Users who have only used the mosquitto_passwd utility to create and modify their password files are unaffected by this vulnerability.

References

CVSS Scores

version 3.1