CVE-2025-71341

picklescan - Remote Code Execution via Undetected profile.Profile.runctx

Published Jun 23, 2026 CVSS 4.0 · 7.6 High EPSS < 1% KEV · Not listed
Description
picklescan before 0.0.29 fails to detect the profile.Profile.runctx function when analyzing pickle files, allowing attackers to embed undetected malicious code. Remote attackers can craft malicious pickle files using profile.Profile.runctx in the reduce method to achieve remote code execution when the pickle file is loaded.

Analysis

AI-generated

Technical impact

picklescan versions before 0.0.29 do not detect the use of profile.Profile.runctx during pickle deserialization. If an attacker supplies a specially crafted pickle file that calls profile.Profile.runctx via its reduce method, the function is executed and arbitrary code runs on the system that loads the file. The flaw provides direct remote code execution because the malicious payload runs with the privileges of the user executing picklescan.

Affected Systems

All installations of picklescan earlier than version 0.0.29 are vulnerable. This includes any user or service that loads pickle files using the default deserialization routines of this package.

Risk and Exploitability

The CVSS score of 7.6 indicates a high severity impact. Because the attack requires the attacker to supply a pickle file that the target processes, the exploit vector is likely remote delivery to an application that relies on picklescan. No EPSS score is available, and this vulnerability is not yet included in the CISA KEV catalog; however, remote code execution remains a high‑risk threat. An attacker who succeeds can fully compromise the affected system, execute arbitrary commands, and maintain persistence if desired.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade picklescan to version 0.0.29 or newer, where the detection of profile.Profile.runctx has been added.
  • If an upgrade cannot be performed immediately, restrict the use of picklescan to trusted data sources only, or disable the loading of untrusted pickle files entirely in the application.
  • Implement network or file‑system controls to prevent remote hosts from delivering malicious pickle files to the vulnerable environment.

Generated by OpenCVE AI on June 23, 2026 at 13:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-6vqj-c2q5-j97w Picklescan has a missing detection when calling built-in python profile.Profile.runctx
History
Type Values Removed Values Added
First Time appeared Picklescan
Picklescan picklescan
Vendors & Products Picklescan
Picklescan picklescan
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description picklescan before 0.0.29 fails to detect the profile.Profile.runctx function when analyzing pickle files, allowing attackers to embed undetected malicious code. Remote attackers can craft malicious pickle files using profile.Profile.runctx in the reduce method to achieve remote code execution when the pickle file is loaded.
Title picklescan - Remote Code Execution via Undetected profile.Profile.runctx
First Time appeared Mmaitre314
Mmaitre314 picklescan
Weaknesses CWE-502
CPEs cpe:2.3:a:mmaitre314:picklescan:*:*:*:*:*:*:*:*
Vendors & Products Mmaitre314
Mmaitre314 picklescan
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 7.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jun 23, 2026, 1:56 PM
Reserved
Jun 20, 2026, 1:48 AM
Status
Deferred
Published
Jun 23, 2026, 1:16 PM
Modified
Oct 12, 2026, 9:10 PM