Live threats

All CVEs / Celeryproject

CVE-2021-23727Celeryproject Celery

High 7.5

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Celery.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
celeryprojectcelery< 5.2.2
fedoraprojectextra_packages_for_enterprise_linux7.0
fedoraprojectfedora35

Official sources

References

Links published by the sources. Open them with care.