Disclosed weakness · no CVE recorded

MONAI Label session uploads could write outside their extraction directory

Project MONAI · MONAI Label · session store

First documented disclosure · Review checkpoint

Summary

Session tar uploads could place files outside the temporary extraction directory; session IDs also lacked path restrictions.

Severity and exploitation evidence

No CVSS score recorded in this review.

Exploitation not established: Reviewed maintainer reports and controlled checks do not establish malicious exploitation against users.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

The session store passed uploaded archives to shutil.unpack_archive without checking tar members and joined session IDs directly to the store path.

Conditions required

A client can reach PUT /session/ with uncompress enabled. Authentication is disabled by default; when enabled, the endpoint requires the configured USER role. The unfiltered tar behavior described by the maintainer applies on Python before 3.14.

Potential impact

Files can be written with the server process permissions outside the intended extraction directory. Code execution through this particular session path is not demonstrated in the reviewed report.

Affected versions and configurations

The 0.8.6 release notes identify versions through 0.8.5. Tagged 0.8.5 retains unfiltered unpack_archive; interpreter behavior affects the tar path.

Fix and mitigation status

Stable 0.8.6, released November 22, includes PR1942. Tagged production code checks all tar members before extraction, rejects links and special files, and validates session IDs.

Practical next steps

Upgrade to 0.8.6, restrict network access, enable authentication and run the server with limited filesystem privileges. Review exposed older servers for unexpected file changes.

Operating lesson

Validate archive contents and session identifiers before any filesystem write.

Evidence and limits

Public PR1942 opened November 21 and merged November 22. Its source fix and 0.8.6 tag were reviewed; upstream reports tests across Python 3.11–3.14 and an isolated Docker check. ZIP handling is unchanged. This is separate from datastore-upload CVE-2026-133968: the Cairn exploitation report must not be transferred to this session-upload finding. No published CVE mapping or issue-specific CVSS score was established.

Sources