CVE-2025-43965
unknown
CVSS v3
โ
CVSS v4 NEW
โ
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
{
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
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 8:6.9.11.60+dfsg-1.6+deb12u3 |
| debian | bullseye | fixed | 8:6.9.11.60+dfsg-1.3+deb11u5 |
| debian | forky | fixed | 8:7.1.1.46+dfsg1-1 |
| debian | sid | fixed | 8:7.1.1.46+dfsg1-1 |
| debian | trixie | fixed | 8:7.1.1.43+dfsg1-1+deb13u1 |
| sles | affected | |
References
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.