{"id":"CVE-2021-23727","aliases":["CVE-2021-23727","GHSA-q4xr-rc97-m4xx","PYSEC-2021-858","SNYK-PYTHON-CELERY-2314953"],"related":[],"kind":"vulnerability","state":"published","title":"Stored Command Injection","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-12-29T16:35:11.896Z","modified":"2026-06-17T03:38:52.137Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"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","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"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","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","score":6,"rating":"MEDIUM"}],"cwes":["CWE-77","CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"5.2.2","status":"affected"}],"product":"celery","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.2.2"}],"ecosystem":"PyPI","package":"celery","purl":"pkg:pypi/celery","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.2.2"}],"vendor":"celeryproject","product":"celery","cpe":"cpe:2.3:a:celeryproject:celery:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"7.0"}],"vendor":"fedoraproject","product":"extra_packages_for_enterprise_linux","cpe":"cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:7.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"35"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.2.2"}],"ecosystem":"PyPI","package":"celery","purl":"pkg:pypi/celery","source":"pysec"}],"references":[{"url":"https://snyk.io/vuln/SNYK-PYTHON-CELERY-2314953","tags":["advisory","exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/celery/celery/blob/master/Changelog.rst%23522","tags":["broken-link","release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SYXRGHWHD2WWMHBWCVD5ULVINPKNY3P5/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23727","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/celery/celery/commit/1f7ad7e6df1e02039b6ab9eec617d283598cad6b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-q4xr-rc97-m4xx","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/celery/celery","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/celery/PYSEC-2021-858.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYXRGHWHD2WWMHBWCVD5ULVINPKNY3P5","tags":["web"],"sources":["ghsa"]}],"credits":["Calum Hutton from Snyk Research Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23727","url":"https://www.cve.org/CVERecord?id=CVE-2021-23727","licence":"CVE Terms of Use","modified":"2024-09-16T20:53:22.597Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q4xr-rc97-m4xx","url":"https://github.com/advisories/GHSA-q4xr-rc97-m4xx","licence":"CC-BY-4.0","modified":"2024-09-06T16:46:57.644Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23727","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23727","licence":"Public domain","modified":"2026-06-17T03:38:52.137Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-858","url":"https://osv.dev/vulnerability/PYSEC-2021-858","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:12.931Z"}],"updatedAt":"2026-11-25T22:58:06.294Z","epss":{"score":0.03598,"percentile":0.89746,"date":"2026-12-01T12:00:22.000Z"}}