Menu

#606 Division by Zero in coders/wmf.c

v1.0_(example)
closed-fixed
5
2019-04-08
2019-04-08
Ridwan
No

A "division by zero" bug in coders/wmf.c allows remote attacker to cause a denial of service to imagemagick via "identify $FILE"

coders/wmf.c:2551:31: runtime error: division by zero
coders/wmf.c:2566:38: runtime error: division by zero

Verified with latest build 1_3_31

POC: https://github.com/rshariffdeen/poc/blob/master/0003-graphicsmagick-dividebyzero-identify

Discussion

  • Bob Friesenhahn

    Bob Friesenhahn - 2019-04-08
    • status: open --> closed-fixed
    • assigned_to: Bob Friesenhahn
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2019-04-08

    This problem is fixed by Mercurial changeset 15957:72b0bcf425b6. It seems like libwmf should have reported an error from wmf_scan() if the bounding box is zero.

     

Log in to post a comment.

MongoDB Logo MongoDB