CVE-2021-23727
HIGH 7.5CVSS 3.1OS Command Injection in celery
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.
- Published
- 29 Dec 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-77CWE-78
- Also known as
- GHSA-q4xr-rc97-m4xxPYSEC-2021-858SNYK-PYTHON-CELERY-2314953
- Sources
- NVDJSONOSV GHSA-q4xr-rc97-m4xxJSONOSV PYSEC-2021-858JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | celeryproject | celerycpe:2.3:a:celeryproject:celery:*:*:*:*:*:python:*:* |
< 5.2.2 | 5.2.2 |
| NVD | fedoraproject | extra_packages_for_enterprise_linuxcpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* |
= 35 | |
| OSV | PyPI | celery | < 5.2.2 | 5.2.2 |
References
- https://github.com/celery/celery/blob/master/Changelog.rst%23522 · Broken Link, Release Notes, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SYXRGHWHD2WWMHBWCVD5ULVINPKNY3P5/
- https://snyk.io/vuln/SNYK-PYTHON-CELERY-2314953 · Exploit, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-23727 · ADVISORY
- https://github.com/celery/celery/commit/1f7ad7e6df1e02039b6ab9eec617d283598cad6b · WEB
- https://github.com/advisories/GHSA-q4xr-rc97-m4xx · ADVISORY
- https://github.com/celery/celery · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/celery/PYSEC-2021-858.yaml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYXRGHWHD2WWMHBWCVD5ULVINPKNY3P5 · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 29 Dec 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Dec 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Jan 2022)