GHSA-22qq-2fwx-7p67: Pip/pylint vulnerability

Published Oct 27, 2026
·
Updated

Impact

Since 2006 / pylint 0.15.2, pylint caches its stats as pickles in PYLINTHOME 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 PYLINTHOME 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 PYLINTHOME 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).

Affected Software

1 affected componentFixes available
pip/pylint<4.0.9
4.0.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/pylint to a version that resolves this vulnerability.

    Fixed in 4.0.9
  2. Upgrade

    Upgrade pylint to a version that resolves this vulnerability.

    Fixed in 4.0.9
  3. Configuration

    Do not point PYLINT_HOME to an untrusted, shared, or group-writable directory; use a directory writable only by the user running pylint.

    pylint PYLINT_HOME = a user-only writable directory

Event History

Oct 27, 2026
Advisory Published
via GitHub·02:46 PM
Data Sourced
via GitHub·02:46 PM
DescriptionWeaknessAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203