Skip to main content
No exploitation reportedFix available

CVE-2021-23727

No exploitation reported by the sources we read.

  • Published2021-12-29
  • Fixed in5.2.2
  • WeaknessCWE-77

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2021-12-2917:15CVE publishedNVD

Versions per branch

NVD · OSV
Celeryproject celery
BranchAffectedFixed in
5.2< 5.2.25.2.2
Fedoraproject extra packages for enterprise linux
BranchAffectedFixed in
7.0= 7.0no fix published
Fedoraproject fedora
BranchAffectedFixed in
35.x= 35no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • apache-supersetCleanStartall versions · fixed in 2021.40.1-r2
  • apache-supersetCleanStartall versions · fixed in 2021.38.2-r0
  • celeryUbuntu:24.04:LTSall versions · no fixed version listed
  • celeryUbuntu:20.04:LTSall versions · no fixed version listed
  • celeryUbuntu:18.04:LTSall versions · no fixed version listed
  • celeryUbuntu:16.04:LTSall versions · no fixed version listed
  • celeryUbuntu:14.04:LTSall versions · no fixed version listed
  • celeryTuxCare:PyPIfrom 5.1.2 · fixed in v5.1.2.post1+tuxcare

6 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-23727 Red Hat Product Security

    celery: stored command injection vulnerability may allow privileges escalation

Full record on NVD

Fix

  1. Update Celeryproject celery to 5.2.2

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CNACVSS 3.17.5known since 2026-10-23
  • NVDCVSS 3.17.5read 2026-10-23
  • NVDCVSS 2.06read 2026-10-23
  • NVDweakness (CWE)CWE-77read 2026-10-23
  • FIRST EPSSEPSS score3.6 %2026-12-04
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHigh2022-01-06

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2021-12-29
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-q4xr-rc97-m4xx

Frequently asked questions

What is CVE-2021-23727?

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.

Is CVE-2021-23727 actively exploited?

Active exploitation of CVE-2021-23727 has not been confirmed. Its EPSS score was 3.6% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-23727?

CVE-2021-23727 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running celery? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record