New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
memory exhaustion in ReadPSDImage #599
Labels
Comments
|
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow. |
dlemstra
pushed a commit
that referenced
this issue
Jul 23, 2017
dlemstra
pushed a commit
that referenced
this issue
Jul 23, 2017
dlemstra
pushed a commit
that referenced
this issue
Jul 23, 2017
|
This was assigned CVE-2017-12563. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: ImageMagick 7.0.6-2 Q16 x86_64
#./magick identify $FILEWhen identify PSD file , imagemagick will allocate memory to store the data, here is the critical code:
psd.c , in function ReadPSDImage:
length can be read from image,that is to say it can be controlled by input file.
length=ReadBlobMSBLong(image); //2100Here is my policy.xml to limit memory usage,but 256MB limit can be bypassed.
testcase: https://github.com/bestshow/p0cs/blob/master/memory_exhaustion_in_ReadPSDImage
Credit : ADLab of Venustech
The text was updated successfully, but these errors were encountered: