# CVE-2021-23727: Stored Command Injection

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.60%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-29T16:35:11.896Z
- Modified: 2026-06-17T03:38:52.137Z
- Also known as: GHSA-q4xr-rc97-m4xx, PYSEC-2021-858, SNYK-PYTHON-CELERY-2314953
- Weaknesses: CWE-77, CWE-78
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- celery: from unspecified before 5.2.2
- celery (PyPI): before 5.2.2
- celeryproject celery: before 5.2.2
- fedoraproject extra_packages_for_enterprise_linux: 7.0
- fedoraproject fedora: 35

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.0 Medium `AV:N/AC:M/Au:S/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-PYTHON-CELERY-2314953> (exploit, advisory, third-party-advisory, web)
- <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/> (vendor-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)

## Sources

- CVE List: [CVE-2021-23727](https://www.cve.org/CVERecord?id=CVE-2021-23727), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-q4xr-rc97-m4xx](https://github.com/advisories/GHSA-q4xr-rc97-m4xx), CC-BY-4.0, modified 2024-09-06
- NVD: [CVE-2021-23727](https://nvd.nist.gov/vuln/detail/CVE-2021-23727), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-858](https://osv.dev/vulnerability/PYSEC-2021-858), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-23727 · Whole record: https://cve.day/CVE-2021-23727.json · Rebuilt by cve.day 2026-11-25T22:58:06.294Z
