CVE-2021-23727Celeryproject Celery
High 7.5
Follow: this CVE · Celeryproject · Celeryproject Celery We alert you by email or Slack (account required).
- Priority
- 45
- CVSS 3.1
- 7.5
- EPSS
- 3.6% probability of exploitation in 30 days · percentile 90
- Auth required
- Yes
- Published
- Dec 29, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-77
- Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
This affects the package celery before 5.2.2. It by default trusts the messages and metadata stored in backends (result stores). When reading task metadata from the backend, the data is deserialized. Given that an attacker can gain access to, or somehow manipulate the metadata within a celery backend, they could trigger a stored command injection vulnerability and potentially gain further access to the system.
What to do
- Apply the vendor's security update for Celery.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | celery |
< 5.2.2 |
5.2.2 |
pip install "celery>=5.2.2" |
| PyPI | celery |
< 5.2.2 |
5.2.2 |
pip install "celery>=5.2.2" |
Per OSV / GitHub Advisories (GHSA-q4xr-rc97-m4xx, PYSEC-2021-858). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| celeryproject | celery | < 5.2.2 |
| fedoraproject | extra_packages_for_enterprise_linux | 7.0 |
| fedoraproject | fedora | 35 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link Release Notes Third Party Advisory
- lists.fedoraproject.org
- snyk.io Exploit Third Party Advisory