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

OSVersionStatusFixed in
debian debianbookwormfixed8:6.9.11.60+dfsg-1.6+deb12u3
debian debianbullseyefixed8:6.9.11.60+dfsg-1.3+deb11u5
debian debianforkyfixed8:7.1.1.46+dfsg1-1
debian debiansidfixed8:7.1.1.46+dfsg1-1
debian debiantrixiefixed8:7.1.1.43+dfsg1-1+deb13u1
suse slesaffected

References

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

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