CVE-2026-114608: Pylint: Arbitrary code execution via pickle deserialization of the stats cache in PYLINT_HOME

Published Oct 22, 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).

Other sources

Pylint is a static code analyser for Python. From 0.15.2 until 4.0.9, Pylint stores module statistics in predictable files under PYLINTHOME 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.

— Ubuntu

Affected Software

13 affected componentsFixes available
pypi/pylint>=0.15.2<4.0.9
pip/pylint<4.0.9
4.0.9
ubuntu/pylint*
ubuntu/pylint*
ubuntu/pylint*
ubuntu/pylint*
ubuntu/pylint*
ubuntu/pylint*
ubuntu/pylint*
debian/pylint*
debian/pylint*
debian/pylint<4.0.9-1
4.0.9-1
debian/pylint<=2.16.2-2, <=3.3.4-1
4.0.9-1

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 debian/pylint to a version that resolves this vulnerability.

    Fixed in 4.0.9-1
  3. Upgrade

    Upgrade pylint to a version that resolves this vulnerability.

    Fixed in 4.0.9
  4. Configuration

    Do not point PYLINT_HOME to an untrusted, shared, or group-writable directory.

    Pylint PYLINT_HOME = a trusted, user-only-writable directory

Event History

Oct 22, 2026
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
CVE Published
via MITRE·04:50 PM
Data Sourced
via MITRE·04:50 PM
DescriptionWeakness
Data Sourced
via OSV·04:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeakness
Oct 27, 2026
Advisory Published
via GitHub·02:46 PM
Data Sourced
via GitHub·02:46 PM
DescriptionWeaknessAffected Software
Oct 28, 2026
Data Sourced
via OSV·05:50 PM
Affected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using Pylint versions from 0.15.2 through 4.0.8 are exposed when PYLINT_HOME points to a shared, group-writable, or otherwise untrusted directory. The normal per-user default cache is not normally writable by another user.

2

What access does an attacker need to exploit it?

An attacker needs the ability to write or replace a Pylint statistics cache file under the directory used for PYLINT_HOME. Code executes with the privileges of the user who subsequently runs Pylint and loads the crafted cache.

3

What should be done if upgrading cannot happen immediately?

Ensure PYLINT_HOME uses a per-user directory that is not writable by other users, and do not use shared or group-writable cache directories. Remove or distrust existing cache files in any directory that may have been writable by untrusted users.

4

How can I determine whether a system may already be affected?

Check whether Pylint has been run with PYLINT_HOME set to a shared, group-writable, or otherwise untrusted location, and whether untrusted users could have modified its statistics cache files. Any such cache should be treated as potentially malicious if it may be loaded by a vulnerable Pylint version.

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