ImageMagick versions before 7.1.2-31 contain a policy bypass vulnerability in the UHDR encoder that fails to enforce resource policy checks during buffer allocation for image pixels. This flaw allows attackers to bypass resource limits by processing specially crafted UHDR images, potentially causing denial of service through excessive memory consumption. The vulnerability affects multiple Ubuntu package versions and has a CVSS 3.1 score of 7.5, indicating a medium severity. A patch is available from Ubuntu via Extended Security Maintenance (ESM) and Ubuntu Pro. Users are advised to update to the fixed versions to mitigate this issue.