CVE-2025-71321
Received Received - Intake
Arbitrary File Write in Picklescan via Distutils

Publication date: 2026-06-17

Last updated on: 2026-06-17

Assigner: VulnCheck

Description
picklescan before 0.0.33 contains an arbitrary file writing vulnerability that allows attackers to bypass the dangerous blocklist by using distutils.file_util.write_file. Attackers can construct malicious pickle objects to overwrite critical system files and achieve denial of service or remote code execution.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-17
Last Modified
2026-06-17
Generated
2026-06-17
AI Q&A
2026-06-17
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Currently, no data is known.
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-502 The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2025-71321 is a critical arbitrary file writing vulnerability found in picklescan versions before 0.0.33. It occurs because the software deserializes untrusted data and fails to block the distutils.file_util.write_file module, allowing attackers to bypass the dangerous function blocklist.

Attackers can craft malicious pickle objects that exploit this flaw to overwrite critical system files. This can lead to serious consequences such as denial of service or remote code execution on the affected system.

Compliance Impact

CVE-2025-71321 allows attackers to overwrite critical system files and potentially execute remote code, which can lead to unauthorized access or disruption of systems.

Such unauthorized access or system compromise could result in violations of data protection and privacy regulations like GDPR or HIPAA, as these standards require safeguarding sensitive data and ensuring system integrity.

Therefore, if exploited, this vulnerability could negatively impact an organization's compliance posture by exposing sensitive data or disrupting critical services.

Impact Analysis

This vulnerability can have severe impacts including the ability for an attacker to overwrite important system files, which may result in denial of service (DoS) or remote code execution (RCE).

  • Denial of Service: Overwriting critical files can disrupt normal system operations.
  • Remote Code Execution: Attackers may execute arbitrary code remotely, potentially gaining full control over the affected system.
  • Compromise of sensitive files such as .ssh/authorized_keys or web server configurations, leading to further security breaches.
Detection Guidance

This vulnerability involves the deserialization of malicious pickle objects that exploit the distutils.file_util.write_file module to overwrite critical system files. Detection involves identifying suspicious or unexpected pickle files or payloads being processed by picklescan versions before 0.0.33.

You can monitor for unusual file writes or changes to critical files such as .ssh/authorized_keys or web server configuration files that might indicate exploitation attempts.

While no specific detection commands are provided in the resources, general approaches include:

  • Using file integrity monitoring tools (e.g., tripwire, AIDE) to detect unexpected changes to critical files.
  • Searching for pickle files or data being deserialized by picklescan with commands like: `find / -name '*.pickle'` or monitoring logs for picklescan usage.
  • Using network monitoring tools to detect suspicious pickle payloads or unusual traffic to services using picklescan.
Mitigation Strategies

The primary mitigation step is to upgrade picklescan to version 0.0.33 or later, where the vulnerability is fixed by adding the distutils module to the dangerous function blocklist.

Until an upgrade can be applied, avoid processing untrusted pickle data with vulnerable versions of picklescan.

Additionally, restrict access to systems running picklescan to trusted users and monitor critical system files for unauthorized changes.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-71321. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart