CVE-2022-31008: Rabbit common RabbitMQ Has Predictable Credential Obfuscation Vulnerability
MODERATECVE-2022-31008 is a MODERATE (CVSS 5.5) rabbitmq has predictable credential obfuscation vulnerability (CWE-330: Use of Insufficiently Random Values) affecting Rabbit common libraries in the Hex ecosystem. The issue involves rabbitmq has predictable credential obfuscation seed value used in shovel and federation plugins. Remediation is available by upgrading affected packages to version 3.10.2, 3.9.18, 3.8.32.
CVE-2022-31008 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2022-31008
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.
Upgrade rabbit_common to 3.10.2
Upgrade rabbit_common to 3.9.18
Upgrade rabbit_common to 3.8.32
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-2022-31008, 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.10.2), 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-330: Use of Insufficiently Random Values, where the product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers. 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
CVE-2022-31008 Affected Rabbit common Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rabbit_common
|
Hex |
≥ 3.10.0
< 3.10.2
|
3.10.2
|
|
rabbit_common
|
Hex |
≥ 3.9.0
< 3.9.18
|
3.9.18
|
|
rabbit_common
|
Hex |
≥ 3.8.0
< 3.8.32
|
3.8.32
|
References
Frequently Asked Questions
What is CVE-2022-31008?
Which Rabbit common versions are affected?
What version fixes CVE-2022-31008?
Is rabbit_common affected?
What is the CVSS score of CVE-2022-31008?
What CWE is associated with CVE-2022-31008?
How can I check Hex dependencies for CVE-2022-31008?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v9gv-xp36-jgj8",
"modified" : "2026-06-30T16:15:48Z",
"published" : "2026-06-30T16:15:48Z",
"aliases" : [ "CVE-2022-31008" ],
"summary" : "RabbitMQ has predictable credential obfuscation seed value used in Shovel and Federation plugins",
"details" : "### Impact\n\nShovel and Federation plugins perform URI obfuscation in their worker (link) state. The encryption key used to encrypt\nthe URI was seeded with a predictable secret.\n\nThis means that in case of certain exceptions related to Shovel and Federation plugins,\nreasonably easily deobfuscatable data could appear in the node log.\n\nPatched versions correctly use a cluster-wide secret for that purpose.\n\n### Patches\n\nPatched versions:\n\n * `3.10.2`\n * `3.9.18`\n * `3.8.32`\n\n### Workarounds\n\nDisable Shovel and Federation plugins.\n\n### Credits\n\nRabbitMQ core team would like to thank Lajos @luos Gerecs and Anh Nguyen from Erlang Solutions\nfor responsibly disclosing and working with us on a patch for this vulnerability.\n\n### For more information\n\n * [Mailing list](https://groups.google.com/forum/#!forum/rabbitmq-users)\n * [Community Slack](https://rabbitmq-slack.herokuapp.com/)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Hex",
"name" : "rabbit_common"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.10.0"
}, {
"fixed" : "3.10.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Hex",
"name" : "rabbit_common"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.9.0"
}, {
"fixed" : "3.9.18"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Hex",
"name" : "rabbit_common"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.8.0"
}, {
"fixed" : "3.8.32"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-v9gv-xp36-jgj8"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-31008"
}, {
"type" : "WEB",
"url" : "https://github.com/rabbitmq/rabbitmq-server/pull/4841"
}, {
"type" : "WEB",
"url" : "https://github.com/rabbitmq/rabbitmq-server/commit/c22e1cb20e656d211e025c417d1fc75a9067b717"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rabbitmq/rabbitmq-server"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-330", "CWE-335" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-30T16:15:48Z",
"nvd_published_at" : "2022-10-06T18:16:00Z"
}
}