CVE-2011-4320: Ejabberd Denial of Service Vulnerability
MODERATECVE-2011-4320 is a MODERATE denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Ejabberd libraries in the Hex ecosystem. The issue involves ejabberd dos via malformed stanza. Remediation is available by upgrading affected packages to version 2.1.9, 3.0.0-alpha-4.
CVE-2011-4320 at a Glance
How to Fix CVE-2011-4320
To remediate this vulnerability, upgrade all affected Ejabberd 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 ejabberd to 2.1.9
Upgrade ejabberd to 3.0.0-alpha-4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for ejabberd
How to Check if You Are Affected
To determine whether your application is affected by CVE-2011-4320, inspect your project dependencies for Ejabberd:
inspect dependencies for ejabberd
Analyze the terminal output to locate any version of Ejabberd in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.9), 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Ejabberd, 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-2011-4320 Affected Ejabberd Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ejabberd
|
Hex |
< 2.1.9
|
2.1.9
|
|
ejabberd
|
Hex |
≥ 3.0.0-alpha-1
< 3.0.0-alpha-4
|
3.0.0-alpha-4
|
References
Frequently Asked Questions
What is CVE-2011-4320?
Which Ejabberd versions are affected?
What version fixes CVE-2011-4320?
Is ejabberd affected?
What CWE is associated with CVE-2011-4320?
How can I check Hex dependencies for CVE-2011-4320?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2h3q-v47h-f4rc",
"modified" : "2024-01-19T19:14:32Z",
"published" : "2022-05-17T05:32:37Z",
"aliases" : [ "CVE-2011-4320" ],
"summary" : "Ejabberd DoS via malformed stanza",
"details" : "The `mod_pubsub` module (mod_pubsub.erl) in ejabberd 2.1.8 and 3.0.0-alpha-3 allows remote authenticated users to cause a denial of service (infinite loop) via a stanza with a publish tag that lacks a node attribute.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Hex",
"name" : "ejabberd"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.9"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.1.8"
}
}, {
"package" : {
"ecosystem" : "Hex",
"name" : "ejabberd"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0-alpha-1"
}, {
"fixed" : "3.0.0-alpha-4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.0.0-alpha-3"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-4320"
}, {
"type" : "WEB",
"url" : "https://github.com/processone/ejabberd/commit/d3c4eab46f3cd54f7686cfed740d9c130b6801cf"
}, {
"type" : "WEB",
"url" : "https://github.com/processone/ejabberd/commit/d5b4d6785879f0a5192c26f5b5e218aec8104798"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/processone/ejabberd"
}, {
"type" : "WEB",
"url" : "https://support.process-one.net/browse/EJAB-1498"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/11/19/1"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/11/19/2"
}, {
"type" : "WEB",
"url" : "http://www.process-one.net/en/ejabberd/release_notes/release_note_ejabberd_2.1.9"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-19T19:14:32Z",
"nvd_published_at" : "2012-02-18T00:55:00Z"
}
}