Bug 1977008 (CVE-2021-32719)

Summary: CVE-2021-32719 rabbitmq-server: improper neutralization of script-related HTML tags in a web page (basic XSS) in federation management plugin
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.18 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-22 21:54:45 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: 1977009, 1977010, 1990960, 1990961, 1990962, 1990963    
Bug Blocks: 1977005    

Description Guilherme de Almeida Suckevicz 2021-06-28 18:06:07 UTC
RabbitMQ is a multi-protocol messaging broker. In rabbitmq-server prior to version 3.8.18, when a federation link was displayed in the RabbitMQ management UI via the `rabbitmq_federation_management` plugin, its consumer tag was rendered without proper <script> tag sanitization. This potentially allows for JavaScript code execution in the context of the page. The user must be signed in and have elevated permissions (manage federation upstreams and policies) for this to occur. The vulnerability is patched in RabbitMQ 3.8.18. As a workaround, disable the `rabbitmq_federation_management` plugin and use [CLI tools](https://www.rabbitmq.com/cli.html) instead.

Reference:
https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-5452-hxj4-773x

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

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

Affects: epel-7 [bug 1977010]
Affects: fedora-all [bug 1977009]

Comment 4 Tapas Jena 2021-07-06 09:28:56 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:45 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-32719

Comment 7 errata-xmlrpc 2022-12-07 19:25:38 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