Fedora 37 : mosquitto (2023-e7ed15ab9e)

high Nessus Plugin ID 180432

Language:

Synopsis

The remote Fedora host is missing one or more security updates.

Description

The remote Fedora 37 host has a package installed that is affected by multiple vulnerabilities as referenced in the FEDORA-2023-e7ed15ab9e advisory.

2.0.17

Broker:

* Fix `max_queued_messages 0` stopping clients from receiving messages
* Fix `max_inflight_messages` not being set correctly.

Apps:

* Fix `mosquitto_passwd -U` backup file creation.


2.0.16

Security:

* CVE-2023-28366: Fix memory leak in broker when clients send multiple QoS 2 messages with the same message ID, but then never respond to the PUBREC commands.
* CVE-2023-0809: Fix excessive memory being allocated based on malicious initial packets that are not CONNECT packets.
* CVE-2023-3592: Fix memory leak when clients send v5 CONNECT packets with a will message that contains invalid property types.
* Broker will now reject Will messages that attempt to publish to $CONTROL/.
* Broker now validates usernames provided in a TLS certificate or TLS-PSK identity are valid UTF-8.
* Fix potential crash when loading invalid persistence file.
* Library will no longer allow single level wildcard certificates, e.g. *.com

Broker:

* Fix $SYS messages being expired after 60 seconds and hence unchanged values disappearing.
* Fix some retained topic memory not being cleared immediately after used.
* Fix error handling related to the `bind_interface` option.
* Fix std* files not being redirected when daemonising, when built with assertions removed.
* Fix default settings incorrectly allowing TLS v1.1.
* Use line buffered mode for stdout. Closes #2354.
* Fix bridges with non-matching cleansession/local_cleansession being expired on start after restoring from persistence.
* Fix connections being limited to 2048 on Windows. The limit is now 8192, where supported.
* Broker will log warnings if sensitive files are world readable/writable, or if the owner/group is not the same as the user/group the broker is running as. In future versions the broker will refuse to open these files.
* mosquitto_memcmp_const is now more constant time.
* Only register with DLT if DLT logging is enabled.
* Fix any possible case where a json string might be incorrectly loaded. This could have caused a crash if a textname or textdescription field of a role was not a string, when loading the dynsec config from file only.
* Dynsec plugin will not allow duplicate clients/groups/roles when loading config from file, which matches the behaviour for when creating them.
* Fix heap overflow when reading corrupt config with log_dest file.

Client library:

* Use CLOCK_BOOTTIME when available, to keep track of time. This solves the problem of the client OS sleeping and the client hence not being able to calculate the actual time for keepalive purposes.
* Fix default settings incorrectly allowing TLS v1.1.
* Fix high CPU use on slow TLS connect.

Clients:

* Fix incorrect topic-alias property value in mosquitto_sub json output.
* Fix confusing message on TLS certificate verification.

Apps:

* mosquitto_passwd uses mkstemp() for backup files.
* `mosquitto_ctrl dynsec init` will refuse to overwrite an existing file, without a race-condition.

Tenable has extracted the preceding description block directly from the Fedora security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Update the affected mosquitto package.

See Also

https://bodhi.fedoraproject.org/updates/FEDORA-2023-e7ed15ab9e

Plugin Details

Severity: High

ID: 180432

File Name: fedora_2023-e7ed15ab9e.nasl

Version: 1.7

Type: local

Agent: unix

Published: 9/1/2023

Updated: 11/14/2024

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, continuous_assessment, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

CVSS Score Source: CVE-2023-3592

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Critical

Base Score: 9.3

Threat Score: 8.1

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Vulnerability Information

CPE: p-cpe:/a:fedoraproject:fedora:mosquitto, cpe:/o:fedoraproject:fedora:37

Required KB Items: Host/local_checks_enabled, Host/RedHat/release, Host/RedHat/rpm-list

Exploit Ease: No known exploits are available

Patch Publication Date: 8/23/2023

Vulnerability Publication Date: 8/18/2023

Reference Information

CVE: CVE-2023-0809, CVE-2023-28366, CVE-2023-3592