{
  "url": "https://tldrcve.com/rabbitmq-oauth2-token/",
  "json": "https://tldrcve.com/rabbitmq-oauth2-token.json",
  "verdict_label": "Patch now if…",
  "scare_label": "Check today",
  "slug": "rabbitmq-oauth2-token",
  "name": "RabbitMQ OAuth2",
  "aliases": [
    "rabbitmq",
    "rabbitmq management",
    "rabbitmq-server",
    "oauth2",
    "oauth",
    "token endpoint",
    "token proxy",
    "ghsa-cfvg-5q96-8mhm",
    "tanzu rabbitmq"
  ],
  "cves": [],
  "ghsa": [
    "GHSA-cfvg-5q96-8mhm"
  ],
  "product": "RabbitMQ",
  "disclosed": "2026-11-27",
  "updated": "2026-11-30",
  "verdict": "if",
  "tile_line": "No-login admin tokens on some OAuth2 setups.",
  "tldr": "RabbitMQ's management plugin lets anyone who can reach it get access tokens, admin ones if your identity provider allows it, when OAuth2 sign-in uses a client secret. The advisory shows how; no attacks seen. Update to 4.4.1 or 4.3.8.",
  "summary": "A web route the management UI uses to swap sign-in codes for tokens, `/js/oidc-oauth/token-endpoint/<resource-server-id>`, forwards anyone's request to the identity provider, adds RabbitMQ's client secret and passes on the scope the caller asks for; with `grant_type=client_credentials` the provider can hand back a signed token with no login at all. RabbitMQ rates it critical; the reporter, shanz0ng, used such a token to create a new administrator and, as the password on the AMQP 0-9-1 port, to read, publish and delete messages on every virtual host. The fix (pull request #17937, 22 Oct) lets the route pass on only sign-in codes and refresh tokens; it shipped on 16 Nov and the advisory followed on 27 Nov, with no CVE yet. RabbitMQ published six more advisories that day; the most serious, a high-rated CSRF in the management API (GHSA-c22p-g5xq-x5jm), is fixed in the same releases.",
  "status": {
    "exploit": "public",
    "attacks": "none",
    "kev": null,
    "scare": 2.6,
    "no_login": true
  },
  "status_cite": {
    "no_login": [
      1
    ],
    "exploit": [
      1
    ],
    "attacks": [
      1,
      10
    ],
    "kev": [
      10
    ]
  },
  "affected": [
    {
      "label": "4.4.0, 4.3.3–4.3.7 or 4.2.9–4.2.12",
      "text": "Older releases don't have the token route, and 4.4.1 and 4.3.8 fix it. The advisory lists 4.2.13 as fixed, but it isn't public: community support for 4.2 ended on 31 Jul 2026, and the last community 4.2 release is 4.2.9.",
      "cmd": "rabbitmq-diagnostics server_version -q",
      "cite": [
        1,
        2,
        3,
        6
      ]
    },
    {
      "label": "OAuth2 sign-in with a client secret",
      "text": "The management UI signs in through OAuth2 (`management.oauth_enabled = true`) and a client secret is set: `management.oauth_client_secret`, or `oauth_client_secret` for one resource server (`management.oauth_resource_servers.<id>.oauth_client_secret`). The advisory names only the first; RabbitMQ's code uses either. RabbitMQ's docs say the UI shouldn't normally need a secret, but some providers require one, for example UAA to refresh tokens. Look for these keys in your config files; `rabbitmq-diagnostics status` lists the ones your node uses.",
      "cite": [
        1,
        12,
        5,
        11
      ]
    },
    {
      "label": "Attackers can reach the UI",
      "text": "The attacker needs to reach the management plugin's web port: 15672 by default, or 15671, the usual port when HTTPS is set up. No login is needed.",
      "cite": [
        1,
        5
      ]
    },
    {
      "label": "Your provider allows it",
      "text": "The attacker asks your identity provider for a token as RabbitMQ's own client, with `client_credentials` or `password`, and picks the scope. What they get is what your provider allows that client; the advisory says the reference setups in RabbitMQ's OAuth2 guide grant administrator scopes. If you can't tell, we'd assume yours does.",
      "cite": [
        1
      ]
    }
  ],
  "do": [
    {
      "label": "Update RabbitMQ",
      "text": "Update to 4.4.1 or 4.3.8 (16 Nov 2026). On 4.2.9 to 4.2.12, move to 4.3 or 4.4: the 4.2.13 the advisory lists as fixed isn't public.",
      "cite": [
        1,
        2,
        3
      ],
      "versions": [
        "rabbitmq"
      ]
    },
    {
      "label": "Can't update yet?",
      "text": "The advisory gives two workarounds: remove `management.oauth_client_secret`, or put authentication in front of the management port. We'd also remove any per-resource-server `oauth_client_secret`: the advisory doesn't mention it, but RabbitMQ's code uses it the same way. If your provider needs the secret, removing it can break signing in to the UI, so in that case we'd block the port from untrusted networks instead.",
      "cite": [
        1,
        12,
        5
      ]
    },
    {
      "label": "Look for a break-in",
      "text": "RabbitMQ doesn't say what to check. We would, because updating doesn't undo what a stolen token already did: in the advisory's test, the token created a new administrator, and a token issued before the update keeps working until it expires. List users and remove any you didn't create, and look in your provider's logs for `client_credentials` or `password` token requests for RabbitMQ's client: the advisory says they come from the broker itself. We don't think the secret itself needs rotating for this bug: RabbitMQ's code adds it only to the request it sends your provider, so the attacker never sees it.",
      "cmd": "rabbitmqctl list_users",
      "cite": [
        1,
        7,
        12,
        13
      ]
    }
  ],
  "fixed_in": {
    "rabbitmq": {
      "4.4": "4.4.1",
      "4.3": "4.3.8"
    }
  },
  "sources": [
    {
      "title": "GitHub: RabbitMQ advisory GHSA-cfvg-5q96-8mhm, affected and fixed versions, how it works, the requests, workarounds",
      "url": "https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-cfvg-5q96-8mhm",
      "date": "27 Nov"
    },
    {
      "title": "GitHub: RabbitMQ releases, 4.4.1 and 4.3.8",
      "url": "https://github.com/rabbitmq/rabbitmq-server/releases",
      "date": "16 Nov"
    },
    {
      "title": "RabbitMQ: release information, community and commercial support per line",
      "url": "https://www.rabbitmq.com/release-information"
    },
    {
      "title": "GitHub: RabbitMQ pull request #17937, the fix",
      "url": "https://github.com/rabbitmq/rabbitmq-server/pull/17937",
      "date": "22 Oct"
    },
    {
      "title": "RabbitMQ docs: management plugin, port 15672 and OAuth2 client secret",
      "url": "https://www.rabbitmq.com/docs/management"
    },
    {
      "title": "RabbitMQ docs: rabbitmq-diagnostics server_version",
      "url": "https://www.rabbitmq.com/docs/man/rabbitmq-diagnostics.8"
    },
    {
      "title": "RabbitMQ docs: rabbitmqctl list_users",
      "url": "https://www.rabbitmq.com/docs/man/rabbitmqctl.8"
    },
    {
      "title": "GitHub: RabbitMQ advisory GHSA-c22p-g5xq-x5jm, CSRF in the management API",
      "url": "https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-c22p-g5xq-x5jm",
      "date": "27 Nov"
    },
    {
      "title": "GitHub: RabbitMQ security advisories, the 27 Nov batch",
      "url": "https://github.com/rabbitmq/rabbitmq-server/security/advisories",
      "date": "27 Nov"
    },
    {
      "title": "CISA KEV catalog: not listed",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"
    },
    {
      "title": "RabbitMQ docs: configuration file location",
      "url": "https://www.rabbitmq.com/docs/configure"
    },
    {
      "title": "GitHub: RabbitMQ 4.4.0 token proxy code, which client secrets it uses",
      "url": "https://github.com/rabbitmq/rabbitmq-server/blob/v4.4.0/deps/rabbitmq_management/src/rabbit_mgmt_oauth_token_proxy.erl"
    },
    {
      "title": "RabbitMQ docs: OAuth 2.0, tokens are accepted until they expire",
      "url": "https://www.rabbitmq.com/docs/oauth2"
    }
  ],
  "changes": [
    {
      "date": "2026-11-30",
      "text": "Published."
    }
  ],
  "safe_versions": [
    {
      "id": "rabbitmq",
      "name": "RabbitMQ",
      "url": "https://tldrcve.com/versions/rabbitmq/",
      "json": "https://tldrcve.com/versions/rabbitmq.json",
      "checked": "2026-12-03",
      "lines": [
        {
          "line": "4.4",
          "latest": "4.4.1",
          "released": "2026-11-16"
        },
        {
          "line": "4.3",
          "latest": "4.3.8",
          "released": "2026-11-16",
          "note": "Community support ends 31 Jan 2027."
        }
      ],
      "older": "Community support for 4.2 and older has ended. Newer 4.2, 4.1 and 3.13 releases go to commercial customers only; otherwise move to 4.3 or 4.4."
    }
  ]
}
