Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-23727
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 05:14 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-23727
Complete source record
{
"id": "a774f7e6122f16fc67e6a1ece760453f6ba1e24882b4f672436241d7543e129e",
"url": "https://osv.dev/vulnerability/CVE-2021-23727",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-23727",
"summary": "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.",
"evidence": "osv:CVE-2021-23727",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-23727",
"aliases": [
"CVE-2021-23727",
"GHSA-q4xr-rc97-m4xx",
"PYSEC-2021-858",
"SNYK-PYTHON-CELERY-2314953"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/celery/celery",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "b21c13d234dd6d6c197436374ab1bb5db4be62c7"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:celeryproject:celery:*:*:*:*:*:python:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "5.2.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v5.2.1",
"v5.2.0",
"v5.2.0rc2",
"v5.2.0rc1",
"v5.2.0b3",
"v5.2.0b2",
"v5.2.0b1",
"v5.1.2",
"v5.1.1",
"v5.1.0",
"v5.0.5",
"v5.1.0rc1",
"v5.1.0b1",
"v5.0.4",
"v5.0.3",
"v5.0.2",
"v5.0.1",
"v5.0.0",
"v4.3.0",
"v5.0.0rc3",
"v5.0.0rc2",
"v5.0.0rc1",
"v5.0.0b1",
"v4.4.7",
"v4.4.6",
"v4.4.5",
"v4.4.4",
"4.4.3",
"4.4.2",
"4.4.1",
"4.4.0",
"4.4.0rc5",
"4.4.0rc4",
"4.4.0rc3",
"4.4.0rc2",
"4.4.0rc1",
"v4.3.0rc3",
"v4.3.0rc2",
"v4.3.0rc1",
"v4.2.0",
"v4.2.0rc4",
"v4.2.0rc3",
"v4.2.0rc2",
"v4.2.0rc1",
"v4.0.2",
"v4.0.1",
"v4.0.0",
"v4.0.0rc6",
"v4.0.0rc5",
"v4.0.0rc4",
"v4.0.0rc3",
"v3.1.8",
"v3.1.7",
"v3.1.5",
"v3.1.4",
"v3.1.2",
"v3.1.1",
"v3.1.0",
"v2.5.1",
"v2.5.0",
"v2.5.0rc1",
"v2.3.0",
"v2.3.1",
"v2.3.0rc2",
"v2.3.0rc1",
"v2.1.0",
"v2.1.0rc4",
"v2.1.0rc3",
"v2.1.0rc2",
"v2.1.0rc1",
"v2.1.0a6",
"v2.0.2",
"semver",
"v2.0.1",
"v2.0.0",
"v1.1.3",
"v1.1.2",
"v1.1.1",
"v1.0.2",
"v1.0.1",
"v1.0.1-pre2",
"v1.0.0",
"v1.0.0-pre4",
"v1.0.0-pre3",
"v0.9.7",
"v0.8.0",
"v0.8.0-pre1",
"v0.7.2",
"v0.7.1",
"v0.3.2",
"v0.3.1",
"v0.3.0",
"v0.2.3",
"v0.2.0",
"v0.2.0-pre3",
"v0.2.0-pre2",
"v0.2.0-pre1",
"v0.1.15",
"v0.1.13",
"v0.1.12",
"v0.1.11",
"v0.1.10",
"v0.1.8",
"v0.1.7"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23727.json"
}
}
],
"modified": "2026-10-24T10:30:25.955438331Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SYXRGHWHD2WWMHBWCVD5ULVINPKNY3P5/",
"https://github.com/celery/celery/blob/master/Changelog.rst%23522",
"https://snyk.io/vuln/SNYK-PYTHON-CELERY-2314953"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:7.0:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:extra_packages_for_enterprise_linux",
"extracted_events": [
{
"range": [
{
"introduced": "7.0"
},
{
"last_affected": "7.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "35"
},
{
"last_affected": "35"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-23727",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 431493,
"published_at": "2021-12-29T17:15:07.413+00:00"
}