Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-22qq-2fwx-7p67

Опубликовано: 27 окт. 2026
Источник: github
Github: Прошло ревью
CVSS4: 5.4

Описание

Pylint: Arbitrary code execution via pickle deserialization of the stats cache in PYLINT_HOME

Impact

Since 2006 / pylint 0.15.2, pylint caches its stats as pickles in PYLINT_HOME and reload them on the next run with pickle.load. Someone without access to the configuration or linted code, but with access to the cache directory (predictable PYLINT_HOME on a multi-user host) can write a crafted pickle that will runs arbitrary code when pylint access its stat cache.

Patches

From pylint 4.0.9, the result cache is now stored as JSON instead of pickle, preventing code-execution.

Workarounds

Until upgrading do not point PYLINT_HOME to an untrusted, shared, or group-writable directory. The default value, ~/.cache/pylint, is writable only by the user running pylint.

Credits

  • Reported privately via Tidelift coordinated disclosure (Dan Lenz).

Пакеты

Наименование

pylint

pip
Затронутые версииВерсия исправления

< 4.0.9

4.0.9

EPSS

Процентиль: 2%
0.00115
Низкий

5.4 Medium

CVSS4

Дефекты

CWE-502

Связанные уязвимости

ubuntu
около 1 месяца назад

Pylint is a static code analyser for Python. From 0.15.2 until 4.0.9, Pylint stores module statistics in predictable files under PYLINT_HOME and loads those files with pickle.load on a later run. An attacker who can write to a shared, group-writable, or otherwise untrusted cache directory can replace a stats cache with crafted serialized data, causing arbitrary code to execute with the privileges of the user who next runs Pylint. The default per-user cache is not normally writable by another user. This issue is fixed in version 4.0.9.

CVSS3: 6.7
redhat
около 1 месяца назад

Pylint is a static code analyser for Python. From 0.15.2 until 4.0.9, Pylint stores module statistics in predictable files under PYLINT_HOME and loads those files with pickle.load on a later run. An attacker who can write to a shared, group-writable, or otherwise untrusted cache directory can replace a stats cache with crafted serialized data, causing arbitrary code to execute with the privileges of the user who next runs Pylint. The default per-user cache is not normally writable by another user. This issue is fixed in version 4.0.9.

nvd
около 1 месяца назад

Pylint is a static code analyser for Python. From 0.15.2 until 4.0.9, Pylint stores module statistics in predictable files under PYLINT_HOME and loads those files with pickle.load on a later run. An attacker who can write to a shared, group-writable, or otherwise untrusted cache directory can replace a stats cache with crafted serialized data, causing arbitrary code to execute with the privileges of the user who next runs Pylint. The default per-user cache is not normally writable by another user. This issue is fixed in version 4.0.9.

debian
около 1 месяца назад

Pylint is a static code analyser for Python. From 0.15.2 until 4.0.9, ...

EPSS

Процентиль: 2%
0.00115
Низкий

5.4 Medium

CVSS4

Дефекты

CWE-502