| 1 |
========================================= |
| 2 |
CELERYSA-0001: Celery Security Advisory |
| 3 |
========================================= |
| 4 |
:contact: [email protected] |
| 5 |
:author: Ask Solem |
| 6 |
:CVE id: CVE-2011-4356 |
| 7 |
:date: 2011-11-25 04:35:00 p.m. GMT |
| 8 |
|
| 9 |
Details |
| 10 |
======= |
| 11 |
|
| 12 |
:package: celery |
| 13 |
:vulnerability: privilege escalation |
| 14 |
:problem type: local |
| 15 |
:risk: medium |
| 16 |
:bug-no: Celery #544 |
| 17 |
:versions-affected: 2.1, 2.2, 2.3, 2.4 |
| 18 |
|
| 19 |
Description |
| 20 |
=========== |
| 21 |
|
| 22 |
The --uid and --gid arguments to the celeryd-multi, |
| 23 |
celeryd_detach, celerybeat and celeryev programs shipped |
| 24 |
with Celery versions 2.1 and later wasn't handled properly: |
| 25 |
only the effective user was changed, with the real id remaining |
| 26 |
unchanged. |
| 27 |
|
| 28 |
In practice for affected users the vulnerability means that malicious code |
| 29 |
loaded in the worker process would be allowed to escalate privileges. |
| 30 |
|
| 31 |
We take this issue seriously since the Pickle serializer used by |
| 32 |
default makes it possible to execute arbitrary code. |
| 33 |
|
| 34 |
We recommend that users takes steps to secure their systems so that |
| 35 |
malicious users cannot abuse the message broker to send messages, |
| 36 |
or disable the pickle serializer used in Celery so that arbitrary code |
| 37 |
execution isn't possible. |
| 38 |
|
| 39 |
Patches are now available for all maintained versions (see below), |
| 40 |
and users are urged to upgrade, even if not directly |
| 41 |
affected. |
| 42 |
|
| 43 |
Systems affected |
| 44 |
================ |
| 45 |
|
| 46 |
Users of Celery versions 2.1, 2.2, 2.3, 2.4; except the recently |
| 47 |
released 2.2.8, 2.3.4, and 2.4.4, daemonizing the Celery programs |
| 48 |
as the root user, using either: |
| 49 |
1) the --uid or --gid arguments, or |
| 50 |
2) the provided generic init-scripts with the environment variables |
| 51 |
CELERYD_USER or CELERYD_GROUP defined, |
| 52 |
are affected. |
| 53 |
|
| 54 |
Users using the Debian init-scripts, CentOS init-scripts, macOS launchctl |
| 55 |
scripts, Supervisor, or users not starting the programs as the root user |
| 56 |
are *not* affected. |
| 57 |
|
| 58 |
Solution |
| 59 |
======== |
| 60 |
|
| 61 |
Users of the 2.4 series should upgrade to 2.4.4: |
| 62 |
|
| 63 |
* ``pip install -U celery``, or |
| 64 |
* ``easy_install -U celery``, or |
| 65 |
* https://pypi.org/project/celery/2.4.4/ |
| 66 |
|
| 67 |
Users of the 2.3 series should upgrade to 2.3.4: |
| 68 |
|
| 69 |
* ``pip install -U celery==2.3.4``, or |
| 70 |
* ``easy_install -U celery==2.3.4``, or |
| 71 |
* https://pypi.org/project/celery/2.3.4/ |
| 72 |
|
| 73 |
Users of the 2.2 series should upgrade to 2.2.8: |
| 74 |
|
| 75 |
* ``pip install -U celery==2.2.8``, or |
| 76 |
* ``easy_install -U celery==2.2.8``, or |
| 77 |
* https://pypi.org/project/celery/2.2.8/ |
| 78 |
|
| 79 |
The 2.1 series is no longer being maintained, so we urge users |
| 80 |
of that series to upgrade to a more recent version. |
| 81 |
|
| 82 |
Distribution package maintainers are urged to provide their users |
| 83 |
with updated packages. |
| 84 |
|
| 85 |
|
| 86 |
Please direct questions to the celery-users mailing-list: |
| 87 |
https://groups.google.com/group/celery-users/, |
| 88 |
|
| 89 |
or if you're planning to report a security issue we request that |
| 90 |
you keep the information confidential by contacting |
| 91 |
[email protected], so that a fix can be issued as quickly as possible. |
| 92 |
|
| 93 |
Thank you! |