CVE-2024-51988: Rabbit common RabbitMQ HTTP API's Queue Deletion Vulnerability

HIGH
Advisory Identifier: GHSA-pj33-75x5-32j4
CVSS 6.5
CWE-284
Published
Advisory Summary

CVE-2024-51988 is a HIGH (CVSS 6.5) rabbitmq http api's queue deletion vulnerability (CWE-284: Improper Access Control) affecting Rabbit common libraries in the Hex ecosystem. The issue involves rabbitmq http api's queue deletion endpoint does not verify that the user has a required permission. Remediation is available by upgrading affected packages to version 3.12.11.

CVE-2024-51988 at a Glance

CVE Identifier CVE-2024-51988
GHSA Identifier GHSA-pj33-75x5-32j4
Severity HIGH
CVSS v3.1 Base Score 6.5
CWE Classification CWE-284: Improper Access Control
Affected Product Rabbit common
Package Ecosystem Hex
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2024-51988

To remediate this vulnerability, upgrade all affected Rabbit common dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

rabbit_common fixed: 3.12.11
Upgrade rabbit_common to 3.12.11
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for rabbit_common

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-51988, inspect your project dependencies for Rabbit common:

inspect dependencies for rabbit_common

Analyze the terminal output to locate any version of Rabbit common in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.12.11), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Rabbit common, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Queue deletion via the HTTP API was not verifying the `configure` permission of the user. ### Impact Users who had all of the following: 1. Valid credentials 2. Some permissions for the target virtual host 3. HTTP API access could delete queues it had no (deletion) permissions for. ### Workarounds Disable management plugin and use, for example, [Prometheus and Grafana](https://www.rabbitmq.com/docs/prometheus) for monitoring. ### OWASP Classification OWASP Top10 A01:2021 – Broken Access Control

CVE-2024-51988 Affected Rabbit common Versions

1 component(s)
Fixed Versions:
3.12.11
Product / Package Ecosystem Affected Versions Fixed Version
rabbit_common
Hex
≥ 3.12.7
< 3.12.11
3.12.11

References

Frequently Asked Questions

What is CVE-2024-51988?
CVE-2024-51988 is a security vulnerability in Rabbit common involving RabbitMQ HTTP API's queue deletion endpoint does not verify that the user has a required permission under CWE-284: Improper Access Control.
Which Rabbit common versions are affected?
Affected versions include releases prior to 3.12.11 across affected packages: rabbit_common.
What version fixes CVE-2024-51988?
Upgrading to 3.12.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rabbit_common affected?
Yes, rabbit_common is affected in releases prior to 3.12.11. Upgrade your dependency to 3.12.11 or later.
What is the CVSS score of CVE-2024-51988?
CVE-2024-51988 has a CVSS v3.1 base score of 6.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2024-51988?
CVE-2024-51988 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Hex dependencies for CVE-2024-51988?
Run the dependency tree command: 'inspect dependencies for rabbit_common'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-pj33-75x5-32j4",
  "modified" : "2024-11-06T23:38:44Z",
  "published" : "2024-11-06T19:55:13Z",
  "aliases" : [ "CVE-2024-51988" ],
  "summary" : "RabbitMQ HTTP API's queue deletion endpoint does not verify that the user has a required permission",
  "details" : "### Summary\n\nQueue deletion via the HTTP API was not verifying the `configure` permission of the user.\n\n### Impact\n\nUsers who had all of the following:\n\n1. Valid credentials\n2. Some permissions for the target virtual host\n3. HTTP API access \n\ncould delete queues it had no (deletion) permissions for.\n\n### Workarounds\n\nDisable management plugin and use, for example, [Prometheus and Grafana](https://www.rabbitmq.com/docs/prometheus) for monitoring.\n\n### OWASP Classification\n\nOWASP Top10 A01:2021 – Broken Access Control\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Hex",
      "name" : "rabbit_common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.12.7"
      }, {
        "fixed" : "3.12.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-pj33-75x5-32j4"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-51988"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rabbitmq/rabbitmq-server"
  }, {
    "type" : "WEB",
    "url" : "https://www.rabbitmq.com/docs/prometheus"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-06T19:55:13Z",
    "nvd_published_at" : "2024-11-06T20:15:06Z"
  }
}