RabbitMQ < 3.13.8 / 4.0.x < 4.0.3 XSS (GHSA-g58g-82mw-9m3p)

medium Nessus Plugin ID 235082

Synopsis

An application installed on the remote host is affected by a vulnerability.

Description

RabbitMQ is a messaging and streaming broker. Versions prior to 4.0.3 are vulnerable to a sophisticated attack that could modify virtual host name on disk and then make it unrecoverable (with other on disk file modifications) can lead to arbitrary JavaScript code execution in the browsers of management UI users. When a virtual host on a RabbitMQ node fails to start, recent versions will display an error message (a notification) in the management UI. The error message includes virtual host name, which was not escaped prior to open source RabbitMQ 4.0.3 and Tanzu RabbitMQ 4.0.3, 3.13.8. An attack that both makes a virtual host fail to start and creates a new virtual host name with an XSS code snippet or changes the name of an existing virtual host on disk could trigger arbitrary JavaScript code execution in the management UI (the user's browser). Open source RabbitMQ `4.0.3` and Tanzu RabbitMQ `4.0.3` and `3.13.8` patch the issue.

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

Solution

Upgrade to RabbitMQ version 3.12.11 or later.

See Also

http://www.nessus.org/u?ef3eadf7

Plugin Details

Severity: Medium

ID: 235082

File Name: rabbitmq_4_0_3.nasl

Version: 1.1

Type: local

Agent: unix

Family: Misc.

Published: 5/2/2025

Updated: 5/2/2025

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 4.5

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

CVSS Score Source: CVE-2025-30219

CVSS v3

Risk Factor: Medium

Base Score: 6.1

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

Vulnerability Information

CPE: cpe:/a:pivotal_software:rabbitmq

Required KB Items: installed_sw/RabbitMQ

Patch Publication Date: 3/25/2025

Vulnerability Publication Date: 3/25/2025

Reference Information

CVE: CVE-2025-30219

IAVA: 2025-A-0311