CVE-2021-23727 json
Stored Command Injection
published 4y ago modified 4mo ago also GHSA-q4xr-rc97-m4xx , PYSEC-2021-858 , EUVD-2021-0040
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.6%
- EPSS 3.6% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi celery 5.2.2
- n/a celery 5.2.2
- celery Debian 14, Debian 13, Debian 12 5.2.3-1
debian advisories DEBIAN-CVE-2021-23727
Is CVE-2021-23727 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-23727 updated cvss 8.0
celery: stored command injection vulnerability may allow privileges escalation
-
Red Hat Ansible Automation Platform 2 celery Red Hat Ansible Tower 3 celery Red Hat Satellite 6 python-celery, python2-celery Red Hat Update Infrastructure 3 for Cloud Providers python-celerynot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.60% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-PYTHON-CELERY-2314953 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | 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 |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | celery | <5.2.2 |
5.2.2 |
Affected products
- n/a celery
Classification
References
-
github.com
/celery/celery/commit/1f7ad7e6df1e02039b6ab9eec617d283598cad6b
web
-
snyk.io
/vuln/SNYK-PYTHON-CELERY-2314953
web, exploit, third-party-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/SYXRGHWHD2WWMHBWCVD5ULVINPKNY3P5/
vendor-advisory
-
github.com
/celery/celery/blob/master/Changelog.rst%23522
web, broken-link, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-23727
advisory
-
github.com
/advisories/GHSA-q4xr-rc97-m4xx
advisory
-
github.com
/celery/celery
package
-
github.com
/pypa/advisory-database/tree/main/vulns/celery/PYSEC-2021-858.yaml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/SYXRGHWHD2WWMHBWCVD5ULVINPKNY3P5
web
Sources
- CVE List CVE-2021-23727
- GitHub Advisory GHSA-q4xr-rc97-m4xx
- NVD CVE-2021-23727
- OSV PYSEC-2021-858
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.