Vulnerabilities in pkg:pypi/celery

PACKAGE
Advisory Identifier: GHSA-rpc6-h455-3rx5
Advisory Summary

CVE-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.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/celery

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/celery. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-rpc6-h455-3rx5 CVE-2011-4356 MODERATE Celery local privilege escalation vulnerability
GHSA-q4xr-rc97-m4xx CVE-2021-23727 HIGH OS Command Injection in celery

CVE-2011-4356 at a Glance

CVE Identifier CVE-2011-4356
GHSA Identifier GHSA-rpc6-h455-3rx5
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-269: Improper Privilege Management
Affected Product Celery
Package Ecosystem PyPI
Published Date
Last Updated

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.

celery fixed: 2.2.8
pip install celery>=2.2.8
celery fixed: 2.3.4
pip install celery>=2.3.4
celery fixed: 2.4.4
pip install celery>=2.4.4
Verify Direct and Transitive Dependencies

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

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.

CVE-2011-4356 Affected Celery Versions

3 component(s)
Fixed Versions:
2.2.82.3.42.4.4
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?
CVE-2011-4356 is a security vulnerability in Celery involving Celery local privilege escalation vulnerability under CWE-269: Improper Privilege Management.
Which Celery versions are affected?
Affected versions include releases prior to 2.2.8, 2.3.4, 2.4.4 across affected packages: celery.
What version fixes CVE-2011-4356?
Upgrading to 2.2.8, 2.3.4, 2.4.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is celery affected?
Yes, celery is affected in releases prior to 2.2.8, 2.3.4, 2.4.4. Upgrade your dependency to 2.2.8, 2.3.4, 2.4.4 or later.
What CWE is associated with CVE-2011-4356?
CVE-2011-4356 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check PyPI dependencies for CVE-2011-4356?
Run the dependency tree command: 'pip show celery'. 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-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"
  }
}