Summary
MONAI (Medical Open Network for AI) is an AI toolkit for health care imaging. Prior to 1.6.1, PydicomReader._get_affine() trusts non-finite values in the DICOM PixelSpacing, ImagePositionPatient, and ImageOrientationPatient fields and composes them into an affine matrix without validation. An unauthenticated attacker who can upload a crafted DICOM to a default MONAILabel deployment can propagate NaN or infinity values through LoadImaged, Spacingd, model inference, and output writing, causing inference failures, persistent datastore poisoning, or geometrically corrupted results. This issue is fixed in version 1.6.1.
Remediation
References
- Referencehttps://github.com/Project-MONAI/MONAI/security/advisories/GHSA-6hp3-vr39-rqw8
- Referencehttps://github.com/Project-MONAI/MONAI/pull/9087
- Referencehttps://github.com/Project-MONAI/MONAI/commit/434c094a3e6b84cca5b6e81da51e0d18a0100607
- Referencehttps://github.com/Project-MONAI/MONAI/releases/tag/1.6.1