Bug 1977002 (CVE-2021-32718)

Summary: CVE-2021-32718 rabbitmq-server: improper neutralization of script-related HTML tags in a web page (basic XSS) in management UI
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: apevec, cmeyers, gblomqui, jeckersb, jjoyce, jschluet, lemenkov, lhh, lpeer, mabashia, mburns, notting, plemenko, rjones, rpetrell, sclewis, slinaber, smcdonal, s
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rabbitmq 3.8.17 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-22 21:54:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1977003, 1977004, 1990956, 1990957, 1990958, 1990959    
Bug Blocks: 1977005    

Description Guilherme de Almeida Suckevicz 2021-06-28 18:00:09 UTC
RabbitMQ is a multi-protocol messaging broker. In rabbitmq-server prior to version 3.8.17, a new user being added via management UI could lead to the user's bane being rendered in a confirmation message without proper `<script>` tag sanitization, potentially allowing for JavaScript code execution in the context of the page. In order for this to occur, the user must be signed in and have elevated permissions (other user management). The vulnerability is patched in RabbitMQ 3.8.17. As a workaround, disable `rabbitmq_management` plugin and use CLI tools for management operations and Prometheus and Grafana for metrics and monitoring.

Reference:
https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-c3hj-rg5h-2772

Upstream patch:
https://github.com/rabbitmq/rabbitmq-server/pull/3028

Comment 1 Guilherme de Almeida Suckevicz 2021-06-28 18:00:41 UTC
Created rabbitmq-server tracking bugs for this issue:

Affects: epel-7 [bug 1977004]
Affects: fedora-all [bug 1977003]

Comment 4 Tapas Jena 2021-07-06 09:28:13 UTC
RabbitMq-server is no more relevant(not in use) to Ansible Tower after Tower v3.6 and and Tower upto v3.6 are already EOL. Hence, marking Tower as "Not Affected" by this vulnerability.

Comment 5 Product Security DevOps Team 2021-07-22 21:54:42 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-32718

Comment 7 errata-xmlrpc 2022-12-07 19:25:36 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 16.2

Via RHSA-2022:8851 https://access.redhat.com/errata/RHSA-2022:8851

Comment 8 errata-xmlrpc 2022-12-07 20:27:01 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 16.1

Via RHSA-2022:8867 https://access.redhat.com/errata/RHSA-2022:8867