CVE-2025-71340: picklescan - Remote Code Execution via idlelib.pyshell.ModifiedInterpreter.runcode

Published Jun 25, 2026
·
Updated

picklescan through 0.0.26 fails to detect malicious pickle files that invoke idlelib.pyshell.ModifiedInterpreter.runcode in reduce methods. Attackers can embed undetected code in pickle files that executes arbitrary commands when the file is loaded via pickle.load(), enabling supply chain attacks on PyTorch models and saved Python objects. This is fixed in version 0.0.30.

Affected Software

1 affected component
picklescan<=0.0.26

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade picklescan to a version that resolves this vulnerability.

    Fixed in 0.0.30
  2. Compensating control

    Do not load untrusted Python pickle files with pickle.load(); instead, avoid pickle.load() for external/unknown inputs because malicious pickle payloads can execute arbitrary commands.

Event History

Jun 25, 2026
CVE Published
via MITRE·09:41 PM
Data Sourced
via MITRE·09:41 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-71340?

The severity of CVE-2025-71340 is rated high with a CVSS score of 7.6.

2

How do I fix CVE-2025-71340?

To mitigate CVE-2025-71340, update to a version of picklescan that detects malicious pickle files.

3

What can an attacker do with CVE-2025-71340?

An attacker can execute arbitrary commands on the system by embedding malicious code in pickle files that utilize idlelib.pyshell.ModifiedInterpreter.runcode.

4

What software is vulnerable to CVE-2025-71340?

The vulnerable software is picklescan, specifically versions before 0.0.26.

5

When was CVE-2025-71340 published?

CVE-2025-71340 was published on June 25, 2026.

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