CVE-2025-43965

unknown
Published — · Modified —
CVSS v3
CVSS v4 NEW
not yet in upstream
VIR risk

Description

In MIFF image processing in ImageMagick before 7.1.1-44, image depth is mishandled after SetQuantumFormat is used.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

community-verified Authored 2026-05-29
{

Edit /etc/ImageMagick-7/policy.xml (or your distribution's equivalent) and add a deny rule for the MIFF coder:

<policymap>
  <policy domain="coder" rights="none" pattern="MIFF" />
  <policy domain="coder" rights="none" pattern="MIFF2" />
  <policy domain="coder" rights="none" pattern="MIFF3" />
</policymap>

Restart any services using ImageMagick (e.g. systemctl restart php-fpm nginx).

Validation:

convert test.miff out.png 2>&1 | grep -i 'not authorized'

This blocks all MIFF processing. If you legitimately use MIFF internally, upgrade immediately instead. Rollback: remove the policy lines and restart services.

}

OS impact

suse SUSE Affected 1 release
VersionStatusFixed in
Affected
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 8:7.1.1.43+dfsg1-1+deb13u1
sid Fixed 8:7.1.1.46+dfsg1-1
forky Fixed 8:7.1.1.46+dfsg1-1
bullseye Fixed 8:6.9.11.60+dfsg-1.3+deb11u5
bookworm Fixed 8:6.9.11.60+dfsg-1.6+deb12u3

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.