Advisory

UBUNTU-CVE-2026-66077

Also known as: CVE-2026-66077

Summary

The record has no summary.

Details

RabbitMQ is a messaging and streaming broker. Prior to versions 3.13.15, 4.0.20, 4.1.11, and 4.2.6, The management UI uses EJS 1.0 in which <%= ... %> does NOT HTML-escape. connection.ejs:135 renders <%= connection.ssl_details.peer_cert_subject %> (and peer_cert_issuer) directly into the page. The same pattern appears in streamConnection.ejs:102,106,110. The values come from rabbit_ssl:peer_cert_subject/1 which formats the DN as a string without HTML escaping. The verifier corrected the original researcher's claim: this is reachable only when the listener is configured with verify_peer (so the certificate must be signed by a CA in the broker's trust store, not arbitrary self-signed); however, in deployments using mTLS for client authentication, any user who can request a certificate from the organisational CA controls the Subject CN. An attacker who can obtain a TLS client certificate signed by a CA the broker trusts (with verify_peer enabled) can embed JavaScript in the certificate's Subject DN. When any administrator views that connection in the management UI, the script executes in the admin's browser session, allowing full account takeover (create users, export definitions, etc.). The management UI's CSP includes 'unsafe-inline', so inline script execution is not blocked. Preconditions include TLS listener configured with ssl_options.verify = verify_peer Attacker can obtain a CA-signed client certificate with attacker-chosen Subject (e.g. self-service corporate PKI, or rabbitmq_trust_store plugin in use) Administrator views the connection detail page. This issue is fixed in versions 3.13.15, 4.0.20, 4.1.11, and 4.2.6.

Severity

Medium Basis: CVSS v3 score 6.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Dates

Published
2026-09-23 21:16 UTC
Modified
2026-10-22 10:30 UTC

Affected packages and fixes

rabbitmq-server

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 3.9.27-0ubuntu0.6 (ecosystem)

Fixed versions

3.9.27-0ubuntu0.6

Fix

  • Fixed version 3.9.27-0ubuntu0.6
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

rabbitmq-server

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 3.12.1-1ubuntu1.7 (ecosystem)

Fixed versions

3.12.1-1ubuntu1.7

Fix

  • Fixed version 3.12.1-1ubuntu1.7
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

rabbitmq-server

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 4.0.5-10ubuntu5.2 (ecosystem)

Fixed versions

4.0.5-10ubuntu5.2

Fix

  • Fixed version 4.0.5-10ubuntu5.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences