Bedside — pdfminer Pickle RCE to MONAI Checkpoint torch.load Root
OS
Linux
Difficulty
Medium
Category
LINUX
Released
2026.07.18
Abused a clinic research subdomain's scan upload, parsed by pdfminer.six, to point a crafted PDF /Encoding at an attacker-planted pickle (CVE-2025-64512) for code execution inside a Docker container. Tunnelled an internal image viewer with chisel, used its path traversal for arbitrary file read to grab a developer SSH key, then rooted a passwordless sudo MONAI trainer that loads the newest checkpoint through torch.load pickle deserialization from a group-writable directory.
This machine is still active on Hack The Box, so the full technical write-up is withheld until it retires — per HTB’s published content policy:
“You are only permitted to upload, stream videos, and publish solutions in any format for Retired Content of Hack The Box or Free Academy Courses.”
“Any streaming or publication of Hack The Box Content solutions not mentioned in the list above violates our TOS.”
— Streaming / Writeups / Walkthrough Guidelines, Hack The Box
Releases automatically once the machine retires.

