Vulnerability · Published Dec 29, 2021 · Assigned by snyk

CVE-2021-23727Stored Command Injection

High 7.5

In plain English

A high-severity security flaw in celery. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.6% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)3.6%top 10.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12celery5.2.3-1DEBIAN-CVE-2021-23727
Debian:13celery5.2.3-1DEBIAN-CVE-2021-23727
Debian:14celery5.2.3-1DEBIAN-CVE-2021-23727
PyPIcelery5.2.2GHSA-q4xr-rc97-m4xx
PyPIcelery5.2.2PYSEC-2021-858
Ubuntu:24.04:LTSceleryno fix listedUBUNTU-CVE-2021-23727

Affected products (as reported)

VendorProductVersions
n/a celery unspecified – before 5.2.2

References