{"schemaVersion":3,"id":"CVE-2021-23727","aliases":["MGASA-2022-0029","GHSA-q4xr-rc97-m4xx","PYSEC-2021-858","SNYK-PYTHON-CELERY-2314953","UBUNTU-CVE-2021-23727","DEBIAN-CVE-2021-23727"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-12-29T16:35:11.896Z","modified":"2024-09-16T20:53:22.597Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":7.7,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6,"severity":"medium","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.03877,"percentile":0.90156,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.03877},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.03877,"percentile":0.90156}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.03877,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.03877,"percentile":0.90156}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_C5B99D3EA2CEC39C","name":"Exploit Reference (snyk.io)","source":"reference","url":"https://snyk.io/vuln/SNYK-PYTHON-CELERY-2314953","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command ('Command Injection')","description":"The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/77.html"}],"affected":[{"vendor":"celeryproject","product":"celery","name":"celery","label":"celery","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.2.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.2.2","eol":null,"hubHref":"/vendor/celeryproject/celery"},{"vendor":"debian","product":"celery","name":"celery","label":"celery","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/celery","purlType":"deb","versions":[{"text":"< 5.2.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.2.3-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"celery","name":"celery","label":"celery","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/celery","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"extra_packages_for_enterprise_linux","name":"extra packages for enterprise linux","label":"extra_packages_for_enterprise_linux","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0","eol":null,"hubHref":"/vendor/fedoraproject/extra_packages_for_enterprise_linux"},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"35","noFixRecorded":false,"fixedIn":null}],"versionsText":"35","eol":{"isEol":true,"eolDate":"2022-12-13T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"35","label":"35","eolFrom":"2022-12-13T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"mageia","product":"python-billiard","name":"python-billiard","label":"python-billiard","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/python-billiard","purlType":"rpm","versions":[{"text":"< 3.6.4.0-1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.4.0-1.mga8","eol":null,"hubHref":null},{"vendor":"mageia","product":"python-celery","name":"python-celery","label":"python-celery","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/python-celery","purlType":"rpm","versions":[{"text":"< 5.0.5-1.1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.5-1.1.mga8","eol":null,"hubHref":null},{"vendor":"PyPI","product":"celery","name":"celery","label":"celery","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/celery","purlType":"pypi","versions":[{"text":"< 5.2.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.2.2","eol":null,"hubHref":null}],"affectedCount":8,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://snyk.io/vuln/SNYK-PYTHON-CELERY-2314953","label":"snyk.io/vuln/SNYK-PYTHON-CELERY-2314953","hostname":"snyk.io","tags":["X Refsource MISC","WEB","Advisory","REPORT","Exploit","Third Party Advisory"]},{"url":"https://github.com/celery/celery/blob/master/Changelog.rst%23522","label":"github.com/celery/celery/blob/master/Changelog.rst%23522","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Broken Link","Release Notes","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SYXRGHWHD2WWMHBWCVD5ULVINPKNY3P5/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://advisories.mageia.org/MGASA-2022-0029.html","label":"advisories.mageia.org/MGASA-2022-0029.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29897","label":"bugs.mageia.org/show_bug.cgi?id=29897","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/SYXRGHWHD2WWMHBWCVD5ULVINPKNY3P5/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23727","label":"nvd.nist.gov/vuln/detail/CVE-2021-23727","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/celery/celery/commit/1f7ad7e6df1e02039b6ab9eec617d283598cad6b","label":"github.com/celery/celery/commit/1f7ad7e6df1e02039b6ab9eec617d283598cad6b","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-q4xr-rc97-m4xx","label":"github.com/advisories/GHSA-q4xr-rc97-m4xx","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/celery/celery","label":"github.com/celery/celery","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/celery/PYSEC-2021-858.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/celery/PYSEC-2021-858.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYXRGHWHD2WWMHBWCVD5ULVINPKNY3P5","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2021-23727","label":"ubuntu.com/security/CVE-2021-23727","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-23727","label":"www.cve.org/CVERecord?id=CVE-2021-23727","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-23727","label":"security-tracker.debian.org/tracker/CVE-2021-23727","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-12-29T16:35:11.896Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T20:53:22.597Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T07:17:27.689Z","stale":false,"partial":false}}