The following ImageMagick command: convert test.jpg +profile '!icc,*' out.jpg used to remove all image metadata except ICC tags/profiles. However, in recent versions it just dies after exhausting all system memory.
Created ImageMagick tracking bugs for this issue: Affects: epel-8 [bug 1777545] Affects: fedora-all [bug 1777544]
Please stop opening 5 year old security issues. This does not affect recent versions. Looks like this affected versions older than 6.8.9.9 and we're currently on 6.9.10.75. I would like to hear what you are doing that is flooding my inbox instead of silence from you. Please respond.
Thank you for letting me know that this not affect the current version of ImageMagick, I didn't find which versions were affected by this flaw, this is why this bug was opened. Sorry for the mistake.
Any version of ImageMagick as shipped with Red Hat Enterprise Linux 5, 6, 7 and 8 is affected by this issue. This was verified through internally available reproducer.