CVE-2011-4356: Celery Celery Local Privilege Escalation Vulnerability Vulnerability
MODERATECVE-2011-4356 is a MODERATE celery local privilege escalation vulnerability vulnerability (CWE-269: Improper Privilege Management) affecting Celery libraries in the PyPI ecosystem. The issue involves celery local privilege escalation vulnerability. Remediation is available by upgrading affected packages to version 2.2.8, 2.3.4, 2.4.4.
CVE-2011-4356 at a Glance
How to Fix CVE-2011-4356
To remediate this vulnerability, upgrade all affected Celery dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install celery>=2.2.8
pip install celery>=2.3.4
pip install celery>=2.4.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show celery
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2011-4356, inspect your installed packages using pip:
pip show celery
Analyze the terminal output to locate any version of Celery in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.8), your application is affected.
Note: The pip show celery command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Celery, 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-4356 Affected Celery Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
celery
|
PyPI |
≥ 2.1.0
< 2.2.8
|
2.2.8
|
|
celery
|
PyPI |
≥ 2.3.0
< 2.3.4
|
2.3.4
|
|
celery
|
PyPI |
≥ 2.4.0
< 2.4.4
|
2.4.4
|
References
Frequently Asked Questions
What is CVE-2011-4356?
Which Celery versions are affected?
What version fixes CVE-2011-4356?
Is celery affected?
What CWE is associated with CVE-2011-4356?
How can I check PyPI dependencies for CVE-2011-4356?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rpc6-h455-3rx5",
"modified" : "2024-09-06T16:36:28Z",
"published" : "2022-05-17T05:36:00Z",
"aliases" : [ "CVE-2011-4356" ],
"summary" : "Celery local privilege escalation vulnerability",
"details" : "Celery 2.1 and 2.2 before 2.2.8, 2.3 before 2.3.4, and 2.4 before 2.4.4 changes the effective id but not the real id during processing of the --uid and --gid arguments to celerybeat, celeryd_detach, celeryd-multi, and celeryev, which allows local users to gain privileges via vectors involving crafted code that is executed by the worker process.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "celery"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.2.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "celery"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "2.3.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "celery"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.4.0"
}, {
"fixed" : "2.4.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-4356"
}, {
"type" : "WEB",
"url" : "https://github.com/celery/celery/pull/544"
}, {
"type" : "WEB",
"url" : "https://github.com/celery/celery/commit/53514b158b743678d8993638be5920cd09ccc35c"
}, {
"type" : "WEB",
"url" : "https://github.com/celery/celery/commit/73388921731a0e6feb28ab0d389c4f7dc4d524f6"
}, {
"type" : "WEB",
"url" : "https://github.com/celery/celery/commit/e0767e40994754fe8482bf4ff622c5c6d0b9f671"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/celery/celery"
}, {
"type" : "WEB",
"url" : "https://github.com/celery/celery/blob/master/docs/sec/CELERYSA-0001.txt"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/celery/PYSEC-2011-17.yaml"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20140722114447/http://secunia.com/advisories/46973"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200305001706/http://www.securityfocus.com/bid/50825"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-269" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-01T16:44:52Z",
"nvd_published_at" : "2011-12-05T11:55:00Z"
}
}