Advisory

GHSA-q4xr-rc97-m4xx

Also known as: CVE-2021-23727, PYSEC-2021-858, SNYK-PYTHON-CELERY-2314953

Summary

OS Command Injection in celery

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-01-06 22:22 UTC
Modified
2024-09-06 16:46 UTC

Affected packages and fixes

celery

PyPI · All systems

Affected

  • introduced 0, fixed 5.2.2 (ecosystem)

Fixed versions

5.2.2

Fix

  • Fixed version 5.2.2
    pip install --upgrade celery==5.2.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences