Repository navigation
MONAI Label 0.8.7
This is a security release. All MONAI Label server deployments should upgrade.
pip install -U monailabel==0.8.7
docker pull projectmonai/monailabel:0.8.7Security
- Remote code execution through a client-supplied
bundle_path(GHSA-j5c7-p3x5-gw2x, critical). Task requests (/train,/scoring,/batch/infer) accepted abundle_paththat was added to thePYTHONPATHof the task process. The path now comes only from the registered bundle trainer. Affects 0.6.0 to 0.8.6. - DICOMweb datastore path confinement (GHSA-cgpr-79vx-xr5x, medium). Image and label IDs must be a plain directory name inside the DICOMweb cache directory. Affects up to 0.8.6.
- Session upload path traversal (GHSA-5c65-q9f6-h62q, high), fixed in 0.8.6 and now published.
Thanks to @xuxiaoyuspallow, @baeseungwon1010 and @b-abderrahmane for the reports.
Authentication is disabled by default (MONAI_LABEL_AUTH_ENABLE=False), so these issues are reachable by any client that can connect to the server. Regardless of version:
- Do not expose the MONAI Label server to untrusted networks.
- Enable authentication and grant roles only to trusted users.
- Run the server as an unprivileged user whose write access is limited to the datastore.
Fixed
- Authentication: with PyJWT 2.x every token was rejected because the accepted algorithms were not passed. Tokens are now validated with the realm's RSA key (RS256, RS384, RS512 only).
- Uploading and deleting model files (
PUT/DELETE /model/{model}) requires the admin role, as documented, instead of the annotator role. /ohif: files in subdirectories (for example the onnxruntime files) were answered with the index page. They are now served, and requests can only reach files inside the OHIF directory.- Training with MLflow tracking failed with MLflow 3.13 and later, which reject the file store. The default tracking store is now a SQLite database in the model output directory.
HEAD /datastore/image?check_sum=never matched the file's checksum.
Full Changelog: 0.8.6...0.8.7