Bug 1730361 (CVE-2019-13305) - CVE-2019-13305 ImageMagick: stack-based buffer overflow at coders/pnm.c in WritePNMImage because of a misplaced strncpy and an off-by-one error
Summary: CVE-2019-13305 ImageMagick: stack-based buffer overflow at coders/pnm.c in Wr...
Keywords:
Status: NEW
Alias: CVE-2019-13305
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1732692 1730362
Blocks: 1730618
TreeView+ depends on / blocked
 
Reported: 2019-07-16 14:15 UTC by Marian Rehak
Modified: 2019-09-29 15:16 UTC (History)
5 users (show)

Fixed In Version: ImageMagick 7.0.8-58, ImageMagick 6.9.10-58
Doc Type: If docs needed, set a value
Doc Text:
A stack-based buffer overflow was discovered in ImageMagick in the way it writes PNM images due to a misplaced strncpy and off-by-one errors. Applications compiled against ImageMagick libraries that accept untrustworthy images or write PNM images may be vulnerable to this flaw. An attacker could abuse this flaw by providing a specially crafted image to make the application crash or potentially execute code.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Marian Rehak 2019-07-16 14:15:37 UTC
ImageMagick 7.0.8-50 Q16 has a stack-based buffer overflow at coders/pnm.c in WritePNMImage because of a misplaced strncpy and an off-by-one error.

Upstream Issue:

https://github.com/ImageMagick/ImageMagick/issues/1613

Comment 1 Marian Rehak 2019-07-16 14:16:17 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1730362]

Comment 3 Riccardo Schirone 2019-07-24 07:09:35 UTC
This flaw seems related to CVE-2019-13306 (detailed in bug 1730357).


Note You need to log in before you can comment on or make changes to this bug.