CVE-2021-23727
JSON

7.5high

Stored Command Injection

Severity
7.5high CVSS:3.1 by snyk
Exploit likelihood
3.60% (higher than 89% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-q4xr-rc97-m4xxPYSEC-2021-858SNYK-PYTHON-CELERY-2314953

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

Product or packageVersionsReported by
celeryfrom unspecified before 5.2.2CVE List
celery (PyPI)before 5.2.2GitHub Advisory Database, PyPA Advisory Database
celeryproject celerybefore 5.2.2NVD
fedoraproject extra_packages_for_enterprise_linux7.0NVD
fedoraproject fedora35NVD

All scores

snyk7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.0medium CVSS:2.0AV:N/AC:M/Au:S/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

NVD (es)

Esto afecta al paquete celery versiones anteriores a 5.2.2. Por defecto confía en los mensajes y metadatos almacenados en los backends (almacenes de resultados). Cuando son leídos los metadatos de la tarea desde el backend, los datos son deserializados. Dado que un atacante puede conseguir acceso a, o de alguna manera manipular los metadatos dentro de un backend de celery, podría desencadenar una vulnerabilidad de inyección de comandos almacenados y potencialmente conseguir acceso al sistema

References

https://snyk.io/vuln/SNYK-PYTHON-CELERY-2314953advisory, exploit, third-party-advisory, web
https://github.com/celery/celery/blob/master/Changelog.rst%23522broken-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-23727advisory
https://github.com/celery/celery/commit/1f7ad7e6df1e02039b6ab9eec617d283598cad6bweb
https://github.com/advisories/GHSA-q4xr-rc97-m4xxadvisory
https://github.com/celery/celerypackage
https://github.com/pypa/advisory-database/tree/main/vulns/celery/PYSEC-2021-858.yamlweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYXRGHWHD2WWMHBWCVD5ULVINPKNY3P5web

Sources

SourceRecordLicence
CVE ListCVE-2021-23727 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-q4xr-rc97-m4xx changed 2024-09-06CC-BY-4.0
NVDCVE-2021-23727 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-858 changed 2023-11-08CC-BY-4.0